[03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25: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:48]accept exits with 7 [04:29:48]New connection [04:29:48]New thread 3067002212 created [04:29:48]Thread 3066858852 joined [04:29:48]Waiting for new connection... [04:29:48] Sock 7.Parse request [04:29:48]Sock 7.Check first char [04:29:48]Sock 7.First char is OK [04:29:48]request: POST /json_proto HTTP/1.0 [04:29:48]Method: POST [04:29:48]URL: /json_proto [04:29:48]Method is POST - this is cgi request [04:29:48]url: /json_proto [04:29:48]query_string will be loaded in cgi processing [04:29:48]execute_cgi json_proto POST (null) [04:29:48]execute_cgi path=json_proto method=POST [04:29:48]POST find Content-Length [04:29:48]Host: 172.17.49.132:8080 [04:29:48]Content-Length: 939 [04:29:48]Content-Type: application/json [04:29:48] [04:29:48]POST finish read [04:29:48]Found Content-Length = 939 [04:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137092", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:48]execute_script... [04:29: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 : (3)137092", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:48]POST & json_proto [04:29:48]process_json_proto [04:29:48]json parsed OK: [04:29:48]protocol is kg_v1.0 [04:29:48]action value=close_receipt [04:29:48]process_action close_receipt [04:29:48]cmd_close_receipt [04:29:48]MH_GetDate [04:29:48]Write to MH i2c: F0 00 00 18 9F A6 [04:29:48]Write i2c OK [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: F0 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: F0 09 00 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: F0 09 00 18 9F 00 4D 0F AB 66 E7 4B C0 64 72 [04:29:48]GetLastDocTimeStamp 1722482311 [04:29:48]current date 1722486605 [04:29:48]FM_GetShiftState [04:29:48]SAM_PROTO_GetShiftState [04:29:48]wFMCommunicate request_size=4 [04:29:48]MH_SAM_APDU [04:29:48]CAPDU: 80 13 01 00 [04:29:48]Write to MH i2c: E2 08 00 19 9F 80 13 01 00 00 00 00 00 35 [04:29:48]Write i2c OK [04:29:48]MH_I2C_Read... [04:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:48]Read from MH i2c: E2 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: E2 0E 00 [04:29:48]MH_I2C_Read... [04:29:48]Read from MH i2c: E2 0E 00 19 9F 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 6E [04:29:48]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [04:29:48]wFMCommunicate OK [04:29:48]SAM_PROTO_GetShiftState done [04:29:48]FM_GetShiftState done [04:29:48]opened in 1722472772 [04:29:48]opened+sec_in_day 1722559172 [04:29:48]quantity*price = 14000 [04:29:48]sum+1 = 14001 [04:29:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522701 Напиток Maxi Чай черный Малина 1,2 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 15 01.08.2024 04:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69852 ФПД: 278846020242299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T043005&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69852&fm=278846020242299&tin=02508201610067®Number=0000000000092638&sum=25000 0 [04:29:50]StoreToDocumentArchive [04:29:50]shift 433 fd 69852 [04:29:50]save to /storage/0433/doc_00069852 [04:29:50]save last doc name /storage/0433/doc_00069852 to /storage/kkm_last_doc_name [04:29:50]save OK [04:29:50]Clear old archive folders... [04:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=401 [04:29:50]tlvbuf is 01342160 [04:29:50]SAM_PROTO_ClearQueue [04:29:50]wFMCommunicate request_size=4 [04:29:50]MH_SAM_APDU [04:29:50]CAPDU: 80 09 00 00 [04:29:50]Write to MH i2c: E2 08 00 26 9F 80 09 00 00 00 00 00 00 37 [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:29:50]Read from MH i2c: E2 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 26 9F 00 90 00 39 [04:29:50]RAPDU: 90 00 [04:29:50]wFMCommunicate OK [04:29:50]SAM_PROTO_ClearQueue done [04:29:50]KKMCreateOFDPacket [04:29:50]OFDProtocolAddRootSTLVToBuf [04:29:50]FM_MakeSignedData [04:29:50]FM_MakeSignedData [04:29:50]SAM_PROTO_SignData [04:29:50]wFMCommunicate request_size=4 [04:29:50]MH_SAM_APDU [04:29:50]CAPDU: 80 0D 01 02 [04:29:50]Write to MH i2c: E2 08 00 27 9F 80 0D 01 02 00 00 00 00 3F [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:29:50]Read from MH i2c: E2 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 27 9F 00 90 00 3A [04:29:50]RAPDU: 90 00 [04:29:50]wFMCommunicate OK [04:29:50]wFMCommunicate request_size=255 [04:29:50]MH_SAM_APDU [04:29:50]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 [04:29:50]Write to MH i2c: E2 02 01 28 9F 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 00 00 4A [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:50]Read from MH i2c: E2 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 28 9F 00 90 00 3B [04:29:50]RAPDU: 90 00 [04:29:50]wFMCommunicate OK [04:29:50]wFMCommunicate request_size=160 [04:29:50]MH_SAM_APDU [04:29:50]CAPDU: 80 0D 02 02 9B 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 0F 00 00 00 F4 03 04 00 4D 0F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DC 10 01 00 35 04 06 00 FD 9B E5 FB CB 7B [04:29:50]Write to MH i2c: E2 A3 00 29 9F 80 0D 02 02 9B 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 0F 00 00 00 F4 03 04 00 4D 0F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DC 10 01 00 35 04 06 00 FD 9B E5 FB CB 7B 00 00 E9 [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:50]Read from MH i2c: E2 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 03 00 29 9F 00 90 00 3C [04:29:50]RAPDU: 90 00 [04:29:50]wFMCommunicate OK [04:29:50]wFMCommunicate request_size=4 [04:29:50]MH_SAM_APDU [04:29:50]CAPDU: 80 0D 03 02 [04:29:50]Write to MH i2c: E2 08 00 2A 9F 80 0D 03 02 00 00 00 00 44 [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:29:50]Read from MH i2c: E2 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 0B 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 0B 00 2A 9F 00 F1 98 4E 3E 25 34 CD 06 90 00 86 [04:29:50]RAPDU: F1 98 4E 3E 25 34 CD 06 90 00 [04:29:50]wFMCommunicate OK [04:29:50]SAM_PROTO_SignData done [04:29:50]FM_MakeSignedData done [04:29:50]CreateOFDProtocolMessage [04:29:50]wFMCommunicate request_size=4 [04:29:50]MH_SAM_APDU [04:29:50]CAPDU: 80 11 00 00 [04:29:50]Write to MH i2c: E2 08 00 2B 9F 80 11 00 00 00 00 00 00 44 [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:50]Read from MH i2c: E2 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 17 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: E2 17 00 2B 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A0 [04:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [04:29:50]wFMCommunicate OK [04:29:50]CreateOFDProtocolMessage done [04:29:50]OFDSenderStorePacket 69852 [04:29:50]StoreOFDPacket docnum=69852 [04:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 A5 01 00 00 0B C7 9D 01 74 D2 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 0F 00 00 00 F4 03 04 00 4D 0F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DC 10 01 00 35 04 06 00 FD 9B E5 FB CB 7B F1 98 4E 3E 25 34 CD 06 [04:29:50]CheckFolder [04:29:50]dirname=/storage/ofd_packets [04:29:50]CheckFolder done [04:29:50]ProducePacketName [04:29:50]name=ofd_packets/00069852 [04:29:50]NVStorageSaveData ofd_packets/00069852 [04:29:50]File name is /storage/ofd_packets/00069852 [04:29:50]Write 451 bytes [04:29:50]NVStorageSaveData done [04:29:50]OFDSenderStorePacket done [04:29:50]KKMCreateOFDPacket done [04:29:50]NVStorageSaveData kkm_last_timestamp [04:29:50]File name is /storage/kkm_last_timestamp [04:29:50]Write 4 bytes [04:29:50]NVStorageSaveData done [04:29:50]ExternCall_PrintAddStr [04:29:50]wPrintStart [04:29:50]Write to MH i2c: 01 00 00 2C 9F CB [04:29:50]Write i2c OK [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: 01 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: 01 07 00 [04:29:50]MH_I2C_Read... [04:29:50]Read from MH i2c: 01 07 00 2C 9F 00 00 00 00 00 FF 0F E0 [04:29:50]RasterBufferAndPrint [04:29:50]line Счет N : (3)137092 [04:29:50]line ИНН: 02508201610067 [04:29:50]line Контрольно-Кассовый Чек [04:29:50]line ПРОДАЖА [04:29:50]line Товар: 48743570 [04:29:51]line Сигареты Winston XStyle Blue [04:29:51]line 1.000 * 140.00 [04:29:51]line = 140.00 [04:29:51]line НДС 12% НСП 1% [04:29:51]line > о реализуемом товаре [04:29:51]line Товар: 4870202522701 [04:29:51]line Напиток Maxi Чай черный Малина 1,2 [04:29:51]line 1.000 * 110.00 [04:29:51]line = 110.00 [04:29:51]line НДС 12% НСП 1% [04:29:51]line > о реализуемом товаре [04:29:51]line ИТОГО: 250.00 [04:29:51]line НСП 1% : 2.21 [04:29:51]line НДС 12% : 26.55 [04:29:51]line Наличными: 250.00 [04:29:51]line Безнал.: 0.00 [04:29:51]line Место: АЗС № 125 "Партнер Нефть" [04:29:51]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [04:29:51]line СНО: Общий режим [04:29:51]line Чек 15 01.08.2024 04:30 [04:29:51]line Смена: 433 ФФД: 1.0 [04:29:51]line ЗНМ: 0300000049 [04:29:51]line РНМ: 0000000000092638 [04:29:51]line Версия ККМ: 001 [04:29:51]line ФМ: 0000000000874949 [04:29:51]line ФД: 69852 [04:29:51]line ФПД: 278846020242299 [04:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T043005&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69852&fm=278846020242299&tin=02508201610067®Number=0000000000092638&sum=25000 [04:29:51]line 0 [04:29:51]OFD Sender: Processing packet 69852 [packets to send 19, broken 18] [04:29:51]ProducePacketName [04:29:51]name=ofd_packets/00069852 [04:29:51]OFD Sender: To server: pG, [04:29:51]CommunicateWithHost lk.salyk.kg:30040 [04:29:51]ConnectInit lk.salyk.kg [04:29:51]written 0, free lines is 4095 [04:29:51]Connected sock=10 [04:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 A5 01 00 00 0B C7 9D 01 74 D2 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 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 0F 00 00 00 F4 03 04 00 4D 0F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DC 10 01 00 35 04 06 00 FD 9B E5 FB CB 7B F1 98 4E 3E 25 34 CD 06 [04:29:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 54 3B 47 00 B7 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DC 10 01 00 F4 03 04 00 AF B5 AA 66 B6 04 01 00 00 F2 EA 70 DE 87 5F BD AF [04:29:51]CommunicateWithHost err = 0 [04:29:51]CheckOFDResponse [04:29:51]1017 (14) - 77093643461234 [04:29:51]1041 (16) - 0000000000874949 [04:29:51]1040 (4) - 69852 [04:29:51]1012 (4) - 31.07.2024 22:07 [04:29:51]1206 (1) - 0 [04:29:51]OFD Sender: Remove packet 69852 [04:29:51]ProducePacketName [04:29:51]name=ofd_packets/00069852 [04:29:51]NVStorageDeleteData [04:29:51]Write to MH i2c: 01 00 00 5B 9F FA [04:29:51]Write i2c OK [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: 01 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: 01 07 00 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: 01 07 00 5B 9F 00 00 00 00 00 CA 0C D7 [04:29:51]RasterBufferAndPrint [04:29:51]line [04:29:51]line [04:29:51]line [04:29:51]line [04:29:51]line [04:29:51]written 0, free lines is 3283 [04:29:51]MH_Cut [04:29:51]Write to MH i2c: D1 01 00 62 9F 01 D3 [04:29:51]Write i2c OK [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: D1 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: D1 01 00 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: D1 01 00 62 9F 00 D2 [04:29:51]Write to MH i2c: 01 00 00 63 9F 02 [04:29:51]Write i2c OK [04:29:51]MH_I2C_Read... [04:29:51]OFD Sender: No OFD packet to send [04:29:52]*** Cut start [04:29:52]*** Partial cut [04:29:52]*** CUTSNS_PIN = 1 [04:29:52]*** CUTSNS_PIN = 0 [04:29:52]*** Brake cut motor [04:29:52]Read from MH i2c: 01 [04:29:52]MH_I2C_Read... [04:29:52]*** Stop cut motor [04:29:52]*** Cut end [04:29:52]Read from MH i2c: 01 07 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: 01 07 00 63 9F 00 00 00 00 00 FF 0F 17 [04:29:52]process_action close_receipt done [04:29:52]requested_data is exist [04:29:52]produce_requested_data [04:29:52]requested_item fm.sn is exist - process it [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 11 00 00 [04:29:52]Write to MH i2c: E2 08 00 64 9F 80 11 00 00 00 00 00 00 7D [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:52]Read from MH i2c: E2 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 17 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 17 00 64 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D9 [04:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [04:29:52]wFMCommunicate OK [04:29:52]requested_item fd.num is exist - process it [04:29:52]SAM_PROTO_GetFieldsCounters [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 13 00 00 [04:29:52]Write to MH i2c: E2 08 00 65 9F 80 13 00 00 00 00 00 00 80 [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:53]Read from MH i2c: E2 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 62 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 62 00 65 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DC 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [04:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DC 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:29:53]wFMCommunicate OK [04:29:53]SAM_PROTO_GetFieldsCounters done [04:29:53]requested_item shift.num is exist - process it [04:29:53]requested_item shift.opened is exist - process it [04:29:53]req_shift_opened [04:29:53]FM_GetShiftState [04:29:53]SAM_PROTO_GetShiftState [04:29:53]wFMCommunicate request_size=4 [04:29:53]MH_SAM_APDU [04:29:53]CAPDU: 80 13 01 00 [04:29:53]Write to MH i2c: E2 08 00 66 9F 80 13 01 00 00 00 00 00 82 [04:29:53]Write i2c OK [04:29:53]MH_I2C_Read... [04:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:53]Read from MH i2c: E2 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 0E 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 0E 00 66 9F 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BB [04:29:53]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [04:29:53]wFMCommunicate OK [04:29:53]SAM_PROTO_GetShiftState done [04:29:53]FM_GetShiftState done [04:29:53]req_shift_opened done [04:29:53]requested_item shift.open_date is exist - process it [04:29:53]req_shift_open_date [04:29:53]req_shift_open_date done [04:29:53]produce_requested_data done [04:29:53]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69852,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [04:29:53]process_action_free close_receipt [04:29:53]json_value_free [04:29:53]json_value_free done [04:29:53]process_json_proto returns [04:29:53]Send response to host [04:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69852,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [04:29:53]free response buf [04:29:53]execute_script done [04:29:53]execute_script returns [04:29:53]free content buf [04:29:53]Sock 7.Close socket [04:29:53]Sock 7.Thread stoped [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:08]accept exits with 9 [05:27:08]New connection [05:27:08]New thread 3066858852 created [05:27:08]Thread 3067002212 joined [05:27:08]Waiting for new connection... [05:27:08] Sock 9.Parse request [05:27:08]Sock 9.Check first char [05:27:08]Sock 9.First char is OK [05:27:08]request: POST /json_proto HTTP/1.0 [05:27:08]Method: POST [05:27:08]URL: /json_proto [05:27:08]Method is POST - this is cgi request [05:27:08]url: /json_proto [05:27:08]query_string will be loaded in cgi processing [05:27:08]execute_cgi json_proto POST (null) [05:27:08]execute_cgi path=json_proto method=POST [05:27:08]POST find Content-Length [05:27:08]Host: 172.17.49.132:8080 [05:27:08]Content-Length: 620 [05:27:08]Content-Type: application/json [05:27:08] [05:27:08]POST finish read [05:27:08]Found Content-Length = 620 [05:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137093", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:08]execute_script... [05:27: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 : (3)137093", "tax_sys" : 0, "items" : [ { "code": "4650063110756", "name": "\u041C\u0430\u0441\u043B\u043E Gazpromneft Super 10w40 1\u043B", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:08]POST & json_proto [05:27:08]process_json_proto [05:27:08]json parsed OK: [05:27:08]protocol is kg_v1.0 [05:27:08]action value=close_receipt [05:27:08]process_action close_receipt [05:27:08]cmd_close_receipt [05:27:08]MH_GetDate [05:27:08]Write to MH i2c: F0 00 00 67 9F F5 [05:27:08]Write i2c OK [05:27:08]MH_I2C_Read... [05:27:08]Read from MH i2c: F0 [05:27:08]MH_I2C_Read... [05:27:08]Read from MH i2c: F0 09 00 [05:27:08]MH_I2C_Read... [05:27:08]Read from MH i2c: F0 09 00 67 9F 00 BD 1C AB 66 E7 4B C0 64 3E [05:27:08]GetLastDocTimeStamp 1722486605 [05:27:08]current date 1722490045 [05:27:08]FM_GetShiftState [05:27:08]SAM_PROTO_GetShiftState [05:27:08]wFMCommunicate request_size=4 [05:27:08]MH_SAM_APDU [05:27:08]CAPDU: 80 13 01 00 [05:27:08]Write to MH i2c: E2 08 00 68 9F 80 13 01 00 00 00 00 00 84 [05:27:08]Write i2c OK [05:27:08]MH_I2C_Read... [05:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:08]Read from MH i2c: E2 [05:27:08]MH_I2C_Read... [05:27:08]Read from MH i2c: E2 0E 00 [05:27:08]MH_I2C_Read... [05:27:08]Read from MH i2c: E2 0E 00 68 9F 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BD [05:27:08]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [05:27:08]wFMCommunicate OK [05:27:08]SAM_PROTO_GetShiftState done [05:27:08]FM_GetShiftState done [05:27:08]opened in 1722472772 [05:27:08]opened+sec_in_day 1722559172 [05:27:08]quantity*price = 40500 [05:27:08]sum+1 = 40501 [05:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 16 01.08.2024 05:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69853 ФПД: 203888108040474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T052725&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69853&fm=203888108040474&tin=02508201610067®Number=0000000000092638&sum=40500 0 [05:27:09]StoreToDocumentArchive [05:27:09]shift 433 fd 69853 [05:27:09]save to /storage/0433/doc_00069853 [05:27:09]save last doc name /storage/0433/doc_00069853 to /storage/kkm_last_doc_name [05:27:09]save OK [05:27:09]Clear old archive folders... [05:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=280 [05:27:09]tlvbuf is 011F8C30 [05:27:09]SAM_PROTO_ClearQueue [05:27:09]wFMCommunicate request_size=4 [05:27:09]MH_SAM_APDU [05:27:09]CAPDU: 80 09 00 00 [05:27:09]Write to MH i2c: E2 08 00 75 9F 80 09 00 00 00 00 00 00 86 [05:27:09]Write i2c OK [05:27:09]MH_I2C_Read... [05:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:09]Read from MH i2c: E2 [05:27:09]MH_I2C_Read... [05:27:09]Read from MH i2c: E2 03 00 [05:27:09]MH_I2C_Read... [05:27:09]Read from MH i2c: E2 03 00 75 9F 00 90 00 88 [05:27:09]RAPDU: 90 00 [05:27:09]wFMCommunicate OK [05:27:09]SAM_PROTO_ClearQueue done [05:27:09]KKMCreateOFDPacket [05:27:09]OFDProtocolAddRootSTLVToBuf [05:27:09]FM_MakeSignedData [05:27:09]FM_MakeSignedData [05:27:09]SAM_PROTO_SignData [05:27:09]wFMCommunicate request_size=4 [05:27:09]MH_SAM_APDU [05:27:09]CAPDU: 80 0D 01 02 [05:27:09]Write to MH i2c: E2 08 00 76 9F 80 0D 01 02 00 00 00 00 8E [05:27:09]Write i2c OK [05:27:09]MH_I2C_Read... [05:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:09]Read from MH i2c: E2 [05:27:09]MH_I2C_Read... [05:27:09]Read from MH i2c: E2 03 00 [05:27:09]MH_I2C_Read... [05:27:09]Read from MH i2c: E2 03 00 76 9F 00 90 00 89 [05:27:09]RAPDU: 90 00 [05:27:09]wFMCommunicate OK [05:27:09]wFMCommunicate request_size=255 [05:27:09]MH_SAM_APDU [05:27:09]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD 1C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 [05:27:09]Write to MH i2c: E2 02 01 77 9F 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD 1C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 00 00 38 [05:27:09]Write i2c OK [05:27:09]MH_I2C_Read... [05:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:10]Read from MH i2c: E2 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 03 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 03 00 77 9F 00 90 00 8A [05:27:10]RAPDU: 90 00 [05:27:10]wFMCommunicate OK [05:27:10]wFMCommunicate request_size=39 [05:27:10]MH_SAM_APDU [05:27:10]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DD 10 01 00 35 04 06 00 B9 6F 66 40 F1 1A [05:27:10]Write to MH i2c: E2 2A 00 78 9F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DD 10 01 00 35 04 06 00 B9 6F 66 40 F1 1A 00 00 1C [05:27:10]Write i2c OK [05:27:10]MH_I2C_Read... [05:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:10]Read from MH i2c: E2 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 03 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 03 00 78 9F 00 90 00 8B [05:27:10]RAPDU: 90 00 [05:27:10]wFMCommunicate OK [05:27:10]wFMCommunicate request_size=4 [05:27:10]MH_SAM_APDU [05:27:10]CAPDU: 80 0D 03 02 [05:27:10]Write to MH i2c: E2 08 00 79 9F 80 0D 03 02 00 00 00 00 93 [05:27:10]Write i2c OK [05:27:10]MH_I2C_Read... [05:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:10]Read from MH i2c: E2 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 0B 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 0B 00 79 9F 00 03 D1 A6 3F 20 08 57 03 90 00 CF [05:27:10]RAPDU: 03 D1 A6 3F 20 08 57 03 90 00 [05:27:10]wFMCommunicate OK [05:27:10]SAM_PROTO_SignData done [05:27:10]FM_MakeSignedData done [05:27:10]CreateOFDProtocolMessage [05:27:10]wFMCommunicate request_size=4 [05:27:10]MH_SAM_APDU [05:27:10]CAPDU: 80 11 00 00 [05:27:10]Write to MH i2c: E2 08 00 7A 9F 80 11 00 00 00 00 00 00 93 [05:27:10]Write i2c OK [05:27:10]MH_I2C_Read... [05:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:10]Read from MH i2c: E2 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 17 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: E2 17 00 7A 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EF [05:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:27:10]wFMCommunicate OK [05:27:10]CreateOFDProtocolMessage done [05:27:10]OFDSenderStorePacket 69853 [05:27:10]StoreOFDPacket docnum=69853 [05:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2C 01 00 00 15 95 24 01 A4 B0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD 1C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DD 10 01 00 35 04 06 00 B9 6F 66 40 F1 1A 03 D1 A6 3F 20 08 57 03 [05:27:10]CheckFolder [05:27:10]dirname=/storage/ofd_packets [05:27:10]CheckFolder done [05:27:10]ProducePacketName [05:27:10]name=ofd_packets/00069853 [05:27:10]NVStorageSaveData ofd_packets/00069853 [05:27:10]File name is /storage/ofd_packets/00069853 [05:27:10]Write 330 bytes [05:27:10]NVStorageSaveData done [05:27:10]OFDSenderStorePacket done [05:27:10]KKMCreateOFDPacket done [05:27:10]NVStorageSaveData kkm_last_timestamp [05:27:10]File name is /storage/kkm_last_timestamp [05:27:10]Write 4 bytes [05:27:10]NVStorageSaveData done [05:27:10]ExternCall_PrintAddStr [05:27:10]wPrintStart [05:27:10]Write to MH i2c: 01 00 00 7B 9F 1A [05:27:10]Write i2c OK [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: 01 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: 01 07 00 [05:27:10]MH_I2C_Read... [05:27:10]Read from MH i2c: 01 07 00 7B 9F 00 00 00 00 00 FF 0F 2F [05:27:10]RasterBufferAndPrint [05:27:10]line Счет N : (3)137093 [05:27:10]line ИНН: 02508201610067 [05:27:10]line Контрольно-Кассовый Чек [05:27:10]line ПРОДАЖА [05:27:10]line Товар: 4650063110756 [05:27:10]line Масло Gazpromneft Super 10w40 1л [05:27:10]line 1.000 * 405.00 [05:27:10]line = 405.00 [05:27:10]line НДС 12% НСП 1% [05:27:10]line > о реализуемом товаре [05:27:10]line ИТОГО: 405.00 [05:27:10]line НСП 1% : 3.58 [05:27:10]line НДС 12% : 43.01 [05:27:10]line Наличными: 405.00 [05:27:10]line Безнал.: 0.00 [05:27:10]line Место: АЗС № 125 "Партнер Нефть" [05:27:10]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:27:10]line СНО: Общий режим [05:27:10]line Чек 16 01.08.2024 05:27 [05:27:10]line Смена: 433 ФФД: 1.0 [05:27:10]line ЗНМ: 0300000049 [05:27:10]line РНМ: 0000000000092638 [05:27:10]line Версия ККМ: 001 [05:27:10]line ФМ: 0000000000874949 [05:27:10]line ФД: 69853 [05:27:10]line ФПД: 203888108040474 [05:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T052725&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69853&fm=203888108040474&tin=02508201610067®Number=0000000000092638&sum=40500 [05:27:10]OFD Sender: Processing packet 69853 [packets to send 19, broken 18] [05:27:10]ProducePacketName [05:27:10]name=ofd_packets/00069853 [05:27:10]OFD Sender: To server: pG, [05:27:10]CommunicateWithHost lk.salyk.kg:30040 [05:27:10]ConnectInit lk.salyk.kg [05:27:10]line 0 [05:27:10]written 0, free lines is 4095 [05:27:10]Connected sock=10 [05:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2C 01 00 00 15 95 24 01 A4 B0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 37 35 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 BD 1C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DD 10 01 00 35 04 06 00 B9 6F 66 40 F1 1A 03 D1 A6 3F 20 08 57 03 [05:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CB DF 47 00 EB 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DD 10 01 00 F4 03 04 00 1F C3 AA 66 B6 04 01 00 00 27 74 79 AA 7D 03 F4 EB [05:27:11]CommunicateWithHost err = 0 [05:27:11]CheckOFDResponse [05:27:11]1017 (14) - 77093643461234 [05:27:11]1041 (16) - 0000000000874949 [05:27:11]1040 (4) - 69853 [05:27:11]1012 (4) - 31.07.2024 23:05 [05:27:11]1206 (1) - 0 [05:27:11]OFD Sender: Remove packet 69853 [05:27:11]ProducePacketName [05:27:11]name=ofd_packets/00069853 [05:27:11]NVStorageDeleteData [05:27:11]Write to MH i2c: 01 00 00 A4 9F 43 [05:27:11]Write i2c OK [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: 01 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: 01 07 00 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: 01 07 00 A4 9F 00 00 00 00 00 F9 0C 4F [05:27:11]RasterBufferAndPrint [05:27:11]line [05:27:11]line [05:27:11]line [05:27:11]line [05:27:11]line [05:27:11]written 0, free lines is 3327 [05:27:11]MH_Cut [05:27:11]Write to MH i2c: D1 01 00 AB 9F 01 1C [05:27:11]Write i2c OK [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: D1 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: D1 01 00 [05:27:11]MH_I2C_Read... [05:27:11]Read from MH i2c: D1 01 00 AB 9F 00 1B [05:27:11]Write to MH i2c: 01 00 00 AC 9F 4B [05:27:11]Write i2c OK [05:27:11]MH_I2C_Read... [05:27:11]OFD Sender: No OFD packet to send [05:27:11]*** Cut start [05:27:11]*** Partial cut [05:27:11]*** CUTSNS_PIN = 1 [05:27:11]*** CUTSNS_PIN = 0 [05:27:12]*** Brake cut motor [05:27:12]Read from MH i2c: 01 [05:27:12]MH_I2C_Read... [05:27:12]*** Stop cut motor [05:27:12]*** Cut end [05:27:12]Read from MH i2c: 01 07 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: 01 07 00 AC 9F 00 00 00 00 00 FF 0F 60 [05:27:12]process_action close_receipt done [05:27:12]requested_data is exist [05:27:12]produce_requested_data [05:27:12]requested_item fm.sn is exist - process it [05:27:12]wFMCommunicate request_size=4 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 11 00 00 [05:27:12]Write to MH i2c: E2 08 00 AD 9F 80 11 00 00 00 00 00 00 C6 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 17 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 17 00 AD 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 22 [05:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:27:12]wFMCommunicate OK [05:27:12]requested_item fd.num is exist - process it [05:27:12]SAM_PROTO_GetFieldsCounters [05:27:12]wFMCommunicate request_size=4 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 13 00 00 [05:27:12]Write to MH i2c: E2 08 00 AE 9F 80 13 00 00 00 00 00 00 C9 [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 62 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 62 00 AE 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DD 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [05:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DD 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:27:12]wFMCommunicate OK [05:27:12]SAM_PROTO_GetFieldsCounters done [05:27:12]requested_item shift.num is exist - process it [05:27:12]requested_item shift.opened is exist - process it [05:27:12]req_shift_opened [05:27:12]FM_GetShiftState [05:27:12]SAM_PROTO_GetShiftState [05:27:12]wFMCommunicate request_size=4 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 13 01 00 [05:27:12]Write to MH i2c: E2 08 00 AF 9F 80 13 01 00 00 00 00 00 CB [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 0E 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 0E 00 AF 9F 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 04 [05:27:12]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [05:27:12]wFMCommunicate OK [05:27:12]SAM_PROTO_GetShiftState done [05:27:12]FM_GetShiftState done [05:27:12]req_shift_opened done [05:27:12]requested_item shift.open_date is exist - process it [05:27:12]req_shift_open_date [05:27:12]req_shift_open_date done [05:27:12]produce_requested_data done [05:27:12]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69853,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [05:27:12]process_action_free close_receipt [05:27:12]json_value_free [05:27:12]json_value_free done [05:27:12]process_json_proto returns [05:27:12]Send response to host [05:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69853,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [05:27:12]free response buf [05:27:12]execute_script done [05:27:12]execute_script returns [05:27:12]free content buf [05:27:12]Sock 9.Close socket [05:27:12]Sock 9.Thread stoped [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:54]accept exits with 7 [05:46:54]New connection [05:46:54]New thread 3067002212 created [05:46:54]Thread 3066858852 joined [05:46:54]Waiting for new connection... [05:46:54] Sock 7.Parse request [05:46:54]Sock 7.Check first char [05:46:54]Sock 7.First char is OK [05:46:54]request: POST /json_proto HTTP/1.0 [05:46:54]Method: POST [05:46:54]URL: /json_proto [05:46:54]Method is POST - this is cgi request [05:46:54]url: /json_proto [05:46:54]query_string will be loaded in cgi processing [05:46:54]execute_cgi json_proto POST (null) [05:46:54]execute_cgi path=json_proto method=POST [05:46:54]POST find Content-Length [05:46:54]Host: 172.17.49.132:8080 [05:46:54]Content-Length: 2427 [05:46:54]Content-Type: application/json [05:46:54] [05:46:54]POST finish read [05:46:54]Found Content-Length = 2427 [05:46:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137094", "tax_sys" : 0, "items" : [ { "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077636004", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043A\u0430\u043A\u0430\u043E \u0432\u0438\u0448\u043D\u044F 135 ", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 977.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:54]execute_script... [05:46: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 : (3)137094", "tax_sys" : 0, "items" : [ { "code": "4870001150013", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077634246", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043C\u0430\u043B\u0438\u043D\u0430 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077636004", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u043A\u0430\u043A\u0430\u043E \u0432\u0438\u0448\u043D\u044F 135 ", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607084351385", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 12\u0448\u0442", "price" : 340.00, "quantity" : 1.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 977.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:55]POST & json_proto [05:46:55]process_json_proto [05:46:55]json parsed OK: [05:46:55]protocol is kg_v1.0 [05:46:55]action value=close_receipt [05:46:55]process_action close_receipt [05:46:55]cmd_close_receipt [05:46:55]MH_GetDate [05:46:55]Write to MH i2c: F0 00 00 B0 9F 3E [05:46:55]Write i2c OK [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: F0 [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: F0 09 00 [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: F0 09 00 B0 9F 00 5F 21 AB 66 E7 4B C0 64 2E [05:46:55]GetLastDocTimeStamp 1722490045 [05:46:55]current date 1722491231 [05:46:55]FM_GetShiftState [05:46:55]SAM_PROTO_GetShiftState [05:46:55]wFMCommunicate request_size=4 [05:46:55]MH_SAM_APDU [05:46:55]CAPDU: 80 13 01 00 [05:46:55]Write to MH i2c: E2 08 00 B1 9F 80 13 01 00 00 00 00 00 CD [05:46:55]Write i2c OK [05:46:55]MH_I2C_Read... [05:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:55]Read from MH i2c: E2 [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: E2 0E 00 [05:46:55]MH_I2C_Read... [05:46:55]Read from MH i2c: E2 0E 00 B1 9F 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 06 [05:46:55]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [05:46:55]wFMCommunicate OK [05:46:55]SAM_PROTO_GetShiftState done [05:46:55]FM_GetShiftState done [05:46:55]opened in 1722472772 [05:46:55]opened+sec_in_day 1722559172 [05:46:55]quantity*price = 15000 [05:46:55]sum+1 = 15001 [05:46:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077634246 Печ LOVITA Джелли Кукис малина 135 гр 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077636004 Печ LOVITA Джелли Кукис какао вишня 135 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607084351385 Бисквит Чоко пай 12шт 1.000 * 340.00 = 340.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 2.000 * 89.00 = 178.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 977.00 НСП 1% : 8.64 НДС 12% : 103.74 Наличными: 977.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 17 01.08.2024 05:47 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69854 ФПД: 203123010951675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T054711&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69854&fm=203123010951675&tin=02508201610067®Number=0000000000092638&sum=97700 0 [05:46:56]StoreToDocumentArchive [05:46:56]shift 433 fd 69854 [05:46:56]save to /storage/0433/doc_00069854 [05:46:56]save last doc name /storage/0433/doc_00069854 to /storage/kkm_last_doc_name [05:46:56]save OK [05:46:56]Clear old archive folders... [05:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=998 [05:46:56]tlvbuf is 01225500 [05:46:56]SAM_PROTO_ClearQueue [05:46:56]wFMCommunicate request_size=4 [05:46:56]MH_SAM_APDU [05:46:56]CAPDU: 80 09 00 00 [05:46:56]Write to MH i2c: E2 08 00 BE 9F 80 09 00 00 00 00 00 00 CF [05:46:56]Write i2c OK [05:46:56]MH_I2C_Read... [05:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:56]Read from MH i2c: E2 [05:46:56]MH_I2C_Read... [05:46:56]Read from MH i2c: E2 03 00 [05:46:56]MH_I2C_Read... [05:46:56]Read from MH i2c: E2 03 00 BE 9F 00 90 00 D1 [05:46:56]RAPDU: 90 00 [05:46:56]wFMCommunicate OK [05:46:56]SAM_PROTO_ClearQueue done [05:46:56]KKMCreateOFDPacket [05:46:56]OFDProtocolAddRootSTLVToBuf [05:46:56]FM_MakeSignedData [05:46:56]FM_MakeSignedData [05:46:56]SAM_PROTO_SignData [05:46:56]wFMCommunicate request_size=4 [05:46:56]MH_SAM_APDU [05:46:56]CAPDU: 80 0D 01 02 [05:46:56]Write to MH i2c: E2 08 00 BF 9F 80 0D 01 02 00 00 00 00 D7 [05:46:56]Write i2c OK [05:46:56]MH_I2C_Read... [05:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:56]Read from MH i2c: E2 [05:46:56]MH_I2C_Read... [05:46:56]Read from MH i2c: E2 03 00 [05:46:56]MH_I2C_Read... [05:46:56]Read from MH i2c: E2 03 00 BF 9F 00 90 00 D2 [05:46:56]RAPDU: 90 00 [05:46:56]wFMCommunicate OK [05:46:56]wFMCommunicate request_size=255 [05:46:56]MH_SAM_APDU [05:46:56]CAPDU: 80 0D 02 02 FA 03 00 E6 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 [05:46:56]Write to MH i2c: E2 02 01 C0 9F 80 0D 02 02 FA 00 03 00 E6 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 00 00 66 [05:46:56]Write i2c OK [05:46:56]MH_I2C_Read... [05:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:57]Read from MH i2c: E2 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 C0 9F 00 90 00 D3 [05:46:57]RAPDU: 90 00 [05:46:57]wFMCommunicate OK [05:46:57]wFMCommunicate request_size=255 [05:46:57]MH_SAM_APDU [05:46:57]CAPDU: 80 0D 02 02 FA B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 [05:46:57]Write to MH i2c: E2 02 01 C1 9F 80 0D 02 02 FA 00 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 00 00 53 [05:46:57]Write i2c OK [05:46:57]MH_I2C_Read... [05:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:57]Read from MH i2c: E2 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 C1 9F 00 90 00 D4 [05:46:57]RAPDU: 90 00 [05:46:57]wFMCommunicate OK [05:46:57]wFMCommunicate request_size=255 [05:46:57]MH_SAM_APDU [05:46:57]CAPDU: 80 0D 02 02 FA 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 [05:46:57]Write to MH i2c: E2 02 01 C2 9F 80 0D 02 02 FA 00 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 00 00 A4 [05:46:57]Write i2c OK [05:46:57]MH_I2C_Read... [05:46:57]OFD Sender: No OFD packet to send [05:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:57]Read from MH i2c: E2 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 C2 9F 00 90 00 D5 [05:46:57]RAPDU: 90 00 [05:46:57]wFMCommunicate OK [05:46:57]wFMCommunicate request_size=255 [05:46:57]MH_SAM_APDU [05:46:57]CAPDU: 80 0D 02 02 FA 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 28 00 00 00 00 07 04 06 00 A4 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5F 21 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DE 10 01 00 35 04 06 00 B8 BD 42 E9 [05:46:57]Write to MH i2c: E2 02 01 C3 9F 80 0D 02 02 FA 00 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 28 00 00 00 00 07 04 06 00 A4 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5F 21 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DE 10 01 00 35 04 06 00 B8 BD 42 E9 00 00 29 [05:46:57]Write i2c OK [05:46:57]MH_I2C_Read... [05:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:57]Read from MH i2c: E2 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 C3 9F 00 90 00 D6 [05:46:57]RAPDU: 90 00 [05:46:57]wFMCommunicate OK [05:46:57]wFMCommunicate request_size=7 [05:46:57]MH_SAM_APDU [05:46:57]CAPDU: 80 0D 02 02 02 D9 FB [05:46:57]Write to MH i2c: E2 0A 00 C4 9F 80 0D 02 02 02 00 D9 FB 00 00 B5 [05:46:57]Write i2c OK [05:46:57]MH_I2C_Read... [05:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:57]Read from MH i2c: E2 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 [05:46:57]MH_I2C_Read... [05:46:57]Read from MH i2c: E2 03 00 C4 9F 00 90 00 D7 [05:46:57]RAPDU: 90 00 [05:46:57]wFMCommunicate OK [05:46:57]wFMCommunicate request_size=4 [05:46:57]MH_SAM_APDU [05:46:57]CAPDU: 80 0D 03 02 [05:46:57]Write to MH i2c: E2 08 00 C5 9F 80 0D 03 02 00 00 00 00 DF [05:46:57]Write i2c OK [05:46:57]MH_I2C_Read... [05:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:58]Read from MH i2c: E2 [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: E2 0B 00 [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: E2 0B 00 C5 9F 00 39 6B EB 9A 86 56 75 D8 90 00 32 [05:46:58]RAPDU: 39 6B EB 9A 86 56 75 D8 90 00 [05:46:58]wFMCommunicate OK [05:46:58]SAM_PROTO_SignData done [05:46:58]FM_MakeSignedData done [05:46:58]CreateOFDProtocolMessage [05:46:58]wFMCommunicate request_size=4 [05:46:58]MH_SAM_APDU [05:46:58]CAPDU: 80 11 00 00 [05:46:58]Write to MH i2c: E2 08 00 C6 9F 80 11 00 00 00 00 00 00 DF [05:46:58]Write i2c OK [05:46:58]MH_I2C_Read... [05:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:58]Read from MH i2c: E2 [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: E2 17 00 [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: E2 17 00 C6 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3B [05:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:46:58]wFMCommunicate OK [05:46:58]CreateOFDProtocolMessage done [05:46:58]OFDSenderStorePacket 69854 [05:46:58]StoreOFDPacket docnum=69854 [05:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 FA 03 00 00 B8 0E F2 03 FE 85 5A 03 01 00 03 00 E6 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 28 00 00 00 00 07 04 06 00 A4 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5F 21 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DE 10 01 00 35 04 06 00 B8 BD 42 E9 D9 FB 39 6B EB 9A 86 56 75 D8 [05:46:58]CheckFolder [05:46:58]dirname=/storage/ofd_packets [05:46:58]CheckFolder done [05:46:58]ProducePacketName [05:46:58]name=ofd_packets/00069854 [05:46:58]NVStorageSaveData ofd_packets/00069854 [05:46:58]File name is /storage/ofd_packets/00069854 [05:46:58]Write 1048 bytes [05:46:58]NVStorageSaveData done [05:46:58]OFDSenderStorePacket done [05:46:58]KKMCreateOFDPacket done [05:46:58]NVStorageSaveData kkm_last_timestamp [05:46:58]File name is /storage/kkm_last_timestamp [05:46:58]Write 4 bytes [05:46:58]NVStorageSaveData done [05:46:58]ExternCall_PrintAddStr [05:46:58]wPrintStart [05:46:58]Write to MH i2c: 01 00 00 C7 9F 66 [05:46:58]Write i2c OK [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: 01 [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: 01 07 00 [05:46:58]MH_I2C_Read... [05:46:58]Read from MH i2c: 01 07 00 C7 9F 00 00 00 00 00 FF 0F 7B [05:46:58]RasterBufferAndPrint [05:46:58]line Счет N : (3)137094 [05:46:58]line ИНН: 02508201610067 [05:46:58]line Контрольно-Кассовый Чек [05:46:58]line ПРОДАЖА [05:46:58]line Товар: 4870001150013 [05:46:58]line Сок Da-Da 1л апельсин [05:46:58]line 1.000 * 150.00 [05:46:58]line = 150.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line Товар: 2000031750019 [05:46:58]line Пакет Партнер Нефть [05:46:58]line 1.000 * 4.00 [05:46:58]line = 4.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line Товар: 4823077634246 [05:46:58]line Печ LOVITA Джелли Кукис малина 135 гр [05:46:58]line 1.000 * 115.00 [05:46:58]line = 115.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line Товар: 4823077636004 [05:46:58]line Печ LOVITA Джелли Кукис какао вишня 135 [05:46:58]line 1.000 * 115.00 [05:46:58]line = 115.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line Товар: 4607084351385 [05:46:58]line Бисквит Чоко пай 12шт [05:46:58]line 1.000 * 340.00 [05:46:58]line = 340.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line Товар: 4870112002775 [05:46:58]line Шок батончик ALBENI BITES 80гр [05:46:58]line 1.000 * 75.00 [05:46:58]line = 75.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line Товар: 5000159390729 [05:46:58]line Шок Батончик Твикс Экстра 82г [05:46:58]line 2.000 * 89.00 [05:46:58]line = 178.00 [05:46:58]line НДС 12% НСП 1% [05:46:58]line > о реализуемом товаре [05:46:58]line ИТОГО: 977.00 [05:46:58]line НСП 1% : 8.64 [05:46:58]line НДС 12% : 103.74 [05:46:58]line Наличными: 977.00 [05:46:58]line Безнал.: 0.00 [05:46:58]line Место: АЗС № 125 "Партнер Нефть" [05:46:58]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:46:58]line СНО: Общий режим [05:46:58]line Чек 17 01.08.2024 05:47 [05:46:58]line Смена: 433 ФФД: 1.0 [05:46:58]line ЗНМ: 0300000049 [05:46:58]line РНМ: 0000000000092638 [05:46:58]line Версия ККМ: 001 [05:46:58]line ФМ: 0000000000874949 [05:46:58]line ФД: 69854 [05:46:58]line ФПД: 203123010951675 [05:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T054711&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69854&fm=203123010951675&tin=02508201610067®Number=0000000000092638&sum=97700 [05:46:58]line 0 [05:46:58]OFD Sender: Processing packet 69854 [packets to send 19, broken 18] [05:46:58]ProducePacketName [05:46:58]name=ofd_packets/00069854 [05:46:58]OFD Sender: To server: pG, [05:46:58]CommunicateWithHost lk.salyk.kg:30040 [05:46:58]ConnectInit lk.salyk.kg [05:46:58]written 0, free lines is 4095 [05:46:58]Connected sock=10 [05:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 FA 03 00 00 B8 0E F2 03 FE 85 5A 03 01 00 03 00 E6 03 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 31 33 06 04 21 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 34 36 06 04 3B 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BC D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 36 30 30 34 06 04 40 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 38 35 06 04 25 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 31 32 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 84 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 28 00 00 00 00 07 04 06 00 A4 7D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 5F 21 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DE 10 01 00 35 04 06 00 B8 BD 42 E9 D9 FB 39 6B EB 9A 86 56 75 D8 [05:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 6E 1A 47 00 6D 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 34 39 34 39 10 04 04 00 DE 10 01 00 F4 03 04 00 C3 C7 AA 66 B6 04 01 00 00 5A 04 02 6D F4 97 B1 0C [05:46:58]CommunicateWithHost err = 0 [05:46:58]CheckOFDResponse [05:46:58]1017 (14) - 77093643461234 [05:46:58]1041 (16) - 0000000000874949 [05:46:58]1040 (4) - 69854 [05:46:58]1012 (4) - 31.07.2024 23:24 [05:46:58]1206 (1) - 0 [05:46:58]OFD Sender: Remove packet 69854 [05:46:58]ProducePacketName [05:46:58]name=ofd_packets/00069854 [05:46:58]NVStorageDeleteData [05:46:59]Write to MH i2c: 01 00 00 17 A0 B7 [05:46:59]Write i2c OK [05:46:59]MH_I2C_Read... [05:46:59]Read from MH i2c: 01 [05:46:59]MH_I2C_Read... [05:46:59]Read from MH i2c: 01 07 00 [05:46:59]MH_I2C_Read... [05:46:59]Read from MH i2c: 01 07 00 17 A0 00 00 00 00 00 2D 0B F6 [05:46:59]RasterBufferAndPrint [05:46:59]line [05:46:59]line [05:46:59]line [05:46:59]line [05:46:59]line [05:46:59]written 0, free lines is 2875 [05:46:59]MH_Cut [05:46:59]Write to MH i2c: D1 01 00 1E A0 01 90 [05:46:59]Write i2c OK [05:46:59]MH_I2C_Read... [05:46:59]Read from MH i2c: D1 [05:46:59]MH_I2C_Read... [05:46:59]Read from MH i2c: D1 01 00 [05:46:59]MH_I2C_Read... [05:46:59]Read from MH i2c: D1 01 00 1E A0 00 8F [05:46:59]Write to MH i2c: 01 00 00 1F A0 BF [05:46:59]Write i2c OK [05:46:59]MH_I2C_Read... [05:46:59]OFD Sender: No OFD packet to send [05:47:00]*** Cut start [05:47:00]*** Partial cut [05:47:00]*** CUTSNS_PIN = 1 [05:47:00]*** CUTSNS_PIN = 0 [05:47:00]*** Brake cut motor [05:47:00]Read from MH i2c: 01 [05:47:00]MH_I2C_Read... [05:47:00]*** Stop cut motor [05:47:00]*** Cut end [05:47:00]Read from MH i2c: 01 07 00 [05:47:00]MH_I2C_Read... [05:47:00]Read from MH i2c: 01 07 00 1F A0 00 00 00 00 00 FF 0F D4 [05:47:00]process_action close_receipt done [05:47:00]requested_data is exist [05:47:00]produce_requested_data [05:47:00]requested_item fm.sn is exist - process it [05:47:00]wFMCommunicate request_size=4 [05:47:00]MH_SAM_APDU [05:47:00]CAPDU: 80 11 00 00 [05:47:00]Write to MH i2c: E2 08 00 20 A0 80 11 00 00 00 00 00 00 3A [05:47:00]Write i2c OK [05:47:00]MH_I2C_Read... [05:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:47:00]Read from MH i2c: E2 [05:47:00]MH_I2C_Read... [05:47:00]Read from MH i2c: E2 17 00 [05:47:00]MH_I2C_Read... [05:47:00]Read from MH i2c: E2 17 00 20 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [05:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:47:00]wFMCommunicate OK [05:47:00]requested_item fd.num is exist - process it [05:47:00]SAM_PROTO_GetFieldsCounters [05:47:00]wFMCommunicate request_size=4 [05:47:00]MH_SAM_APDU [05:47:00]CAPDU: 80 13 00 00 [05:47:00]Write to MH i2c: E2 08 00 21 A0 80 13 00 00 00 00 00 00 3D [05:47:00]Write i2c OK [05:47:00]MH_I2C_Read... [05:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:47:01]Read from MH i2c: E2 [05:47:01]MH_I2C_Read... [05:47:01]Read from MH i2c: E2 62 00 [05:47:01]MH_I2C_Read... [05:47:01]Read from MH i2c: E2 62 00 21 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DE 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [05:47:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DE 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:47:01]wFMCommunicate OK [05:47:01]SAM_PROTO_GetFieldsCounters done [05:47:01]requested_item shift.num is exist - process it [05:47:01]requested_item shift.opened is exist - process it [05:47:01]req_shift_opened [05:47:01]FM_GetShiftState [05:47:01]SAM_PROTO_GetShiftState [05:47:01]wFMCommunicate request_size=4 [05:47:01]MH_SAM_APDU [05:47:01]CAPDU: 80 13 01 00 [05:47:01]Write to MH i2c: E2 08 00 22 A0 80 13 01 00 00 00 00 00 3F [05:47:01]Write i2c OK [05:47:01]MH_I2C_Read... [05:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:47:01]Read from MH i2c: E2 [05:47:01]MH_I2C_Read... [05:47:01]Read from MH i2c: E2 0E 00 [05:47:01]MH_I2C_Read... [05:47:01]Read from MH i2c: E2 0E 00 22 A0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 78 [05:47:01]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [05:47:01]wFMCommunicate OK [05:47:01]SAM_PROTO_GetShiftState done [05:47:01]FM_GetShiftState done [05:47:01]req_shift_opened done [05:47:01]requested_item shift.open_date is exist - process it [05:47:01]req_shift_open_date [05:47:01]req_shift_open_date done [05:47:01]produce_requested_data done [05:47:01]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69854,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [05:47:01]process_action_free close_receipt [05:47:01]json_value_free [05:47:01]json_value_free done [05:47:01]process_json_proto returns [05:47:01]Send response to host [05:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69854,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [05:47:01]free response buf [05:47:01]execute_script done [05:47:01]execute_script returns [05:47:01]free content buf [05:47:01]Sock 7.Close socket [05:47:01]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]accept exits with 9 [05:54:04]New connection [05:54:04]New thread 3066858852 created [05:54:04]Thread 3067002212 joined [05:54:04]Waiting for new connection... [05:54:04] Sock 9.Parse request [05:54:04]Sock 9.Check first char [05:54:04]Sock 9.First char is OK [05:54:04]request: POST /json_proto HTTP/1.0 [05:54:04]Method: POST [05:54:04]URL: /json_proto [05:54:04]Method is POST - this is cgi request [05:54:04]url: /json_proto [05:54:04]query_string will be loaded in cgi processing [05:54:04]execute_cgi json_proto POST (null) [05:54:04]execute_cgi path=json_proto method=POST [05:54:04]POST find Content-Length [05:54:04]Host: 172.17.49.132:8080 [05:54:04]Content-Length: 1411 [05:54:04]Content-Type: application/json [05:54:04] [05:54:04]POST finish read [05:54:04]Found Content-Length = 1411 [05:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137095", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 387.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:54:04]execute_script... [05:54:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137095", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 387.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:54:04]POST & json_proto [05:54:04]process_json_proto [05:54:04]json parsed OK: [05:54:04]protocol is kg_v1.0 [05:54:04]action value=close_receipt [05:54:04]process_action close_receipt [05:54:04]cmd_close_receipt [05:54:04]MH_GetDate [05:54:04]Write to MH i2c: F0 00 00 23 A0 B2 [05:54:04]Write i2c OK [05:54:04]MH_I2C_Read... [05:54:04]Read from MH i2c: F0 [05:54:04]MH_I2C_Read... [05:54:04]Read from MH i2c: F0 09 00 [05:54:04]MH_I2C_Read... [05:54:04]Read from MH i2c: F0 09 00 23 A0 00 0C 23 AB 66 E7 4B C0 64 51 [05:54:04]GetLastDocTimeStamp 1722491231 [05:54:04]current date 1722491660 [05:54:04]FM_GetShiftState [05:54:04]SAM_PROTO_GetShiftState [05:54:04]wFMCommunicate request_size=4 [05:54:04]MH_SAM_APDU [05:54:04]CAPDU: 80 13 01 00 [05:54:04]Write to MH i2c: E2 08 00 24 A0 80 13 01 00 00 00 00 00 41 [05:54:04]Write i2c OK [05:54:04]MH_I2C_Read... [05:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:04]Read from MH i2c: E2 [05:54:04]MH_I2C_Read... [05:54:04]Read from MH i2c: E2 0E 00 [05:54:04]MH_I2C_Read... [05:54:04]Read from MH i2c: E2 0E 00 24 A0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 7A [05:54:04]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [05:54:04]wFMCommunicate OK [05:54:04]SAM_PROTO_GetShiftState done [05:54:04]FM_GetShiftState done [05:54:04]opened in 1722472772 [05:54:04]opened+sec_in_day 1722559172 [05:54:04]quantity*price = 15000 [05:54:04]sum+1 = 15001 [05:54:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 387.00 НСП 1% : 3.42 НДС 12% : 41.09 Наличными: 387.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 18 01.08.2024 05:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69855 ФПД: 53444660557539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T055421&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69855&fm=53444660557539&tin=02508201610067®Number=0000000000092638&sum=38700 0 [05:54:05]StoreToDocumentArchive [05:54:05]shift 433 fd 69855 [05:54:05]save to /storage/0433/doc_00069855 [05:54:05]save last doc name /storage/0433/doc_00069855 to /storage/kkm_last_doc_name [05:54:05]save OK [05:54:05]Clear old archive folders... [05:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=601 [05:54:05]tlvbuf is 012CB5A0 [05:54:05]SAM_PROTO_ClearQueue [05:54:05]wFMCommunicate request_size=4 [05:54:05]MH_SAM_APDU [05:54:05]CAPDU: 80 09 00 00 [05:54:05]Write to MH i2c: E2 08 00 31 A0 80 09 00 00 00 00 00 00 43 [05:54:05]Write i2c OK [05:54:05]MH_I2C_Read... [05:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:54:05]Read from MH i2c: E2 [05:54:05]MH_I2C_Read... [05:54:05]Read from MH i2c: E2 03 00 [05:54:05]MH_I2C_Read... [05:54:05]Read from MH i2c: E2 03 00 31 A0 00 90 00 45 [05:54:05]RAPDU: 90 00 [05:54:05]wFMCommunicate OK [05:54:05]SAM_PROTO_ClearQueue done [05:54:05]KKMCreateOFDPacket [05:54:05]OFDProtocolAddRootSTLVToBuf [05:54:05]FM_MakeSignedData [05:54:05]FM_MakeSignedData [05:54:05]SAM_PROTO_SignData [05:54:05]wFMCommunicate request_size=4 [05:54:05]MH_SAM_APDU [05:54:05]CAPDU: 80 0D 01 02 [05:54:05]Write to MH i2c: E2 08 00 32 A0 80 0D 01 02 00 00 00 00 4B [05:54:05]Write i2c OK [05:54:05]MH_I2C_Read... [05:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:54:05]Read from MH i2c: E2 [05:54:05]MH_I2C_Read... [05:54:05]Read from MH i2c: E2 03 00 [05:54:05]MH_I2C_Read... [05:54:05]Read from MH i2c: E2 03 00 32 A0 00 90 00 46 [05:54:05]RAPDU: 90 00 [05:54:05]wFMCommunicate OK [05:54:05]wFMCommunicate request_size=255 [05:54:05]MH_SAM_APDU [05:54:05]CAPDU: 80 0D 02 02 FA 03 00 59 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 [05:54:05]Write to MH i2c: E2 02 01 33 A0 80 0D 02 02 FA 00 03 00 59 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 00 00 40 [05:54:05]Write i2c OK [05:54:05]MH_I2C_Read... [05:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:06]Read from MH i2c: E2 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 03 00 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 03 00 33 A0 00 90 00 47 [05:54:06]RAPDU: 90 00 [05:54:06]wFMCommunicate OK [05:54:06]wFMCommunicate request_size=255 [05:54:06]MH_SAM_APDU [05:54:06]CAPDU: 80 0D 02 02 FA 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 [05:54:06]Write to MH i2c: E2 02 01 34 A0 80 0D 02 02 FA 00 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 FF [05:54:06]Write i2c OK [05:54:06]MH_I2C_Read... [05:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:06]Read from MH i2c: E2 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 03 00 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 03 00 34 A0 00 90 00 48 [05:54:06]RAPDU: 90 00 [05:54:06]wFMCommunicate OK [05:54:06]wFMCommunicate request_size=110 [05:54:06]MH_SAM_APDU [05:54:06]CAPDU: 80 0D 02 02 69 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 0D 23 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DF 10 01 00 35 04 06 00 30 9B 8E 01 F6 E3 [05:54:06]Write to MH i2c: E2 71 00 35 A0 80 0D 02 02 69 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 0D 23 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DF 10 01 00 35 04 06 00 30 9B 8E 01 F6 E3 00 00 7E [05:54:06]Write i2c OK [05:54:06]MH_I2C_Read... [05:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:06]Read from MH i2c: E2 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 03 00 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 03 00 35 A0 00 90 00 49 [05:54:06]RAPDU: 90 00 [05:54:06]wFMCommunicate OK [05:54:06]wFMCommunicate request_size=4 [05:54:06]MH_SAM_APDU [05:54:06]CAPDU: 80 0D 03 02 [05:54:06]Write to MH i2c: E2 08 00 36 A0 80 0D 03 02 00 00 00 00 51 [05:54:06]Write i2c OK [05:54:06]MH_I2C_Read... [05:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:54:06]Read from MH i2c: E2 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 0B 00 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 0B 00 36 A0 00 B0 1D AA 27 69 37 99 CF 90 00 F8 [05:54:06]RAPDU: B0 1D AA 27 69 37 99 CF 90 00 [05:54:06]wFMCommunicate OK [05:54:06]SAM_PROTO_SignData done [05:54:06]FM_MakeSignedData done [05:54:06]CreateOFDProtocolMessage [05:54:06]wFMCommunicate request_size=4 [05:54:06]MH_SAM_APDU [05:54:06]CAPDU: 80 11 00 00 [05:54:06]Write to MH i2c: E2 08 00 37 A0 80 11 00 00 00 00 00 00 51 [05:54:06]Write i2c OK [05:54:06]MH_I2C_Read... [05:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:06]Read from MH i2c: E2 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 17 00 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: E2 17 00 37 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AD [05:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:54:06]wFMCommunicate OK [05:54:06]CreateOFDProtocolMessage done [05:54:06]OFDSenderStorePacket 69855 [05:54:06]StoreOFDPacket docnum=69855 [05:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 6D 02 00 00 19 AA 65 02 14 E5 5A 03 01 00 03 00 59 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0D 23 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DF 10 01 00 35 04 06 00 30 9B 8E 01 F6 E3 B0 1D AA 27 69 37 99 CF [05:54:06]CheckFolder [05:54:06]dirname=/storage/ofd_packets [05:54:06]CheckFolder done [05:54:06]ProducePacketName [05:54:06]name=ofd_packets/00069855 [05:54:06]NVStorageSaveData ofd_packets/00069855 [05:54:06]File name is /storage/ofd_packets/00069855 [05:54:06]Write 651 bytes [05:54:06]NVStorageSaveData done [05:54:06]OFDSenderStorePacket done [05:54:06]KKMCreateOFDPacket done [05:54:06]NVStorageSaveData kkm_last_timestamp [05:54:06]File name is /storage/kkm_last_timestamp [05:54:06]Write 4 bytes [05:54:06]NVStorageSaveData done [05:54:06]ExternCall_PrintAddStr [05:54:06]wPrintStart [05:54:06]Write to MH i2c: 01 00 00 38 A0 D8 [05:54:06]Write i2c OK [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: 01 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: 01 07 00 [05:54:06]MH_I2C_Read... [05:54:06]Read from MH i2c: 01 07 00 38 A0 00 00 00 00 00 FF 0F ED [05:54:06]RasterBufferAndPrint [05:54:06]line Счет N : (3)137095 [05:54:06]line ИНН: 02508201610067 [05:54:06]line Контрольно-Кассовый Чек [05:54:06]line ПРОДАЖА [05:54:06]line Товар: 4640030091645 [05:54:06]line Сигареты ESSE Exchange M [05:54:06]line 1.000 * 150.00 [05:54:06]line = 150.00 [05:54:06]line НДС 12% НСП 1% [05:54:06]line > о реализуемом товаре [05:54:06]line Товар: 6931280300549 [05:54:06]line Зажигалка Cricket ПН пьезо [05:54:06]line 1.000 * 67.00 [05:54:07]line = 67.00 [05:54:07]line НДС 12% НСП 1% [05:54:07]line > о реализуемом товаре [05:54:07]line Товар: 4700000160211 [05:54:07]line Вода Легенда 0,5л [05:54:07]line 1.000 * 40.00 [05:54:07]line = 40.00 [05:54:07]line НДС 12% НСП 1% [05:54:07]line > о реализуемом товаре [05:54:07]line Товар: 2000036220012 [05:54:07]line Кофе Капучино XL(GABB TRADE) [05:54:07]line 1.000 * 130.00 [05:54:07]line = 130.00 [05:54:07]line НДС 12% НСП 1% [05:54:07]line > о реализуемом товаре [05:54:07]line ИТОГО: 387.00 [05:54:07]line НСП 1% : 3.42 [05:54:07]line НДС 12% : 41.09 [05:54:07]line Наличными: 387.00 [05:54:07]line Безнал.: 0.00 [05:54:07]line Место: АЗС № 125 "Партнер Нефть" [05:54:07]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [05:54:07]line СНО: Общий режим [05:54:07]line Чек 18 01.08.2024 05:54 [05:54:07]line Смена: 433 ФФД: 1.0 [05:54:07]line ЗНМ: 0300000049 [05:54:07]line РНМ: 0000000000092638 [05:54:07]line Версия ККМ: 001 [05:54:07]line ФМ: 0000000000874949 [05:54:07]line ФД: 69855 [05:54:07]line ФПД: 53444660557539 [05:54:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T055421&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69855&fm=53444660557539&tin=02508201610067®Number=0000000000092638&sum=38700 [05:54:07]line 0 [05:54:07]OFD Sender: Processing packet 69855 [packets to send 19, broken 18] [05:54:07]ProducePacketName [05:54:07]name=ofd_packets/00069855 [05:54:07]OFD Sender: To server: pG, [05:54:07]CommunicateWithHost lk.salyk.kg:30040 [05:54:07]ConnectInit lk.salyk.kg [05:54:07]written 0, free lines is 4095 [05:54:07]Connected sock=10 [05:54:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 6D 02 00 00 19 AA 65 02 14 E5 5A 03 01 00 03 00 59 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0D 23 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DF 10 01 00 35 04 06 00 30 9B 8E 01 F6 E3 B0 1D AA 27 69 37 99 CF [05:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F7 F8 47 00 B2 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 DF 10 01 00 F4 03 04 00 6F C9 AA 66 B6 04 01 00 00 EE 2B 71 E9 98 BB 85 D5 [05:54:07]CommunicateWithHost err = 0 [05:54:07]CheckOFDResponse [05:54:07]1017 (14) - 77093643461234 [05:54:07]1041 (16) - 0000000000874949 [05:54:07]1040 (4) - 69855 [05:54:07]1012 (4) - 31.07.2024 23:31 [05:54:07]1206 (1) - 0 [05:54:07]OFD Sender: Remove packet 69855 [05:54:07]ProducePacketName [05:54:07]name=ofd_packets/00069855 [05:54:07]NVStorageDeleteData [05:54:07]Write to MH i2c: 01 00 00 73 A0 13 [05:54:07]Write i2c OK [05:54:07]MH_I2C_Read... [05:54:07]Read from MH i2c: 01 [05:54:07]MH_I2C_Read... [05:54:07]Read from MH i2c: 01 07 00 [05:54:07]MH_I2C_Read... [05:54:07]Read from MH i2c: 01 07 00 73 A0 00 00 00 00 00 2A 0C 50 [05:54:07]RasterBufferAndPrint [05:54:07]line [05:54:07]line [05:54:07]line [05:54:07]line [05:54:07]line [05:54:07]written 0, free lines is 3123 [05:54:07]MH_Cut [05:54:07]Write to MH i2c: D1 01 00 7A A0 01 EC [05:54:07]Write i2c OK [05:54:07]MH_I2C_Read... [05:54:07]Read from MH i2c: D1 [05:54:07]MH_I2C_Read... [05:54:07]Read from MH i2c: D1 01 00 [05:54:07]MH_I2C_Read... [05:54:07]Read from MH i2c: D1 01 00 7A A0 00 EB [05:54:07]Write to MH i2c: 01 00 00 7B A0 1B [05:54:07]Write i2c OK [05:54:07]MH_I2C_Read... [05:54:07]OFD Sender: No OFD packet to send [05:54:08]*** Cut start [05:54:08]*** Partial cut [05:54:08]*** CUTSNS_PIN = 1 [05:54:08]*** CUTSNS_PIN = 0 [05:54:08]*** Brake cut motor [05:54:09]Read from MH i2c: 01 [05:54:09]MH_I2C_Read... [05:54:09]*** Stop cut motor [05:54:09]*** Cut end [05:54:09]Read from MH i2c: 01 07 00 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: 01 07 00 7B A0 00 00 00 00 00 FF 0F 30 [05:54:09]process_action close_receipt done [05:54:09]requested_data is exist [05:54:09]produce_requested_data [05:54:09]requested_item fm.sn is exist - process it [05:54:09]wFMCommunicate request_size=4 [05:54:09]MH_SAM_APDU [05:54:09]CAPDU: 80 11 00 00 [05:54:09]Write to MH i2c: E2 08 00 7C A0 80 11 00 00 00 00 00 00 96 [05:54:09]Write i2c OK [05:54:09]MH_I2C_Read... [05:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:09]Read from MH i2c: E2 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: E2 17 00 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: E2 17 00 7C A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F2 [05:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [05:54:09]wFMCommunicate OK [05:54:09]requested_item fd.num is exist - process it [05:54:09]SAM_PROTO_GetFieldsCounters [05:54:09]wFMCommunicate request_size=4 [05:54:09]MH_SAM_APDU [05:54:09]CAPDU: 80 13 00 00 [05:54:09]Write to MH i2c: E2 08 00 7D A0 80 13 00 00 00 00 00 00 99 [05:54:09]Write i2c OK [05:54:09]MH_I2C_Read... [05:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:54:09]Read from MH i2c: E2 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: E2 62 00 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: E2 62 00 7D A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DF 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [05:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 DF 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:54:09]wFMCommunicate OK [05:54:09]SAM_PROTO_GetFieldsCounters done [05:54:09]requested_item shift.num is exist - process it [05:54:09]requested_item shift.opened is exist - process it [05:54:09]req_shift_opened [05:54:09]FM_GetShiftState [05:54:09]SAM_PROTO_GetShiftState [05:54:09]wFMCommunicate request_size=4 [05:54:09]MH_SAM_APDU [05:54:09]CAPDU: 80 13 01 00 [05:54:09]Write to MH i2c: E2 08 00 7E A0 80 13 01 00 00 00 00 00 9B [05:54:09]Write i2c OK [05:54:09]MH_I2C_Read... [05:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:09]Read from MH i2c: E2 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: E2 0E 00 [05:54:09]MH_I2C_Read... [05:54:09]Read from MH i2c: E2 0E 00 7E A0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D4 [05:54:09]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [05:54:09]wFMCommunicate OK [05:54:09]SAM_PROTO_GetShiftState done [05:54:09]FM_GetShiftState done [05:54:09]req_shift_opened done [05:54:09]requested_item shift.open_date is exist - process it [05:54:09]req_shift_open_date [05:54:09]req_shift_open_date done [05:54:09]produce_requested_data done [05:54:09]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69855,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [05:54:09]process_action_free close_receipt [05:54:09]json_value_free [05:54:09]json_value_free done [05:54:09]process_json_proto returns [05:54:09]Send response to host [05:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69855,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [05:54:09]free response buf [05:54:09]execute_script done [05:54:09]execute_script returns [05:54:09]free content buf [05:54:09]Sock 9.Close socket [05:54:09]Sock 9.Thread stoped [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:11]accept exits with 7 [06:59:11]New connection [06:59:11]New thread 3067002212 created [06:59:11]Thread 3066858852 joined [06:59:11]Waiting for new connection... [06:59:11] Sock 7.Parse request [06:59:11]Sock 7.Check first char [06:59:11]Sock 7.First char is OK [06:59:11]request: POST /json_proto HTTP/1.0 [06:59:11]Method: POST [06:59:11]URL: /json_proto [06:59:11]Method is POST - this is cgi request [06:59:11]url: /json_proto [06:59:11]query_string will be loaded in cgi processing [06:59:11]execute_cgi json_proto POST (null) [06:59:11]execute_cgi path=json_proto method=POST [06:59:11]POST find Content-Length [06:59:11]Host: 172.17.49.132:8080 [06:59:11]Content-Length: 2702 [06:59:11]Content-Type: application/json [06:59:11] [06:59:11]POST finish read [06:59:11]Found Content-Length = 2702 [06:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137096", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004760", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard black cherry \u0441\u04420,44\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721026714", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043D\u0430\u043D\u0430\u0441,\u0433\u0440\u0435\u0439\u043F 6,2% \u0441\u0442 0,5/0,45\u043B", "price" : 137.00, "quantity" : 1.000, "sum" : 137.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721026653", "name": "\u041F\u0438\u0432\u043E ESSA \u043B\u0430\u0439\u043C \u043C\u044F\u0442\u0430 6,5% \u0441\u0442 0,45\u043B", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 998.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:11]execute_script... [06:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137096", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004760", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard black cherry \u0441\u04420,44\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721026714", "name": "\u041F\u0438\u0432\u043E ESSA \u0430\u043D\u0430\u043D\u0430\u0441,\u0433\u0440\u0435\u0439\u043F 6,2% \u0441\u0442 0,5/0,45\u043B", "price" : 137.00, "quantity" : 1.000, "sum" : 137.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721026653", "name": "\u041F\u0438\u0432\u043E ESSA \u043B\u0430\u0439\u043C \u043C\u044F\u0442\u0430 6,5% \u0441\u0442 0,45\u043B", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 998.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:11]POST & json_proto [06:59:11]process_json_proto [06:59:11]json parsed OK: [06:59:11]protocol is kg_v1.0 [06:59:11]action value=close_receipt [06:59:11]process_action close_receipt [06:59:11]cmd_close_receipt [06:59:11]MH_GetDate [06:59:11]Write to MH i2c: F0 00 00 7F A0 0E [06:59:11]Write i2c OK [06:59:11]MH_I2C_Read... [06:59:11]Read from MH i2c: F0 [06:59:11]MH_I2C_Read... [06:59:11]Read from MH i2c: F0 09 00 [06:59:11]MH_I2C_Read... [06:59:11]Read from MH i2c: F0 09 00 7F A0 00 4F 32 AB 66 E7 4B C0 64 FF [06:59:11]GetLastDocTimeStamp 1722491661 [06:59:11]current date 1722495567 [06:59:11]FM_GetShiftState [06:59:11]SAM_PROTO_GetShiftState [06:59:11]wFMCommunicate request_size=4 [06:59:11]MH_SAM_APDU [06:59:11]CAPDU: 80 13 01 00 [06:59:11]Write to MH i2c: E2 08 00 80 A0 80 13 01 00 00 00 00 00 9D [06:59:11]Write i2c OK [06:59:11]MH_I2C_Read... [06:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:11]Read from MH i2c: E2 [06:59:11]MH_I2C_Read... [06:59:11]Read from MH i2c: E2 0E 00 [06:59:11]MH_I2C_Read... [06:59:11]Read from MH i2c: E2 0E 00 80 A0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D6 [06:59:11]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [06:59:11]wFMCommunicate OK [06:59:11]SAM_PROTO_GetShiftState done [06:59:11]FM_GetShiftState done [06:59:11]opened in 1722472772 [06:59:11]opened+sec_in_day 1722559172 [06:59:11]quantity*price = 400 [06:59:11]sum+1 = 401 [06:59:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004760 Напиток Garage hard black cherry ст0,44л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145004753 Напиток Garage hard lemon ст 0,4л 3.000 * 120.00 = 360.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721026714 Пиво ESSA ананас,грейп 6,2% ст 0,5/0,45л 1.000 * 137.00 = 137.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721026653 Пиво ESSA лайм мята 6,5% ст 0,45л 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630007400969 Арахис жарен Караван орехов Стандарт 40 3.000 * 40.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100977952 Шок Батончик Твикс 55г 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 998.00 НСП 1% : 8.82 НДС 12% : 105.96 Наличными: 998.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 19 01.08.2024 06:59 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69856 ФПД: 224172543042678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T065927&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69856&fm=224172543042678&tin=02508201610067®Number=0000000000092638&sum=99800 0 [06:59:12]StoreToDocumentArchive [06:59:12]shift 433 fd 69856 [06:59:12]save to /storage/0433/doc_00069856 [06:59:12]save last doc name /storage/0433/doc_00069856 to /storage/kkm_last_doc_name [06:59:12]save OK [06:59:12]Clear old archive folders... [06:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=1133 [06:59:12]tlvbuf is 014E8ED0 [06:59:12]SAM_PROTO_ClearQueue [06:59:12]wFMCommunicate request_size=4 [06:59:12]MH_SAM_APDU [06:59:12]CAPDU: 80 09 00 00 [06:59:12]Write to MH i2c: E2 08 00 8D A0 80 09 00 00 00 00 00 00 9F [06:59:12]Write i2c OK [06:59:12]MH_I2C_Read... [06:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:12]Read from MH i2c: E2 [06:59:12]MH_I2C_Read... [06:59:12]Read from MH i2c: E2 03 00 [06:59:12]MH_I2C_Read... [06:59:12]Read from MH i2c: E2 03 00 8D A0 00 90 00 A1 [06:59:12]RAPDU: 90 00 [06:59:12]wFMCommunicate OK [06:59:12]SAM_PROTO_ClearQueue done [06:59:12]KKMCreateOFDPacket [06:59:12]OFDProtocolAddRootSTLVToBuf [06:59:12]FM_MakeSignedData [06:59:12]FM_MakeSignedData [06:59:12]SAM_PROTO_SignData [06:59:12]wFMCommunicate request_size=4 [06:59:12]MH_SAM_APDU [06:59:12]CAPDU: 80 0D 01 02 [06:59:12]Write to MH i2c: E2 08 00 8E A0 80 0D 01 02 00 00 00 00 A7 [06:59:12]Write i2c OK [06:59:12]MH_I2C_Read... [06:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:12]Read from MH i2c: E2 [06:59:12]MH_I2C_Read... [06:59:12]Read from MH i2c: E2 03 00 [06:59:12]MH_I2C_Read... [06:59:12]Read from MH i2c: E2 03 00 8E A0 00 90 00 A2 [06:59:12]RAPDU: 90 00 [06:59:12]wFMCommunicate OK [06:59:12]wFMCommunicate request_size=255 [06:59:12]MH_SAM_APDU [06:59:12]CAPDU: 80 0D 02 02 FA 03 00 6D 04 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 [06:59:12]Write to MH i2c: E2 02 01 8F A0 80 0D 02 02 FA 00 03 00 6D 04 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 00 00 43 [06:59:12]Write i2c OK [06:59:12]MH_I2C_Read... [06:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:12]Read from MH i2c: E2 [06:59:12]MH_I2C_Read... [06:59:12]Read from MH i2c: E2 03 00 [06:59:12]MH_I2C_Read... [06:59:12]Read from MH i2c: E2 03 00 8F A0 00 90 00 A3 [06:59:12]RAPDU: 90 00 [06:59:12]wFMCommunicate OK [06:59:12]wFMCommunicate request_size=255 [06:59:12]MH_SAM_APDU [06:59:12]CAPDU: 80 0D 02 02 FA 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 37 32 31 30 [06:59:12]Write to MH i2c: E2 02 01 90 A0 80 0D 02 02 FA 00 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 37 32 31 30 00 00 E9 [06:59:12]Write i2c OK [06:59:12]MH_I2C_Read... [06:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:13]Read from MH i2c: E2 [06:59:13]MH_I2C_Read... [06:59:13]Read from MH i2c: E2 03 00 [06:59:13]MH_I2C_Read... [06:59:13]Read from MH i2c: E2 03 00 90 A0 00 90 00 A4 [06:59:13]RAPDU: 90 00 [06:59:13]wFMCommunicate OK [06:59:13]wFMCommunicate request_size=255 [06:59:13]MH_SAM_APDU [06:59:13]CAPDU: 80 0D 02 02 FA 32 36 36 35 33 06 04 30 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 BB D0 B0 D0 B9 D0 BC 20 D0 BC D1 8F D1 82 D0 B0 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [06:59:13]Write to MH i2c: E2 02 01 91 A0 80 0D 02 02 FA 00 32 36 36 35 33 06 04 30 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 BB D0 B0 D0 B9 D0 BC 20 D0 BC D1 8F D1 82 D0 B0 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 28 [06:59:13]Write i2c OK [06:59:13]MH_I2C_Read... [06:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:13]Read from MH i2c: E2 [06:59:13]MH_I2C_Read... [06:59:13]Read from MH i2c: E2 03 00 [06:59:13]MH_I2C_Read... [06:59:13]Read from MH i2c: E2 03 00 91 A0 00 90 00 A5 [06:59:13]RAPDU: 90 00 [06:59:13]wFMCommunicate OK [06:59:13]wFMCommunicate request_size=255 [06:59:13]MH_SAM_APDU [06:59:13]CAPDU: 80 0D 02 02 FA 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 [06:59:13]Write to MH i2c: E2 02 01 92 A0 80 0D 02 02 FA 00 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 E0 [06:59:13]Write i2c OK [06:59:13]MH_I2C_Read... [06:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:13]Read from MH i2c: E2 [06:59:13]MH_I2C_Read... [06:59:13]Read from MH i2c: E2 03 00 [06:59:13]MH_I2C_Read... [06:59:13]Read from MH i2c: E2 03 00 92 A0 00 90 00 A6 [06:59:13]RAPDU: 90 00 [06:59:13]wFMCommunicate OK [06:59:13]wFMCommunicate request_size=142 [06:59:13]MH_SAM_APDU [06:59:13]CAPDU: 80 0D 02 02 89 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 29 00 00 00 00 07 04 06 00 D8 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4F 32 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E0 10 01 00 35 04 06 00 CB E2 3C CB E4 76 [06:59:13]Write to MH i2c: E2 91 00 93 A0 80 0D 02 02 89 00 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 29 00 00 00 00 07 04 06 00 D8 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4F 32 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E0 10 01 00 35 04 06 00 CB E2 3C CB E4 76 00 00 3C [06:59:13]Write i2c OK [06:59:13]MH_I2C_Read... [06:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:14]Read from MH i2c: E2 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 03 00 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 03 00 93 A0 00 90 00 A7 [06:59:14]RAPDU: 90 00 [06:59:14]wFMCommunicate OK [06:59:14]wFMCommunicate request_size=4 [06:59:14]MH_SAM_APDU [06:59:14]CAPDU: 80 0D 03 02 [06:59:14]Write to MH i2c: E2 08 00 94 A0 80 0D 03 02 00 00 00 00 AF [06:59:14]Write i2c OK [06:59:14]MH_I2C_Read... [06:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:14]Read from MH i2c: E2 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 0B 00 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 0B 00 94 A0 00 48 A8 65 A8 68 9A 42 FB 90 00 EC [06:59:14]RAPDU: 48 A8 65 A8 68 9A 42 FB 90 00 [06:59:14]wFMCommunicate OK [06:59:14]SAM_PROTO_SignData done [06:59:14]FM_MakeSignedData done [06:59:14]CreateOFDProtocolMessage [06:59:14]wFMCommunicate request_size=4 [06:59:14]MH_SAM_APDU [06:59:14]CAPDU: 80 11 00 00 [06:59:14]Write to MH i2c: E2 08 00 95 A0 80 11 00 00 00 00 00 00 AF [06:59:14]Write i2c OK [06:59:14]MH_I2C_Read... [06:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:14]Read from MH i2c: E2 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 17 00 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: E2 17 00 95 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0B [06:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:59:14]wFMCommunicate OK [06:59:14]CreateOFDProtocolMessage done [06:59:14]OFDSenderStorePacket 69856 [06:59:14]StoreOFDPacket docnum=69856 [06:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 81 04 00 00 3E 07 79 04 B3 24 5A 03 01 00 03 00 6D 04 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 36 35 33 06 04 30 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 BB D0 B0 D0 B9 D0 BC 20 D0 BC D1 8F D1 82 D0 B0 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 29 00 00 00 00 07 04 06 00 D8 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4F 32 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E0 10 01 00 35 04 06 00 CB E2 3C CB E4 76 48 A8 65 A8 68 9A 42 FB [06:59:14]CheckFolder [06:59:14]dirname=/storage/ofd_packets [06:59:14]CheckFolder done [06:59:14]ProducePacketName [06:59:14]name=ofd_packets/00069856 [06:59:14]NVStorageSaveData ofd_packets/00069856 [06:59:14]File name is /storage/ofd_packets/00069856 [06:59:14]Write 1183 bytes [06:59:14]NVStorageSaveData done [06:59:14]OFDSenderStorePacket done [06:59:14]KKMCreateOFDPacket done [06:59:14]NVStorageSaveData kkm_last_timestamp [06:59:14]File name is /storage/kkm_last_timestamp [06:59:14]Write 4 bytes [06:59:14]NVStorageSaveData done [06:59:14]ExternCall_PrintAddStr [06:59:14]wPrintStart [06:59:14]Write to MH i2c: 01 00 00 96 A0 36 [06:59:14]OFD Sender: Processing packet 69856 [packets to send 19, broken 18] [06:59:14]ProducePacketName [06:59:14]name=ofd_packets/00069856 [06:59:14]OFD Sender: To server: pG, [06:59:14]CommunicateWithHost lk.salyk.kg:30040 [06:59:14]ConnectInit lk.salyk.kg [06:59:14]Write i2c OK [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: 01 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: 01 07 00 [06:59:14]MH_I2C_Read... [06:59:14]Read from MH i2c: 01 07 00 96 A0 00 00 00 00 00 FF 0F 4B [06:59:14]RasterBufferAndPrint [06:59:14]line Счет N : (3)137096 [06:59:14]line ИНН: 02508201610067 [06:59:14]line Контрольно-Кассовый Чек [06:59:14]line ПРОДАЖА [06:59:14]line Товар: 2000031750019 [06:59:14]line Пакет Партнер Нефть [06:59:14]line 1.000 * 4.00 [06:59:14]line = 4.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4870145004760 [06:59:14]line Напиток Garage hard black cherry ст0,44л [06:59:14]line 1.000 * 120.00 [06:59:14]line = 120.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4870145004753 [06:59:14]line Напиток Garage hard lemon ст 0,4л [06:59:14]line 3.000 * 120.00 [06:59:14]line = 360.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4600721026714 [06:59:14]line Пиво ESSA ананас,грейп 6,2% ст 0,5/0,45л [06:59:14]line 1.000 * 137.00 [06:59:14]line = 137.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4600721026653 [06:59:14]line Пиво ESSA лайм мята 6,5% ст 0,45л [06:59:14]line 1.000 * 138.00 [06:59:14]line = 138.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4630007400969 [06:59:14]line Арахис жарен Караван орехов Стандарт 40 [06:59:14]line 3.000 * 40.00 [06:59:14]line = 120.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4011100977624 [06:59:14]line Шок Батончик Баунти 55г [06:59:14]line 1.000 * 59.00 [06:59:14]line = 59.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line Товар: 4011100977952 [06:59:14]line Шок Батончик Твикс 55г [06:59:14]line 1.000 * 60.00 [06:59:14]line = 60.00 [06:59:14]line НДС 12% НСП 1% [06:59:14]line > о реализуемом товаре [06:59:14]line ИТОГО: 998.00 [06:59:14]line НСП 1% : 8.82 [06:59:14]line НДС 12% : 105.96 [06:59:14]line Наличными: 998.00 [06:59:14]line Безнал.: 0.00 [06:59:14]line Место: АЗС № 125 "Партнер Нефть" [06:59:14]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [06:59:14]line СНО: Общий режим [06:59:14]line Чек 19 01.08.2024 06:59 [06:59:14]line Смена: 433 ФФД: 1.0 [06:59:14]line ЗНМ: 0300000049 [06:59:14]line РНМ: 0000000000092638 [06:59:14]line Версия ККМ: 001 [06:59:14]line ФМ: 0000000000874949 [06:59:14]line ФД: 69856 [06:59:14]line ФПД: 224172543042678 [06:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T065927&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69856&fm=224172543042678&tin=02508201610067®Number=0000000000092638&sum=99800 [06:59:14]line 0 [06:59:14]written 0, free lines is 4095 [06:59:14]Connected sock=10 [06:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 81 04 00 00 3E 07 79 04 B3 24 5A 03 01 00 03 00 6D 04 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 36 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 62 6C 61 63 6B 20 63 68 65 72 72 79 20 D1 81 D1 82 30 2C 34 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 37 31 34 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 2C D0 B3 D1 80 D0 B5 D0 B9 D0 BF 20 36 2C 32 25 20 D1 81 D1 82 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 36 36 35 33 06 04 30 00 D0 9F D0 B8 D0 B2 D0 BE 20 45 53 53 41 20 D0 BB D0 B0 D0 B9 D0 BC 20 D0 BC D1 8F D1 82 D0 B0 20 36 2C 35 25 20 D1 81 D1 82 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 29 00 00 00 00 07 04 06 00 D8 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 4F 32 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E0 10 01 00 35 04 06 00 CB E2 3C CB E4 76 48 A8 65 A8 68 9A 42 FB [06:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 DD B7 47 00 BD 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 34 39 34 39 10 04 04 00 E0 10 01 00 F4 03 04 00 B3 D8 AA 66 B6 04 01 00 00 BC 6D AF CB 82 3B AE 4A [06:59:15]CommunicateWithHost err = 0 [06:59:15]CheckOFDResponse [06:59:15]1017 (14) - 77093643461234 [06:59:15]1041 (16) - 0000000000874949 [06:59:15]1040 (4) - 69856 [06:59:15]1012 (4) - 01.08.2024 00:37 [06:59:15]1206 (1) - 0 [06:59:15]OFD Sender: Remove packet 69856 [06:59:15]ProducePacketName [06:59:15]name=ofd_packets/00069856 [06:59:15]NVStorageDeleteData [06:59:15]Write to MH i2c: 01 00 00 ED A0 8D [06:59:15]Write i2c OK [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: 01 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: 01 07 00 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: 01 07 00 ED A0 00 00 00 00 00 B9 0A 57 [06:59:15]RasterBufferAndPrint [06:59:15]line [06:59:15]line [06:59:15]line [06:59:15]line [06:59:15]line [06:59:15]written 0, free lines is 2758 [06:59:15]MH_Cut [06:59:15]Write to MH i2c: D1 01 00 F4 A0 01 66 [06:59:15]Write i2c OK [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: D1 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: D1 01 00 [06:59:15]MH_I2C_Read... [06:59:15]Read from MH i2c: D1 01 00 F4 A0 00 65 [06:59:15]Write to MH i2c: 01 00 00 F5 A0 95 [06:59:15]Write i2c OK [06:59:15]MH_I2C_Read... [06:59:15]OFD Sender: No OFD packet to send [06:59:16]*** Cut start [06:59:16]*** Partial cut [06:59:16]*** CUTSNS_PIN = 1 [06:59:16]*** CUTSNS_PIN = 0 [06:59:16]*** Brake cut motor [06:59:17]Read from MH i2c: 01 [06:59:17]MH_I2C_Read... [06:59:17]*** Stop cut motor [06:59:17]*** Cut end [06:59:17]Read from MH i2c: 01 07 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: 01 07 00 F5 A0 00 00 00 00 00 FF 0F AA [06:59:17]process_action close_receipt done [06:59:17]requested_data is exist [06:59:17]produce_requested_data [06:59:17]requested_item fm.sn is exist - process it [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 11 00 00 [06:59:17]Write to MH i2c: E2 08 00 F6 A0 80 11 00 00 00 00 00 00 10 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 17 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 17 00 F6 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 6C [06:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [06:59:17]wFMCommunicate OK [06:59:17]requested_item fd.num is exist - process it [06:59:17]SAM_PROTO_GetFieldsCounters [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 13 00 00 [06:59:17]Write to MH i2c: E2 08 00 F7 A0 80 13 00 00 00 00 00 00 13 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 62 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 62 00 F7 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E0 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [06:59:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E0 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:17]wFMCommunicate OK [06:59:17]SAM_PROTO_GetFieldsCounters done [06:59:17]requested_item shift.num is exist - process it [06:59:17]requested_item shift.opened is exist - process it [06:59:17]req_shift_opened [06:59:17]FM_GetShiftState [06:59:17]SAM_PROTO_GetShiftState [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 13 01 00 [06:59:17]Write to MH i2c: E2 08 00 F8 A0 80 13 01 00 00 00 00 00 15 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 0E 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 0E 00 F8 A0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 4E [06:59:17]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [06:59:17]wFMCommunicate OK [06:59:17]SAM_PROTO_GetShiftState done [06:59:17]FM_GetShiftState done [06:59:17]req_shift_opened done [06:59:17]requested_item shift.open_date is exist - process it [06:59:17]req_shift_open_date [06:59:17]req_shift_open_date done [06:59:17]produce_requested_data done [06:59:17]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69856,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [06:59:17]process_action_free close_receipt [06:59:17]json_value_free [06:59:17]json_value_free done [06:59:17]process_json_proto returns [06:59:17]Send response to host [06:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69856,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [06:59:17]free response buf [06:59:17]execute_script done [06:59:17]execute_script returns [06:59:17]free content buf [06:59:17]Sock 7.Close socket [06:59:17]Sock 7.Thread stoped [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:26]accept exits with 9 [07:56:26]New connection [07:56:26]New thread 3066858852 created [07:56:26]Thread 3067002212 joined [07:56:26]Waiting for new connection... [07:56:26] Sock 9.Parse request [07:56:26]Sock 9.Check first char [07:56:26]Sock 9.First char is OK [07:56:26]request: POST /json_proto HTTP/1.0 [07:56:26]Method: POST [07:56:26]URL: /json_proto [07:56:26]Method is POST - this is cgi request [07:56:26]url: /json_proto [07:56:26]query_string will be loaded in cgi processing [07:56:26]execute_cgi json_proto POST (null) [07:56:26]execute_cgi path=json_proto method=POST [07:56:26]POST find Content-Length [07:56:26]Host: 172.17.49.132:8080 [07:56:26]Content-Length: 918 [07:56:26]Content-Type: application/json [07:56:26] [07:56:26]POST finish read [07:56:26]Found Content-Length = 918 [07:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137097", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:26]execute_script... [07:56: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 : (3)137097", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:26]POST & json_proto [07:56:26]process_json_proto [07:56:26]json parsed OK: [07:56:26]protocol is kg_v1.0 [07:56:26]action value=close_receipt [07:56:26]process_action close_receipt [07:56:26]cmd_close_receipt [07:56:26]MH_GetDate [07:56:26]Write to MH i2c: F0 00 00 F9 A0 88 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: F0 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: F0 09 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: F0 09 00 F9 A0 00 BB 3F AB 66 E7 4B C0 64 F2 [07:56:26]GetLastDocTimeStamp 1722495567 [07:56:26]current date 1722499003 [07:56:26]FM_GetShiftState [07:56:26]SAM_PROTO_GetShiftState [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 13 01 00 [07:56:26]Write to MH i2c: E2 08 00 FA A0 80 13 01 00 00 00 00 00 17 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 0E 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 0E 00 FA A0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 50 [07:56:26]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [07:56:26]wFMCommunicate OK [07:56:26]SAM_PROTO_GetShiftState done [07:56:26]FM_GetShiftState done [07:56:26]opened in 1722472772 [07:56:26]opened+sec_in_day 1722559172 [07:56:26]quantity*price = 33000 [07:56:26]sum+1 = 33001 [07:56:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329999 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.84 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 20 01.08.2024 07:56 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69857 ФПД: 94834328409181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T075644&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69857&fm=94834328409181&tin=02508201610067®Number=0000000000092638&sum=46000 0 [07:56:28]StoreToDocumentArchive [07:56:28]shift 433 fd 69857 [07:56:28]save to /storage/0433/doc_00069857 [07:56:28]save last doc name /storage/0433/doc_00069857 to /storage/kkm_last_doc_name [07:56:28]save OK [07:56:28]Clear old archive folders... [07:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=396 [07:56:28]tlvbuf is 012F2AD0 [07:56:28]SAM_PROTO_ClearQueue [07:56:28]wFMCommunicate request_size=4 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 09 00 00 [07:56:28]Write to MH i2c: E2 08 00 07 A1 80 09 00 00 00 00 00 00 1A [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 07 A1 00 90 00 1C [07:56:28]RAPDU: 90 00 [07:56:28]wFMCommunicate OK [07:56:28]SAM_PROTO_ClearQueue done [07:56:28]KKMCreateOFDPacket [07:56:28]OFDProtocolAddRootSTLVToBuf [07:56:28]FM_MakeSignedData [07:56:28]FM_MakeSignedData [07:56:28]SAM_PROTO_SignData [07:56:28]wFMCommunicate request_size=4 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 0D 01 02 [07:56:28]Write to MH i2c: E2 08 00 08 A1 80 0D 01 02 00 00 00 00 22 [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 08 A1 00 90 00 1D [07:56:28]RAPDU: 90 00 [07:56:28]wFMCommunicate OK [07:56:28]wFMCommunicate request_size=255 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 [07:56:28]Write to MH i2c: E2 02 01 09 A1 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 00 00 0C [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]OFD Sender: No OFD packet to send [07:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 09 A1 00 90 00 1E [07:56:28]RAPDU: 90 00 [07:56:28]wFMCommunicate OK [07:56:28]wFMCommunicate request_size=155 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 14 00 00 00 F4 03 04 00 BC 3F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E1 10 01 00 35 04 06 00 56 40 56 75 14 5D [07:56:28]Write to MH i2c: E2 9E 00 0A A1 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 14 00 00 00 F4 03 04 00 BC 3F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E1 10 01 00 35 04 06 00 56 40 56 75 14 5D 00 00 4F [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 03 00 0A A1 00 90 00 1F [07:56:28]RAPDU: 90 00 [07:56:28]wFMCommunicate OK [07:56:28]wFMCommunicate request_size=4 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 0D 03 02 [07:56:28]Write to MH i2c: E2 08 00 0B A1 80 0D 03 02 00 00 00 00 27 [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 0B 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 0B 00 0B A1 00 40 D4 1C 58 5E CD 5C B1 90 00 E8 [07:56:28]RAPDU: 40 D4 1C 58 5E CD 5C B1 90 00 [07:56:28]wFMCommunicate OK [07:56:28]SAM_PROTO_SignData done [07:56:28]FM_MakeSignedData done [07:56:28]CreateOFDProtocolMessage [07:56:28]wFMCommunicate request_size=4 [07:56:28]MH_SAM_APDU [07:56:28]CAPDU: 80 11 00 00 [07:56:28]Write to MH i2c: E2 08 00 0C A1 80 11 00 00 00 00 00 00 27 [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:28]Read from MH i2c: E2 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 17 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: E2 17 00 0C A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 83 [07:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:56:28]wFMCommunicate OK [07:56:28]CreateOFDProtocolMessage done [07:56:28]OFDSenderStorePacket 69857 [07:56:28]StoreOFDPacket docnum=69857 [07:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 A0 01 00 00 92 CE 98 01 5F DF 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 14 00 00 00 F4 03 04 00 BC 3F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E1 10 01 00 35 04 06 00 56 40 56 75 14 5D 40 D4 1C 58 5E CD 5C B1 [07:56:28]CheckFolder [07:56:28]dirname=/storage/ofd_packets [07:56:28]CheckFolder done [07:56:28]ProducePacketName [07:56:28]name=ofd_packets/00069857 [07:56:28]NVStorageSaveData ofd_packets/00069857 [07:56:28]File name is /storage/ofd_packets/00069857 [07:56:28]Write 446 bytes [07:56:28]NVStorageSaveData done [07:56:28]OFDSenderStorePacket done [07:56:28]KKMCreateOFDPacket done [07:56:28]NVStorageSaveData kkm_last_timestamp [07:56:28]File name is /storage/kkm_last_timestamp [07:56:28]Write 4 bytes [07:56:28]NVStorageSaveData done [07:56:28]ExternCall_PrintAddStr [07:56:28]wPrintStart [07:56:28]Write to MH i2c: 01 00 00 0D A1 AE [07:56:28]Write i2c OK [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: 01 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: 01 07 00 [07:56:28]MH_I2C_Read... [07:56:28]Read from MH i2c: 01 07 00 0D A1 00 00 00 00 00 FF 0F C3 [07:56:28]RasterBufferAndPrint [07:56:28]line Счет N : (3)137097 [07:56:28]line ИНН: 02508201610067 [07:56:28]line Контрольно-Кассовый Чек [07:56:28]line ПРОДАЖА [07:56:28]line Товар: 4700001060169 [07:56:28]line Коньяк Бишкек 0,2л [07:56:28]line 1.000 * 330.00 [07:56:29]line = 330.00 [07:56:29]line НДС 12% НСП 1% [07:56:29]line > о реализуемом товаре [07:56:29]line Товар: 4870002329999 [07:56:29]line Напиток Lipton IceTea 1л лимон Regular [07:56:29]line 1.000 * 130.00 [07:56:29]line = 130.00 [07:56:29]line НДС 12% НСП 1% [07:56:29]line > о реализуемом товаре [07:56:29]line ИТОГО: 460.00 [07:56:29]line НСП 1% : 4.07 [07:56:29]line НДС 12% : 48.84 [07:56:29]line Наличными: 460.00 [07:56:29]line Безнал.: 0.00 [07:56:29]line Место: АЗС № 125 "Партнер Нефть" [07:56:29]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [07:56:29]line СНО: Общий режим [07:56:29]line Чек 20 01.08.2024 07:56 [07:56:29]line Смена: 433 ФФД: 1.0 [07:56:29]line ЗНМ: 0300000049 [07:56:29]line РНМ: 0000000000092638 [07:56:29]line Версия ККМ: 001 [07:56:29]line ФМ: 0000000000874949 [07:56:29]line ФД: 69857 [07:56:29]line ФПД: 94834328409181 [07:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T075644&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69857&fm=94834328409181&tin=02508201610067®Number=0000000000092638&sum=46000 [07:56:29]line 0 [07:56:29]OFD Sender: Processing packet 69857 [packets to send 19, broken 18] [07:56:29]ProducePacketName [07:56:29]name=ofd_packets/00069857 [07:56:29]OFD Sender: To server: pG, [07:56:29]CommunicateWithHost lk.salyk.kg:30040 [07:56:29]ConnectInit lk.salyk.kg [07:56:29]written 0, free lines is 4095 [07:56:29]Connected sock=10 [07:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 A0 01 00 00 92 CE 98 01 5F DF 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 14 00 00 00 F4 03 04 00 BC 3F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E1 10 01 00 35 04 06 00 56 40 56 75 14 5D 40 D4 1C 58 5E CD 5C B1 [07:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7B AF 47 00 60 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E1 10 01 00 F4 03 04 00 1E E6 AA 66 B6 04 01 00 00 7A 09 49 85 68 AC 98 56 [07:56:29]CommunicateWithHost err = 0 [07:56:29]CheckOFDResponse [07:56:29]1017 (14) - 77093643461234 [07:56:29]1041 (16) - 0000000000874949 [07:56:29]1040 (4) - 69857 [07:56:29]1012 (4) - 01.08.2024 01:34 [07:56:29]1206 (1) - 0 [07:56:29]OFD Sender: Remove packet 69857 [07:56:29]ProducePacketName [07:56:29]name=ofd_packets/00069857 [07:56:29]NVStorageDeleteData [07:56:29]Write to MH i2c: 01 00 00 3C A1 DD [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: 01 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: 01 07 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: 01 07 00 3C A1 00 00 00 00 00 C0 0C B0 [07:56:29]RasterBufferAndPrint [07:56:29]line [07:56:29]line [07:56:29]line [07:56:29]line [07:56:29]line [07:56:29]written 0, free lines is 3273 [07:56:29]MH_Cut [07:56:29]Write to MH i2c: D1 01 00 43 A1 01 B6 [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: D1 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: D1 01 00 [07:56:29]MH_I2C_Read... [07:56:29]Read from MH i2c: D1 01 00 43 A1 00 B5 [07:56:29]Write to MH i2c: 01 00 00 44 A1 E5 [07:56:29]Write i2c OK [07:56:29]MH_I2C_Read... [07:56:29]OFD Sender: No OFD packet to send [07:56:30]*** Cut start [07:56:30]*** Partial cut [07:56:30]*** CUTSNS_PIN = 1 [07:56:30]*** CUTSNS_PIN = 0 [07:56:30]*** Brake cut motor [07:56:30]Read from MH i2c: 01 [07:56:30]MH_I2C_Read... [07:56:30]*** Stop cut motor [07:56:30]*** Cut end [07:56:30]Read from MH i2c: 01 07 00 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: 01 07 00 44 A1 00 00 00 00 00 FF 0F FA [07:56:30]process_action close_receipt done [07:56:30]requested_data is exist [07:56:30]produce_requested_data [07:56:30]requested_item fm.sn is exist - process it [07:56:30]wFMCommunicate request_size=4 [07:56:30]MH_SAM_APDU [07:56:30]CAPDU: 80 11 00 00 [07:56:30]Write to MH i2c: E2 08 00 45 A1 80 11 00 00 00 00 00 00 60 [07:56:30]Write i2c OK [07:56:30]MH_I2C_Read... [07:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:30]Read from MH i2c: E2 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: E2 17 00 [07:56:30]MH_I2C_Read... [07:56:30]Read from MH i2c: E2 17 00 45 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BC [07:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [07:56:30]wFMCommunicate OK [07:56:30]requested_item fd.num is exist - process it [07:56:30]SAM_PROTO_GetFieldsCounters [07:56:30]wFMCommunicate request_size=4 [07:56:30]MH_SAM_APDU [07:56:30]CAPDU: 80 13 00 00 [07:56:30]Write to MH i2c: E2 08 00 46 A1 80 13 00 00 00 00 00 00 63 [07:56:30]Write i2c OK [07:56:30]MH_I2C_Read... [07:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:31]Read from MH i2c: E2 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 62 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 62 00 46 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E1 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [07:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E1 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:31]wFMCommunicate OK [07:56:31]SAM_PROTO_GetFieldsCounters done [07:56:31]requested_item shift.num is exist - process it [07:56:31]requested_item shift.opened is exist - process it [07:56:31]req_shift_opened [07:56:31]FM_GetShiftState [07:56:31]SAM_PROTO_GetShiftState [07:56:31]wFMCommunicate request_size=4 [07:56:31]MH_SAM_APDU [07:56:31]CAPDU: 80 13 01 00 [07:56:31]Write to MH i2c: E2 08 00 47 A1 80 13 01 00 00 00 00 00 65 [07:56:31]Write i2c OK [07:56:31]MH_I2C_Read... [07:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:31]Read from MH i2c: E2 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 0E 00 [07:56:31]MH_I2C_Read... [07:56:31]Read from MH i2c: E2 0E 00 47 A1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 9E [07:56:31]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [07:56:31]wFMCommunicate OK [07:56:31]SAM_PROTO_GetShiftState done [07:56:31]FM_GetShiftState done [07:56:31]req_shift_opened done [07:56:31]requested_item shift.open_date is exist - process it [07:56:31]req_shift_open_date [07:56:31]req_shift_open_date done [07:56:31]produce_requested_data done [07:56:31]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69857,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [07:56:31]process_action_free close_receipt [07:56:31]json_value_free [07:56:31]json_value_free done [07:56:31]process_json_proto returns [07:56:31]Send response to host [07:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69857,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [07:56:31]free response buf [07:56:31]execute_script done [07:56:31]execute_script returns [07:56:31]free content buf [07:56:31]Sock 9.Close socket [07:56:31]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:02]accept exits with 7 [08:03:02]New connection [08:03:02]New thread 3067002212 created [08:03:02]Thread 3066858852 joined [08:03:02]Waiting for new connection... [08:03:02] Sock 7.Parse request [08:03:02]Sock 7.Check first char [08:03:02]Sock 7.First char is OK [08:03:02]request: POST /json_proto HTTP/1.0 [08:03:02]Method: POST [08:03:02]URL: /json_proto [08:03:02]Method is POST - this is cgi request [08:03:02]url: /json_proto [08:03:02]query_string will be loaded in cgi processing [08:03:02]execute_cgi json_proto POST (null) [08:03:02]execute_cgi path=json_proto method=POST [08:03:02]POST find Content-Length [08:03:02]Host: 172.17.49.132:8080 [08:03:02]Content-Length: 701 [08:03:02]Content-Type: application/json [08:03:02] [08:03:02]POST finish read [08:03:02]Found Content-Length = 701 [08:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137098", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:02]execute_script... [08:03:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137098", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:02]POST & json_proto [08:03:02]process_json_proto [08:03:02]json parsed OK: [08:03:02]protocol is kg_v1.0 [08:03:02]action value=close_receipt [08:03:02]process_action close_receipt [08:03:02]cmd_close_receipt [08:03:02]MH_GetDate [08:03:02]Write to MH i2c: F0 00 00 48 A1 D8 [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: F0 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: F0 09 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: F0 09 00 48 A1 00 47 41 AB 66 E7 4B C0 64 D0 [08:03:02]GetLastDocTimeStamp 1722499004 [08:03:02]current date 1722499399 [08:03:02]FM_GetShiftState [08:03:02]SAM_PROTO_GetShiftState [08:03:02]wFMCommunicate request_size=4 [08:03:02]MH_SAM_APDU [08:03:02]CAPDU: 80 13 01 00 [08:03:02]Write to MH i2c: E2 08 00 49 A1 80 13 01 00 00 00 00 00 67 [08:03:02]Write i2c OK [08:03:02]MH_I2C_Read... [08:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:02]Read from MH i2c: E2 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 0E 00 [08:03:02]MH_I2C_Read... [08:03:02]Read from MH i2c: E2 0E 00 49 A1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 A0 [08:03:02]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:03:02]wFMCommunicate OK [08:03:02]SAM_PROTO_GetShiftState done [08:03:02]FM_GetShiftState done [08:03:02]opened in 1722472772 [08:03:02]opened+sec_in_day 1722559172 [08:03:02]quantity*price = 19000 [08:03:02]sum+1 = 19001 [08:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 21 01.08.2024 08:03 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69858 ФПД: 126599928259287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T080319&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69858&fm=126599928259287&tin=02508201610067®Number=0000000000092638&sum=19000 0 [08:03:03]StoreToDocumentArchive [08:03:03]shift 433 fd 69858 [08:03:03]save to /storage/0433/doc_00069858 [08:03:03]save last doc name /storage/0433/doc_00069858 to /storage/kkm_last_doc_name [08:03:03]save OK [08:03:03]Clear old archive folders... [08:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=302 [08:03:03]tlvbuf is 012CB690 [08:03:03]SAM_PROTO_ClearQueue [08:03:03]wFMCommunicate request_size=4 [08:03:03]MH_SAM_APDU [08:03:03]CAPDU: 80 09 00 00 [08:03:03]Write to MH i2c: E2 08 00 56 A1 80 09 00 00 00 00 00 00 69 [08:03:03]Write i2c OK [08:03:03]MH_I2C_Read... [08:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:03]Read from MH i2c: E2 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: E2 03 00 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: E2 03 00 56 A1 00 90 00 6B [08:03:03]RAPDU: 90 00 [08:03:03]wFMCommunicate OK [08:03:03]SAM_PROTO_ClearQueue done [08:03:03]KKMCreateOFDPacket [08:03:03]OFDProtocolAddRootSTLVToBuf [08:03:03]FM_MakeSignedData [08:03:03]FM_MakeSignedData [08:03:03]SAM_PROTO_SignData [08:03:03]wFMCommunicate request_size=4 [08:03:03]MH_SAM_APDU [08:03:03]CAPDU: 80 0D 01 02 [08:03:03]Write to MH i2c: E2 08 00 57 A1 80 0D 01 02 00 00 00 00 71 [08:03:03]Write i2c OK [08:03:03]MH_I2C_Read... [08:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:03]Read from MH i2c: E2 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: E2 03 00 [08:03:03]MH_I2C_Read... [08:03:03]Read from MH i2c: E2 03 00 57 A1 00 90 00 6C [08:03:03]RAPDU: 90 00 [08:03:03]wFMCommunicate OK [08:03:03]wFMCommunicate request_size=255 [08:03:03]MH_SAM_APDU [08:03:03]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 47 41 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 [08:03:03]Write to MH i2c: E2 02 01 58 A1 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 47 41 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 00 00 19 [08:03:03]Write i2c OK [08:03:03]MH_I2C_Read... [08:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:04]Read from MH i2c: E2 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 03 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 03 00 58 A1 00 90 00 6D [08:03:04]RAPDU: 90 00 [08:03:04]wFMCommunicate OK [08:03:04]wFMCommunicate request_size=61 [08:03:04]MH_SAM_APDU [08:03:04]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E2 10 01 00 35 04 06 00 73 24 57 C0 A2 D7 [08:03:04]Write to MH i2c: E2 40 00 59 A1 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E2 10 01 00 35 04 06 00 73 24 57 C0 A2 D7 00 00 CF [08:03:04]Write i2c OK [08:03:04]MH_I2C_Read... [08:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:04]Read from MH i2c: E2 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 03 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 03 00 59 A1 00 90 00 6E [08:03:04]RAPDU: 90 00 [08:03:04]wFMCommunicate OK [08:03:04]wFMCommunicate request_size=4 [08:03:04]MH_SAM_APDU [08:03:04]CAPDU: 80 0D 03 02 [08:03:04]Write to MH i2c: E2 08 00 5A A1 80 0D 03 02 00 00 00 00 76 [08:03:04]Write i2c OK [08:03:04]MH_I2C_Read... [08:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:04]Read from MH i2c: E2 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 0B 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 0B 00 5A A1 00 43 7B 0E 6B FA 35 A7 5E 90 00 E2 [08:03:04]RAPDU: 43 7B 0E 6B FA 35 A7 5E 90 00 [08:03:04]wFMCommunicate OK [08:03:04]SAM_PROTO_SignData done [08:03:04]FM_MakeSignedData done [08:03:04]CreateOFDProtocolMessage [08:03:04]wFMCommunicate request_size=4 [08:03:04]MH_SAM_APDU [08:03:04]CAPDU: 80 11 00 00 [08:03:04]Write to MH i2c: E2 08 00 5B A1 80 11 00 00 00 00 00 00 76 [08:03:04]Write i2c OK [08:03:04]MH_I2C_Read... [08:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:04]Read from MH i2c: E2 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 17 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 17 00 5B A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D2 [08:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:03:04]wFMCommunicate OK [08:03:04]CreateOFDProtocolMessage done [08:03:04]OFDSenderStorePacket 69858 [08:03:04]StoreOFDPacket docnum=69858 [08:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 42 01 00 00 70 3B 3A 01 A7 4C 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 47 41 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E2 10 01 00 35 04 06 00 73 24 57 C0 A2 D7 43 7B 0E 6B FA 35 A7 5E [08:03:04]CheckFolder [08:03:04]dirname=/storage/ofd_packets [08:03:04]CheckFolder done [08:03:04]ProducePacketName [08:03:04]name=ofd_packets/00069858 [08:03:04]NVStorageSaveData ofd_packets/00069858 [08:03:04]File name is /storage/ofd_packets/00069858 [08:03:04]Write 352 bytes [08:03:04]NVStorageSaveData done [08:03:04]OFDSenderStorePacket done [08:03:04]KKMCreateOFDPacket done [08:03:04]NVStorageSaveData kkm_last_timestamp [08:03:04]File name is /storage/kkm_last_timestamp [08:03:04]Write 4 bytes [08:03:04]NVStorageSaveData done [08:03:04]ExternCall_PrintAddStr [08:03:04]wPrintStart [08:03:04]Write to MH i2c: 01 00 00 5C A1 FD [08:03:04]Write i2c OK [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: 01 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: 01 07 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: 01 07 00 5C A1 00 00 00 00 00 FF 0F 12 [08:03:04]RasterBufferAndPrint [08:03:04]line Счет N : (3)137098 [08:03:04]line ИНН: 02508201610067 [08:03:04]line Контрольно-Кассовый Чек [08:03:04]line ПРОДАЖА [08:03:04]line Товар: 4700003010087 [08:03:04]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [08:03:04]line 2.000 * 95.00 [08:03:04]line = 190.00 [08:03:04]line НДС 12% НСП 1% [08:03:04]line > о реализуемом товаре [08:03:04]line ИТОГО: 190.00 [08:03:04]line НСП 1% : 1.68 [08:03:04]line НДС 12% : 20.18 [08:03:04]line Наличными: 190.00 [08:03:04]line Безнал.: 0.00 [08:03:04]line Место: АЗС № 125 "Партнер Нефть" [08:03:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:03:04]line СНО: Общий режим [08:03:04]line Чек 21 01.08.2024 08:03 [08:03:04]line Смена: 433 ФФД: 1.0 [08:03:04]line ЗНМ: 0300000049 [08:03:04]line РНМ: 0000000000092638 [08:03:04]line Версия ККМ: 001 [08:03:04]line ФМ: 0000000000874949 [08:03:04]line ФД: 69858 [08:03:04]line ФПД: 126599928259287 [08:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T080319&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69858&fm=126599928259287&tin=02508201610067®Number=0000000000092638&sum=19000 [08:03:04]line 0 [08:03:04]OFD Sender: Processing packet 69858 [packets to send 19, broken 18] [08:03:04]ProducePacketName [08:03:04]name=ofd_packets/00069858 [08:03:04]OFD Sender: To server: pG, [08:03:04]CommunicateWithHost lk.salyk.kg:30040 [08:03:04]ConnectInit lk.salyk.kg [08:03:04]written 0, free lines is 4095 [08:03:04]Connected sock=10 [08:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 42 01 00 00 70 3B 3A 01 A7 4C 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 47 41 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E2 10 01 00 35 04 06 00 73 24 57 C0 A2 D7 43 7B 0E 6B FA 35 A7 5E [08:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 22 21 47 00 07 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E2 10 01 00 F4 03 04 00 A9 E7 AA 66 B6 04 01 00 00 37 B1 22 15 49 21 42 6F [08:03:05]CommunicateWithHost err = 0 [08:03:05]CheckOFDResponse [08:03:05]1017 (14) - 77093643461234 [08:03:05]1041 (16) - 0000000000874949 [08:03:05]1040 (4) - 69858 [08:03:05]1012 (4) - 01.08.2024 01:40 [08:03:05]1206 (1) - 0 [08:03:05]OFD Sender: Remove packet 69858 [08:03:05]ProducePacketName [08:03:05]name=ofd_packets/00069858 [08:03:05]NVStorageDeleteData [08:03:05]Write to MH i2c: 01 00 00 85 A1 26 [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: 01 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: 01 07 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: 01 07 00 85 A1 00 00 00 00 00 23 0D 5D [08:03:05]RasterBufferAndPrint [08:03:05]line [08:03:05]line [08:03:05]line [08:03:05]line [08:03:05]line [08:03:05]written 0, free lines is 3372 [08:03:05]MH_Cut [08:03:05]Write to MH i2c: D1 01 00 8C A1 01 FF [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: D1 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: D1 01 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: D1 01 00 8C A1 00 FE [08:03:05]Write to MH i2c: 01 00 00 8D A1 2E [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]OFD Sender: No OFD packet to send [08:03:05]*** Cut start [08:03:05]*** Partial cut [08:03:05]*** CUTSNS_PIN = 1 [08:03:05]*** CUTSNS_PIN = 0 [08:03:06]*** Brake cut motor [08:03:06]Read from MH i2c: 01 [08:03:06]MH_I2C_Read... [08:03:06]*** Stop cut motor [08:03:06]*** Cut end [08:03:06]Read from MH i2c: 01 07 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: 01 07 00 8D A1 00 00 00 00 00 FF 0F 43 [08:03:06]process_action close_receipt done [08:03:06]requested_data is exist [08:03:06]produce_requested_data [08:03:06]requested_item fm.sn is exist - process it [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 11 00 00 [08:03:06]Write to MH i2c: E2 08 00 8E A1 80 11 00 00 00 00 00 00 A9 [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 17 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 17 00 8E A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 05 [08:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:03:06]wFMCommunicate OK [08:03:06]requested_item fd.num is exist - process it [08:03:06]SAM_PROTO_GetFieldsCounters [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 13 00 00 [08:03:06]Write to MH i2c: E2 08 00 8F A1 80 13 00 00 00 00 00 00 AC [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 62 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 62 00 8F A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E2 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E2 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:06]wFMCommunicate OK [08:03:06]SAM_PROTO_GetFieldsCounters done [08:03:06]requested_item shift.num is exist - process it [08:03:06]requested_item shift.opened is exist - process it [08:03:06]req_shift_opened [08:03:06]FM_GetShiftState [08:03:06]SAM_PROTO_GetShiftState [08:03:06]wFMCommunicate request_size=4 [08:03:06]MH_SAM_APDU [08:03:06]CAPDU: 80 13 01 00 [08:03:06]Write to MH i2c: E2 08 00 90 A1 80 13 01 00 00 00 00 00 AE [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:06]Read from MH i2c: E2 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 0E 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: E2 0E 00 90 A1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 E7 [08:03:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:03:06]wFMCommunicate OK [08:03:06]SAM_PROTO_GetShiftState done [08:03:06]FM_GetShiftState done [08:03:06]req_shift_opened done [08:03:06]requested_item shift.open_date is exist - process it [08:03:06]req_shift_open_date [08:03:06]req_shift_open_date done [08:03:06]produce_requested_data done [08:03:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69858,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:03:06]process_action_free close_receipt [08:03:06]json_value_free [08:03:06]json_value_free done [08:03:06]process_json_proto returns [08:03:06]Send response to host [08:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69858,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:03:06]free response buf [08:03:06]execute_script done [08:03:06]execute_script returns [08:03:06]free content buf [08:03:06]Sock 7.Close socket [08:03:06]Sock 7.Thread stoped [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [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:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:33]int [08:27:33]Write to MH i2c: 01 00 00 91 A1 32 [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 07 00 [08:27:33]MH_I2C_Read... [08:27:33]*** FLAG_PRN_PAP1 set [08:27:33]*** FLAG_PRN_PAP1 reset [08:27:33]Read from MH i2c: 01 07 00 91 A1 00 00 00 00 00 FF 0F 47 [08:27:33]state=0 [08:27:33]int [08:27:33]Write to MH i2c: 01 00 00 92 A1 33 [08:27:33]*** FLAG_PRN_PAP1 set [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 07 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 07 00 92 A1 00 01 00 00 00 FF 0F 49 [08:27:33]state=0 [08:27:33]No paper [08:27:33]int [08:27:33]Write to MH i2c: 01 00 00 93 A1 34 [08:27:33]*** FLAG_PRN_PAP2 set [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 07 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: 01 07 00 93 A1 00 03 00 00 00 FF 0F 4C [08:27:33]state=0 [08:27:33]No paper [08:27:33]Cover opened [08:27:36]OFD Sender: No OFD packet to send [08:27:38]Write to MH i2c: 01 00 00 94 A1 35 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 94 A1 00 03 00 00 00 FF 0F 4D [08:27:39]state=3 [08:27:39]No paper [08:27:39]Cover opened [08:27:41]OFD Sender: No OFD packet to send [08:27:44]Write to MH i2c: 01 00 00 95 A1 36 [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: 01 07 00 95 A1 00 03 00 00 00 FF 0F 4E [08:27:44]state=3 [08:27:44]No paper [08:27:44]Cover opened [08:27:46]OFD Sender: No OFD packet to send [08:27:49]Write to MH i2c: 01 00 00 96 A1 37 [08:27:49]Write i2c OK [08:27:49]MH_I2C_Read... [08:27:49]Read from MH i2c: 01 [08:27:49]MH_I2C_Read... [08:27:49]Read from MH i2c: 01 07 00 [08:27:49]MH_I2C_Read... [08:27:49]Read from MH i2c: 01 07 00 96 A1 00 03 00 00 00 FF 0F 4F [08:27:49]state=3 [08:27:49]No paper [08:27:49]Cover opened [08:27:51]int [08:27:51]Write to MH i2c: 01 00 00 97 A1 38 [08:27:51]*** FLAG_PRN_PAP1 reset [08:27:51]Write i2c OK [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: 01 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: 01 07 00 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: 01 07 00 97 A1 00 02 00 00 00 FF 0F 4F [08:27:51]state=3 [08:27:51]Cover opened [08:27:51]int [08:27:51]Write to MH i2c: 01 00 00 98 A1 39 [08:27:51]*** FLAG_PRN_PAP2 reset [08:27:51]Write i2c OK [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: 01 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: 01 07 00 [08:27:51]MH_I2C_Read... [08:27:51]Read from MH i2c: 01 07 00 98 A1 00 00 00 00 00 FF 0F 4E [08:27:51]state=3 [08:27:51]Cover closed [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:28]accept exits with 9 [08:32:28]New connection [08:32:28]New thread 3066858852 created [08:32:28]Thread 3067002212 joined [08:32:28]Waiting for new connection... [08:32:28] Sock 9.Parse request [08:32:28]Sock 9.Check first char [08:32:28]Sock 9.First char is OK [08:32:28]request: POST /json_proto HTTP/1.0 [08:32:28]Method: POST [08:32:28]URL: /json_proto [08:32:28]Method is POST - this is cgi request [08:32:28]url: /json_proto [08:32:28]query_string will be loaded in cgi processing [08:32:28]execute_cgi json_proto POST (null) [08:32:28]execute_cgi path=json_proto method=POST [08:32:28]POST find Content-Length [08:32:28]Host: 172.17.49.132:8080 [08:32:28]Content-Length: 1176 [08:32:28]Content-Type: application/json [08:32:28] [08:32:28]POST finish read [08:32:28]Found Content-Length = 1176 [08:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137099", "tax_sys" : 0, "items" : [ { "code": "4700003150844", "name": "\u0412\u043E\u0434\u043A\u0430 \u041C\u0430\u0430\u043D\u0430\u0439 40% 0,7 \u043B", "price" : 695.00, "quantity" : 1.000, "sum" : 695.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 799.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:28]execute_script... [08:32: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 : (3)137099", "tax_sys" : 0, "items" : [ { "code": "4700003150844", "name": "\u0412\u043E\u0434\u043A\u0430 \u041C\u0430\u0430\u043D\u0430\u0439 40% 0,7 \u043B", "price" : 695.00, "quantity" : 1.000, "sum" : 695.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 799.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:28]POST & json_proto [08:32:28]process_json_proto [08:32:28]json parsed OK: [08:32:28]protocol is kg_v1.0 [08:32:28]action value=close_receipt [08:32:28]process_action close_receipt [08:32:28]cmd_close_receipt [08:32:28]MH_GetDate [08:32:28]Write to MH i2c: F0 00 00 99 A1 29 [08:32:28]Write i2c OK [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: F0 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: F0 09 00 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: F0 09 00 99 A1 00 2D 48 AB 66 E7 4B C0 64 0E [08:32:28]GetLastDocTimeStamp 1722499399 [08:32:28]current date 1722501165 [08:32:28]FM_GetShiftState [08:32:28]SAM_PROTO_GetShiftState [08:32:28]wFMCommunicate request_size=4 [08:32:28]MH_SAM_APDU [08:32:28]CAPDU: 80 13 01 00 [08:32:28]Write to MH i2c: E2 08 00 9A A1 80 13 01 00 00 00 00 00 B8 [08:32:28]Write i2c OK [08:32:28]MH_I2C_Read... [08:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:28]Read from MH i2c: E2 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: E2 0E 00 [08:32:28]MH_I2C_Read... [08:32:28]Read from MH i2c: E2 0E 00 9A A1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F1 [08:32:28]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:32:28]wFMCommunicate OK [08:32:28]SAM_PROTO_GetShiftState done [08:32:28]FM_GetShiftState done [08:32:28]opened in 1722472772 [08:32:28]opened+sec_in_day 1722559172 [08:32:28]quantity*price = 69500 [08:32:28]sum+1 = 69501 [08:32:28]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 799.00 НСП 1% : 7.06 НДС 12% : 84.84 Наличными: 799.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 22 01.08.2024 08:32 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69859 ФПД: 80593291924219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083245&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69859&fm=80593291924219&tin=02508201610067®Number=0000000000092638&sum=79900 0 [08:32:29]StoreToDocumentArchive [08:32:29]shift 433 fd 69859 [08:32:29]save to /storage/0433/doc_00069859 [08:32:29]save last doc name /storage/0433/doc_00069859 to /storage/kkm_last_doc_name [08:32:29]save OK [08:32:29]Clear old archive folders... [08:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=489 [08:32:29]tlvbuf is 013FBCD0 [08:32:29]SAM_PROTO_ClearQueue [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 09 00 00 [08:32:29]Write to MH i2c: E2 08 00 A7 A1 80 09 00 00 00 00 00 00 BA [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:29]Read from MH i2c: E2 03 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 A7 A1 00 90 00 BC [08:32:29]RAPDU: 90 00 [08:32:29]wFMCommunicate OK [08:32:29]SAM_PROTO_ClearQueue done [08:32:29]KKMCreateOFDPacket [08:32:29]OFDProtocolAddRootSTLVToBuf [08:32:29]FM_MakeSignedData [08:32:29]FM_MakeSignedData [08:32:29]SAM_PROTO_SignData [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 0D 01 02 [08:32:29]Write to MH i2c: E2 08 00 A8 A1 80 0D 01 02 00 00 00 00 C2 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 A8 A1 00 90 00 BD [08:32:29]RAPDU: 90 00 [08:32:29]wFMCommunicate OK [08:32:29]wFMCommunicate request_size=255 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 0F 01 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 [08:32:29]Write to MH i2c: E2 02 01 A9 A1 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 0F 01 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 00 00 5D [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 A9 A1 00 90 00 BE [08:32:29]RAPDU: 90 00 [08:32:29]wFMCommunicate OK [08:32:29]wFMCommunicate request_size=248 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 0D 02 02 F3 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 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 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 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 16 00 00 00 F4 03 04 00 2D 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E3 10 01 00 35 04 06 00 49 4C 96 89 52 FB [08:32:29]Write to MH i2c: E2 FB 00 AA A1 80 0D 02 02 F3 00 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 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 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 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 16 00 00 00 F4 03 04 00 2D 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E3 10 01 00 35 04 06 00 49 4C 96 89 52 FB 00 00 20 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 03 00 AA A1 00 90 00 BF [08:32:29]RAPDU: 90 00 [08:32:29]wFMCommunicate OK [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 0D 03 02 [08:32:29]Write to MH i2c: E2 08 00 AB A1 80 0D 03 02 00 00 00 00 C7 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 0B 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 0B 00 AB A1 00 1B 0F 93 68 DB A8 49 66 90 00 1F [08:32:29]RAPDU: 1B 0F 93 68 DB A8 49 66 90 00 [08:32:29]wFMCommunicate OK [08:32:29]SAM_PROTO_SignData done [08:32:29]FM_MakeSignedData done [08:32:29]CreateOFDProtocolMessage [08:32:29]wFMCommunicate request_size=4 [08:32:29]MH_SAM_APDU [08:32:29]CAPDU: 80 11 00 00 [08:32:29]Write to MH i2c: E2 08 00 AC A1 80 11 00 00 00 00 00 00 C7 [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:29]Read from MH i2c: E2 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 17 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: E2 17 00 AC A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 23 [08:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:32:29]wFMCommunicate OK [08:32:29]CreateOFDProtocolMessage done [08:32:29]OFDSenderStorePacket 69859 [08:32:29]StoreOFDPacket docnum=69859 [08:32:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 FD 01 00 00 31 EE F5 01 95 24 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 0F 01 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 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 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 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 16 00 00 00 F4 03 04 00 2D 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E3 10 01 00 35 04 06 00 49 4C 96 89 52 FB 1B 0F 93 68 DB A8 49 66 [08:32:29]CheckFolder [08:32:29]dirname=/storage/ofd_packets [08:32:29]CheckFolder done [08:32:29]ProducePacketName [08:32:29]name=ofd_packets/00069859 [08:32:29]NVStorageSaveData ofd_packets/00069859 [08:32:29]File name is /storage/ofd_packets/00069859 [08:32:29]Write 539 bytes [08:32:29]NVStorageSaveData done [08:32:29]OFDSenderStorePacket done [08:32:29]KKMCreateOFDPacket done [08:32:29]NVStorageSaveData kkm_last_timestamp [08:32:29]File name is /storage/kkm_last_timestamp [08:32:29]Write 4 bytes [08:32:29]NVStorageSaveData done [08:32:29]ExternCall_PrintAddStr [08:32:29]wPrintStart [08:32:29]Write to MH i2c: 01 00 00 AD A1 4E [08:32:29]Write i2c OK [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: 01 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: 01 07 00 [08:32:29]MH_I2C_Read... [08:32:29]Read from MH i2c: 01 07 00 AD A1 00 00 00 00 00 FF 0F 63 [08:32:29]RasterBufferAndPrint [08:32:29]line Счет N : (3)137099 [08:32:29]line ИНН: 02508201610067 [08:32:29]line Контрольно-Кассовый Чек [08:32:29]line ПРОДАЖА [08:32:29]line Товар: 4700003150844 [08:32:29]line Водка Маанай 40% 0,7 л [08:32:29]line 1.000 * 695.00 [08:32:29]line = 695.00 [08:32:29]line НДС 12% НСП 1% [08:32:29]line > о реализуемом товаре [08:32:29]line Товар: 2000031750019 [08:32:29]line Пакет Партнер Нефть [08:32:29]line 1.000 * 4.00 [08:32:29]line = 4.00 [08:32:29]line НДС 12% НСП 1% [08:32:29]line > о реализуемом товаре [08:32:29]line Товар: 5449000005489 [08:32:29]line Вода Бонаква 1л б/г [08:32:29]line 2.000 * 50.00 [08:32:29]line = 100.00 [08:32:29]line НДС 12% НСП 1% [08:32:30]line > о реализуемом товаре [08:32:30]line ИТОГО: 799.00 [08:32:30]line НСП 1% : 7.06 [08:32:30]line НДС 12% : 84.84 [08:32:30]line Наличными: 799.00 [08:32:30]line Безнал.: 0.00 [08:32:30]line Место: АЗС № 125 "Партнер Нефть" [08:32:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:32:30]line СНО: Общий режим [08:32:30]line Чек 22 01.08.2024 08:32 [08:32:30]line Смена: 433 ФФД: 1.0 [08:32:30]line ЗНМ: 0300000049 [08:32:30]line РНМ: 0000000000092638 [08:32:30]line Версия ККМ: 001 [08:32:30]line ФМ: 0000000000874949 [08:32:30]line ФД: 69859 [08:32:30]line ФПД: 80593291924219 [08:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083245&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69859&fm=80593291924219&tin=02508201610067®Number=0000000000092638&sum=79900 [08:32:30]line 0 [08:32:30]OFD Sender: Processing packet 69859 [packets to send 19, broken 18] [08:32:30]ProducePacketName [08:32:30]name=ofd_packets/00069859 [08:32:30]OFD Sender: To server: pG, [08:32:30]CommunicateWithHost lk.salyk.kg:30040 [08:32:30]ConnectInit lk.salyk.kg [08:32:30]written 0, free lines is 4095 [08:32:30]Connected sock=10 [08:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 FD 01 00 00 31 EE F5 01 95 24 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 34 34 06 04 22 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9C D0 B0 D0 B0 D0 BD D0 B0 D0 B9 20 34 30 25 20 30 2C 37 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 0F 01 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 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 C2 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 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 16 00 00 00 F4 03 04 00 2D 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E3 10 01 00 35 04 06 00 49 4C 96 89 52 FB 1B 0F 93 68 DB A8 49 66 [08:32:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 0F AF 47 00 C0 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E3 10 01 00 F4 03 04 00 8F EE AA 66 B6 04 01 00 00 43 82 85 94 A5 6B B3 F8 [08:32:30]CommunicateWithHost err = 0 [08:32:30]CheckOFDResponse [08:32:30]1017 (14) - 77093643461234 [08:32:30]1041 (16) - 0000000000874949 [08:32:30]1040 (4) - 69859 [08:32:30]1012 (4) - 01.08.2024 02:10 [08:32:30]1206 (1) - 0 [08:32:30]OFD Sender: Remove packet 69859 [08:32:30]ProducePacketName [08:32:30]name=ofd_packets/00069859 [08:32:30]NVStorageDeleteData [08:32:30]Write to MH i2c: 01 00 00 E1 A1 82 [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: 01 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: 01 07 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: 01 07 00 E1 A1 00 00 00 00 00 8E 0C 23 [08:32:30]RasterBufferAndPrint [08:32:30]line [08:32:30]line [08:32:30]line [08:32:30]line [08:32:30]line [08:32:30]written 0, free lines is 3223 [08:32:30]MH_Cut [08:32:30]Write to MH i2c: D1 01 00 E8 A1 01 5B [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: D1 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: D1 01 00 [08:32:30]MH_I2C_Read... [08:32:30]Read from MH i2c: D1 01 00 E8 A1 00 5A [08:32:30]Write to MH i2c: 01 00 00 E9 A1 8A [08:32:30]Write i2c OK [08:32:30]MH_I2C_Read... [08:32:31]OFD Sender: No OFD packet to send [08:32:31]*** Cut start [08:32:31]*** Partial cut [08:32:31]*** CUTSNS_PIN = 1 [08:32:31]*** CUTSNS_PIN = 0 [08:32:31]*** Brake cut motor [08:32:32]Read from MH i2c: 01 [08:32:32]MH_I2C_Read... [08:32:32]*** Stop cut motor [08:32:32]*** Cut end [08:32:32]Read from MH i2c: 01 07 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: 01 07 00 E9 A1 00 00 00 00 00 FF 0F 9F [08:32:32]process_action close_receipt done [08:32:32]requested_data is exist [08:32:32]produce_requested_data [08:32:32]requested_item fm.sn is exist - process it [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 11 00 00 [08:32:32]Write to MH i2c: E2 08 00 EA A1 80 11 00 00 00 00 00 00 05 [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 17 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 17 00 EA A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 61 [08:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:32:32]wFMCommunicate OK [08:32:32]requested_item fd.num is exist - process it [08:32:32]SAM_PROTO_GetFieldsCounters [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 13 00 00 [08:32:32]Write to MH i2c: E2 08 00 EB A1 80 13 00 00 00 00 00 00 08 [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 62 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 62 00 EB A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E3 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E3 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:32]wFMCommunicate OK [08:32:32]SAM_PROTO_GetFieldsCounters done [08:32:32]requested_item shift.num is exist - process it [08:32:32]requested_item shift.opened is exist - process it [08:32:32]req_shift_opened [08:32:32]FM_GetShiftState [08:32:32]SAM_PROTO_GetShiftState [08:32:32]wFMCommunicate request_size=4 [08:32:32]MH_SAM_APDU [08:32:32]CAPDU: 80 13 01 00 [08:32:32]Write to MH i2c: E2 08 00 EC A1 80 13 01 00 00 00 00 00 0A [08:32:32]Write i2c OK [08:32:32]MH_I2C_Read... [08:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:32]Read from MH i2c: E2 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 0E 00 [08:32:32]MH_I2C_Read... [08:32:32]Read from MH i2c: E2 0E 00 EC A1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 43 [08:32:32]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:32:32]wFMCommunicate OK [08:32:32]SAM_PROTO_GetShiftState done [08:32:32]FM_GetShiftState done [08:32:32]req_shift_opened done [08:32:32]requested_item shift.open_date is exist - process it [08:32:32]req_shift_open_date [08:32:32]req_shift_open_date done [08:32:32]produce_requested_data done [08:32:32]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69859,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:32:32]process_action_free close_receipt [08:32:32]json_value_free [08:32:32]json_value_free done [08:32:32]process_json_proto returns [08:32:32]Send response to host [08:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69859,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:32:32]free response buf [08:32:32]execute_script done [08:32:32]execute_script returns [08:32:32]free content buf [08:32:32]Sock 9.Close socket [08:32:32]Sock 9.Thread stoped [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:49]accept exits with 7 [08:32:49]New connection [08:32:49]New thread 3067002212 created [08:32:49]Thread 3066858852 joined [08:32:49]Waiting for new connection... [08:32:49] Sock 7.Parse request [08:32:49]Sock 7.Check first char [08:32:49]Sock 7.First char is OK [08:32:49]request: POST /json_proto HTTP/1.0 [08:32:49]Method: POST [08:32:49]URL: /json_proto [08:32:49]Method is POST - this is cgi request [08:32:49]url: /json_proto [08:32:49]query_string will be loaded in cgi processing [08:32:49]execute_cgi json_proto POST (null) [08:32:49]execute_cgi path=json_proto method=POST [08:32:49]POST find Content-Length [08:32:49]Host: 172.17.49.132:8080 [08:32:49]Content-Length: 621 [08:32:49]Content-Type: application/json [08:32:49] [08:32:49]POST finish read [08:32:49]Found Content-Length = 621 [08:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137100", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:49]execute_script... [08:32: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 : (3)137100", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:49]POST & json_proto [08:32:49]process_json_proto [08:32:49]json parsed OK: [08:32:49]protocol is kg_v1.0 [08:32:49]action value=close_receipt [08:32:49]process_action close_receipt [08:32:49]cmd_close_receipt [08:32:49]MH_GetDate [08:32:49]Write to MH i2c: F0 00 00 ED A1 7D [08:32:49]Write i2c OK [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: F0 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: F0 09 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: F0 09 00 ED A1 00 42 48 AB 66 E7 4B C0 64 77 [08:32:49]GetLastDocTimeStamp 1722501165 [08:32:49]current date 1722501186 [08:32:49]FM_GetShiftState [08:32:49]SAM_PROTO_GetShiftState [08:32:49]wFMCommunicate request_size=4 [08:32:49]MH_SAM_APDU [08:32:49]CAPDU: 80 13 01 00 [08:32:49]Write to MH i2c: E2 08 00 EE A1 80 13 01 00 00 00 00 00 0C [08:32:49]Write i2c OK [08:32:49]MH_I2C_Read... [08:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:49]Read from MH i2c: E2 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 0E 00 [08:32:49]MH_I2C_Read... [08:32:49]Read from MH i2c: E2 0E 00 EE A1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 45 [08:32:49]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:32:49]wFMCommunicate OK [08:32:49]SAM_PROTO_GetShiftState done [08:32:49]FM_GetShiftState done [08:32:49]opened in 1722472772 [08:32:49]opened+sec_in_day 1722559172 [08:32:49]quantity*price = 14000 [08:32:49]sum+1 = 14001 [08:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 23 01.08.2024 08:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69860 ФПД: 109951379694384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083306&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69860&fm=109951379694384&tin=02508201610067®Number=0000000000092638&sum=14000 0 [08:32:50]StoreToDocumentArchive [08:32:50]shift 433 fd 69860 [08:32:50]save to /storage/0433/doc_00069860 [08:32:50]save last doc name /storage/0433/doc_00069860 to /storage/kkm_last_doc_name [08:32:50]save OK [08:32:50]Clear old archive folders... [08:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:32:50]tlvbuf is 0125DAC0 [08:32:50]SAM_PROTO_ClearQueue [08:32:50]wFMCommunicate request_size=4 [08:32:50]MH_SAM_APDU [08:32:50]CAPDU: 80 09 00 00 [08:32:50]Write to MH i2c: E2 08 00 FB A1 80 09 00 00 00 00 00 00 0E [08:32:50]Write i2c OK [08:32:50]MH_I2C_Read... [08:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:50]Read from MH i2c: E2 [08:32:50]MH_I2C_Read... [08:32:50]Read from MH i2c: E2 03 00 [08:32:50]MH_I2C_Read... [08:32:50]Read from MH i2c: E2 03 00 FB A1 00 90 00 10 [08:32:50]RAPDU: 90 00 [08:32:50]wFMCommunicate OK [08:32:50]SAM_PROTO_ClearQueue done [08:32:50]KKMCreateOFDPacket [08:32:50]OFDProtocolAddRootSTLVToBuf [08:32:50]FM_MakeSignedData [08:32:50]FM_MakeSignedData [08:32:50]SAM_PROTO_SignData [08:32:50]wFMCommunicate request_size=4 [08:32:50]MH_SAM_APDU [08:32:50]CAPDU: 80 0D 01 02 [08:32:50]Write to MH i2c: E2 08 00 FC A1 80 0D 01 02 00 00 00 00 16 [08:32:50]Write i2c OK [08:32:50]MH_I2C_Read... [08:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:50]Read from MH i2c: E2 [08:32:50]MH_I2C_Read... [08:32:50]Read from MH i2c: E2 03 00 [08:32:50]MH_I2C_Read... [08:32:50]Read from MH i2c: E2 03 00 FC A1 00 90 00 11 [08:32:50]RAPDU: 90 00 [08:32:50]wFMCommunicate OK [08:32:50]wFMCommunicate request_size=255 [08:32:50]MH_SAM_APDU [08:32:50]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [08:32:50]Write to MH i2c: E2 02 01 FD A1 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 72 [08:32:50]Write i2c OK [08:32:50]MH_I2C_Read... [08:32:51]OFD Sender: No OFD packet to send [08:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:51]Read from MH i2c: E2 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 03 00 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 03 00 FD A1 00 90 00 12 [08:32:51]RAPDU: 90 00 [08:32:51]wFMCommunicate OK [08:32:51]wFMCommunicate request_size=32 [08:32:51]MH_SAM_APDU [08:32:51]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 E4 10 01 00 35 04 06 00 64 00 0C ED E3 30 [08:32:51]Write to MH i2c: E2 23 00 FE A1 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 E4 10 01 00 35 04 06 00 64 00 0C ED E3 30 00 00 E4 [08:32:51]Write i2c OK [08:32:51]MH_I2C_Read... [08:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:51]Read from MH i2c: E2 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 03 00 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 03 00 FE A1 00 90 00 13 [08:32:51]RAPDU: 90 00 [08:32:51]wFMCommunicate OK [08:32:51]wFMCommunicate request_size=4 [08:32:51]MH_SAM_APDU [08:32:51]CAPDU: 80 0D 03 02 [08:32:51]Write to MH i2c: E2 08 00 FF A1 80 0D 03 02 00 00 00 00 1B [08:32:51]Write i2c OK [08:32:51]MH_I2C_Read... [08:32:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:51]Read from MH i2c: E2 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 0B 00 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 0B 00 FF A1 00 6F 2D 7E DC 16 51 C0 45 90 00 7E [08:32:51]RAPDU: 6F 2D 7E DC 16 51 C0 45 90 00 [08:32:51]wFMCommunicate OK [08:32:51]SAM_PROTO_SignData done [08:32:51]FM_MakeSignedData done [08:32:51]CreateOFDProtocolMessage [08:32:51]wFMCommunicate request_size=4 [08:32:51]MH_SAM_APDU [08:32:51]CAPDU: 80 11 00 00 [08:32:51]Write to MH i2c: E2 08 00 00 A2 80 11 00 00 00 00 00 00 1C [08:32:51]Write i2c OK [08:32:51]MH_I2C_Read... [08:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:51]Read from MH i2c: E2 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 17 00 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: E2 17 00 00 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 78 [08:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:32:51]wFMCommunicate OK [08:32:51]CreateOFDProtocolMessage done [08:32:51]OFDSenderStorePacket 69860 [08:32:51]StoreOFDPacket docnum=69860 [08:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 CB 09 1D 01 8A 5A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E4 10 01 00 35 04 06 00 64 00 0C ED E3 30 6F 2D 7E DC 16 51 C0 45 [08:32:51]CheckFolder [08:32:51]dirname=/storage/ofd_packets [08:32:51]CheckFolder done [08:32:51]ProducePacketName [08:32:51]name=ofd_packets/00069860 [08:32:51]NVStorageSaveData ofd_packets/00069860 [08:32:51]File name is /storage/ofd_packets/00069860 [08:32:51]Write 323 bytes [08:32:51]NVStorageSaveData done [08:32:51]OFDSenderStorePacket done [08:32:51]KKMCreateOFDPacket done [08:32:51]NVStorageSaveData kkm_last_timestamp [08:32:51]File name is /storage/kkm_last_timestamp [08:32:51]Write 4 bytes [08:32:51]NVStorageSaveData done [08:32:51]ExternCall_PrintAddStr [08:32:51]wPrintStart [08:32:51]Write to MH i2c: 01 00 00 01 A2 A3 [08:32:51]Write i2c OK [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: 01 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: 01 07 00 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: 01 07 00 01 A2 00 00 00 00 00 FF 0F B8 [08:32:51]RasterBufferAndPrint [08:32:51]line Счет N : (3)137100 [08:32:51]line ИНН: 02508201610067 [08:32:51]line Контрольно-Кассовый Чек [08:32:51]line ПРОДАЖА [08:32:51]line Товар: 48743570 [08:32:51]line Сигареты Winston XStyle Blue [08:32:51]line 1.000 * 140.00 [08:32:51]line = 140.00 [08:32:51]line НДС 12% НСП 1% [08:32:51]line > о реализуемом товаре [08:32:51]line ИТОГО: 140.00 [08:32:51]line НСП 1% : 1.24 [08:32:51]line НДС 12% : 14.87 [08:32:51]line Наличными: 140.00 [08:32:51]line Безнал.: 0.00 [08:32:51]line Место: АЗС № 125 "Партнер Нефть" [08:32:51]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:32:51]line СНО: Общий режим [08:32:51]line Чек 23 01.08.2024 08:33 [08:32:51]line Смена: 433 ФФД: 1.0 [08:32:51]line ЗНМ: 0300000049 [08:32:51]line РНМ: 0000000000092638 [08:32:51]line Версия ККМ: 001 [08:32:51]line ФМ: 0000000000874949 [08:32:51]line ФД: 69860 [08:32:51]line ФПД: 109951379694384 [08:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083306&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69860&fm=109951379694384&tin=02508201610067®Number=0000000000092638&sum=14000 [08:32:51]OFD Sender: Processing packet 69860 [packets to send 19, broken 18] [08:32:51]ProducePacketName [08:32:51]name=ofd_packets/00069860 [08:32:51]OFD Sender: To server: pG, [08:32:51]CommunicateWithHost lk.salyk.kg:30040 [08:32:51]ConnectInit lk.salyk.kg [08:32:51]line 0 [08:32:51]written 0, free lines is 4095 [08:32:51]Connected sock=10 [08:32:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 CB 09 1D 01 8A 5A 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 42 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E4 10 01 00 35 04 06 00 64 00 0C ED E3 30 6F 2D 7E DC 16 51 C0 45 [08:32:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 31 D5 47 00 A2 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E4 10 01 00 F4 03 04 00 A4 EE AA 66 B6 04 01 00 00 1F 5B 9E 35 40 7A 60 42 [08:32:52]CommunicateWithHost err = 0 [08:32:52]CheckOFDResponse [08:32:52]1017 (14) - 77093643461234 [08:32:52]1041 (16) - 0000000000874949 [08:32:52]1040 (4) - 69860 [08:32:52]1012 (4) - 01.08.2024 02:10 [08:32:52]1206 (1) - 0 [08:32:52]OFD Sender: Remove packet 69860 [08:32:52]ProducePacketName [08:32:52]name=ofd_packets/00069860 [08:32:52]NVStorageDeleteData [08:32:52]Write to MH i2c: 01 00 00 29 A2 CB [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: 01 07 00 29 A2 00 00 00 00 00 1F 0D FE [08:32:52]RasterBufferAndPrint [08:32:52]line [08:32:52]line [08:32:52]line [08:32:52]line [08:32:52]line [08:32:52]written 0, free lines is 3368 [08:32:52]MH_Cut [08:32:52]Write to MH i2c: D1 01 00 30 A2 01 A4 [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: D1 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: D1 01 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: D1 01 00 30 A2 00 A3 [08:32:52]Write to MH i2c: 01 00 00 31 A2 D3 [08:32:52]Write i2c OK [08:32:52]MH_I2C_Read... [08:32:52]OFD Sender: No OFD packet to send [08:32:52]*** Cut start [08:32:52]*** Partial cut [08:32:52]*** CUTSNS_PIN = 1 [08:32:52]*** CUTSNS_PIN = 0 [08:32:53]*** Brake cut motor [08:32:53]Read from MH i2c: 01 [08:32:53]MH_I2C_Read... [08:32:53]*** Stop cut motor [08:32:53]*** Cut end [08:32:53]Read from MH i2c: 01 07 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 07 00 31 A2 00 00 00 00 00 FF 0F E8 [08:32:53]process_action close_receipt done [08:32:53]requested_data is exist [08:32:53]produce_requested_data [08:32:53]requested_item fm.sn is exist - process it [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 11 00 00 [08:32:53]Write to MH i2c: E2 08 00 32 A2 80 11 00 00 00 00 00 00 4E [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 17 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 17 00 32 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [08:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:32:53]wFMCommunicate OK [08:32:53]requested_item fd.num is exist - process it [08:32:53]SAM_PROTO_GetFieldsCounters [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 13 00 00 [08:32:53]Write to MH i2c: E2 08 00 33 A2 80 13 00 00 00 00 00 00 51 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 62 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 62 00 33 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E4 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E4 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:53]wFMCommunicate OK [08:32:53]SAM_PROTO_GetFieldsCounters done [08:32:53]requested_item shift.num is exist - process it [08:32:53]requested_item shift.opened is exist - process it [08:32:53]req_shift_opened [08:32:53]FM_GetShiftState [08:32:53]SAM_PROTO_GetShiftState [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 13 01 00 [08:32:53]Write to MH i2c: E2 08 00 34 A2 80 13 01 00 00 00 00 00 53 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 0E 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 0E 00 34 A2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8C [08:32:53]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:32:53]wFMCommunicate OK [08:32:53]SAM_PROTO_GetShiftState done [08:32:53]FM_GetShiftState done [08:32:53]req_shift_opened done [08:32:53]requested_item shift.open_date is exist - process it [08:32:53]req_shift_open_date [08:32:53]req_shift_open_date done [08:32:53]produce_requested_data done [08:32:53]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69860,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:32:53]process_action_free close_receipt [08:32:53]json_value_free [08:32:53]json_value_free done [08:32:53]process_json_proto returns [08:32:53]Send response to host [08:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69860,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:32:53]free response buf [08:32:53]execute_script done [08:32:53]execute_script returns [08:32:53]free content buf [08:32:53]Sock 7.Close socket [08:32:53]Sock 7.Thread stoped [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:13]accept exits with 9 [08:33:13]New connection [08:33:13]New thread 3066858852 created [08:33:13]Thread 3067002212 joined [08:33:13]Waiting for new connection... [08:33:13] Sock 9.Parse request [08:33:13]Sock 9.Check first char [08:33:13]Sock 9.First char is OK [08:33:13]request: POST /json_proto HTTP/1.0 [08:33:13]Method: POST [08:33:13]URL: /json_proto [08:33:13]Method is POST - this is cgi request [08:33:13]url: /json_proto [08:33:13]query_string will be loaded in cgi processing [08:33:13]execute_cgi json_proto POST (null) [08:33:13]execute_cgi path=json_proto method=POST [08:33:13]POST find Content-Length [08:33:13]Host: 172.17.49.132:8080 [08:33:13]Content-Length: 654 [08:33:13]Content-Type: application/json [08:33:13] [08:33:13]POST finish read [08:33:13]Found Content-Length = 654 [08:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137101", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:13]execute_script... [08:33: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 : (3)137101", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:13]POST & json_proto [08:33:13]process_json_proto [08:33:13]json parsed OK: [08:33:13]protocol is kg_v1.0 [08:33:13]action value=close_receipt [08:33:13]process_action close_receipt [08:33:13]cmd_close_receipt [08:33:13]MH_GetDate [08:33:13]Write to MH i2c: F0 00 00 35 A2 C6 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: F0 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: F0 09 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: F0 09 00 35 A2 00 5A 48 AB 66 E7 4B C0 64 D8 [08:33:13]GetLastDocTimeStamp 1722501186 [08:33:13]current date 1722501210 [08:33:13]FM_GetShiftState [08:33:13]SAM_PROTO_GetShiftState [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 13 01 00 [08:33:13]Write to MH i2c: E2 08 00 36 A2 80 13 01 00 00 00 00 00 55 [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0E 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0E 00 36 A2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8E [08:33:13]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:33:13]wFMCommunicate OK [08:33:13]SAM_PROTO_GetShiftState done [08:33:13]FM_GetShiftState done [08:33:13]opened in 1722472772 [08:33:13]opened+sec_in_day 1722559172 [08:33:13]quantity*price = 4500 [08:33:13]sum+1 = 4501 [08:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 24 01.08.2024 08:33 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69861 ФПД: 10814732576126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083330&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69861&fm=10814732576126&tin=02508201610067®Number=0000000000092638&sum=4500 0 [08:33:14]StoreToDocumentArchive [08:33:14]shift 433 fd 69861 [08:33:14]save to /storage/0433/doc_00069861 [08:33:14]save last doc name /storage/0433/doc_00069861 to /storage/kkm_last_doc_name [08:33:14]save OK [08:33:14]Clear old archive folders... [08:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=277 [08:33:14]tlvbuf is 014A06B0 [08:33:14]SAM_PROTO_ClearQueue [08:33:14]wFMCommunicate request_size=4 [08:33:14]MH_SAM_APDU [08:33:14]CAPDU: 80 09 00 00 [08:33:14]Write to MH i2c: E2 08 00 43 A2 80 09 00 00 00 00 00 00 57 [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:14]Read from MH i2c: E2 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 43 A2 00 90 00 59 [08:33:14]RAPDU: 90 00 [08:33:14]wFMCommunicate OK [08:33:14]SAM_PROTO_ClearQueue done [08:33:14]KKMCreateOFDPacket [08:33:14]OFDProtocolAddRootSTLVToBuf [08:33:14]FM_MakeSignedData [08:33:14]FM_MakeSignedData [08:33:14]SAM_PROTO_SignData [08:33:14]wFMCommunicate request_size=4 [08:33:14]MH_SAM_APDU [08:33:14]CAPDU: 80 0D 01 02 [08:33:14]Write to MH i2c: E2 08 00 44 A2 80 0D 01 02 00 00 00 00 5F [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:14]Read from MH i2c: E2 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 44 A2 00 90 00 5A [08:33:14]RAPDU: 90 00 [08:33:14]wFMCommunicate OK [08:33:14]wFMCommunicate request_size=255 [08:33:14]MH_SAM_APDU [08:33:14]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5A 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 [08:33:14]Write to MH i2c: E2 02 01 45 A2 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5A 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 00 00 73 [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 45 A2 00 90 00 5B [08:33:15]RAPDU: 90 00 [08:33:15]wFMCommunicate OK [08:33:15]wFMCommunicate request_size=36 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E5 10 01 00 35 04 06 00 09 D6 00 4B 25 7E [08:33:15]Write to MH i2c: E2 27 00 46 A2 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E5 10 01 00 35 04 06 00 09 D6 00 4B 25 7E 00 00 53 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 46 A2 00 90 00 5C [08:33:15]RAPDU: 90 00 [08:33:15]wFMCommunicate OK [08:33:15]wFMCommunicate request_size=4 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 0D 03 02 [08:33:15]Write to MH i2c: E2 08 00 47 A2 80 0D 03 02 00 00 00 00 64 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 0B 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 0B 00 47 A2 00 0B 02 7F 03 F5 91 D0 E4 90 00 2E [08:33:15]RAPDU: 0B 02 7F 03 F5 91 D0 E4 90 00 [08:33:15]wFMCommunicate OK [08:33:15]SAM_PROTO_SignData done [08:33:15]FM_MakeSignedData done [08:33:15]CreateOFDProtocolMessage [08:33:15]wFMCommunicate request_size=4 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 11 00 00 [08:33:15]Write to MH i2c: E2 08 00 48 A2 80 11 00 00 00 00 00 00 64 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 17 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 17 00 48 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C0 [08:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:33:15]wFMCommunicate OK [08:33:15]CreateOFDProtocolMessage done [08:33:15]OFDSenderStorePacket 69861 [08:33:15]StoreOFDPacket docnum=69861 [08:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 29 01 00 00 B2 7A 21 01 88 44 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5A 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E5 10 01 00 35 04 06 00 09 D6 00 4B 25 7E 0B 02 7F 03 F5 91 D0 E4 [08:33:15]CheckFolder [08:33:15]dirname=/storage/ofd_packets [08:33:15]CheckFolder done [08:33:15]ProducePacketName [08:33:15]name=ofd_packets/00069861 [08:33:15]NVStorageSaveData ofd_packets/00069861 [08:33:15]File name is /storage/ofd_packets/00069861 [08:33:15]Write 327 bytes [08:33:15]NVStorageSaveData done [08:33:15]OFDSenderStorePacket done [08:33:15]KKMCreateOFDPacket done [08:33:15]NVStorageSaveData kkm_last_timestamp [08:33:15]File name is /storage/kkm_last_timestamp [08:33:15]Write 4 bytes [08:33:15]NVStorageSaveData done [08:33:15]ExternCall_PrintAddStr [08:33:15]wPrintStart [08:33:15]Write to MH i2c: 01 00 00 49 A2 EB [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: 01 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: 01 07 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: 01 07 00 49 A2 00 00 00 00 00 FF 0F 00 [08:33:15]RasterBufferAndPrint [08:33:15]line Счет N : (3)137101 [08:33:15]line ИНН: 02508201610067 [08:33:15]line Контрольно-Кассовый Чек [08:33:15]line ПРОДАЖА [08:33:15]line Товар: 42203100 [08:33:15]line Жев Orbit банан-клубника [08:33:15]line 1.000 * 45.00 [08:33:15]line = 45.00 [08:33:15]line НДС 12% НСП 1% [08:33:15]line > о реализуемом товаре [08:33:15]line ИТОГО: 45.00 [08:33:15]line НСП 1% : 0.40 [08:33:15]line НДС 12% : 4.78 [08:33:15]line Наличными: 45.00 [08:33:15]line Безнал.: 0.00 [08:33:15]line Место: АЗС № 125 "Партнер Нефть" [08:33:15]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:33:15]line СНО: Общий режим [08:33:15]line Чек 24 01.08.2024 08:33 [08:33:15]line Смена: 433 ФФД: 1.0 [08:33:15]line ЗНМ: 0300000049 [08:33:15]line РНМ: 0000000000092638 [08:33:15]line Версия ККМ: 001 [08:33:15]line ФМ: 0000000000874949 [08:33:15]line ФД: 69861 [08:33:15]line ФПД: 10814732576126 [08:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083330&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69861&fm=10814732576126&tin=02508201610067®Number=0000000000092638&sum=4500 [08:33:15]OFD Sender: Processing packet 69861 [packets to send 19, broken 18] [08:33:15]ProducePacketName [08:33:15]name=ofd_packets/00069861 [08:33:15]OFD Sender: To server: pG, [08:33:15]CommunicateWithHost lk.salyk.kg:30040 [08:33:15]ConnectInit lk.salyk.kg [08:33:15]line 0 [08:33:15]written 0, free lines is 4095 [08:33:15]Connected sock=10 [08:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 29 01 00 00 B2 7A 21 01 88 44 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5A 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E5 10 01 00 35 04 06 00 09 D6 00 4B 25 7E 0B 02 7F 03 F5 91 D0 E4 [08:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 20 A2 47 00 52 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E5 10 01 00 F4 03 04 00 BC EE AA 66 B6 04 01 00 00 D6 52 90 08 3B BC 78 70 [08:33:16]CommunicateWithHost err = 0 [08:33:16]CheckOFDResponse [08:33:16]1017 (14) - 77093643461234 [08:33:16]1041 (16) - 0000000000874949 [08:33:16]1040 (4) - 69861 [08:33:16]1012 (4) - 01.08.2024 02:11 [08:33:16]1206 (1) - 0 [08:33:16]OFD Sender: Remove packet 69861 [08:33:16]ProducePacketName [08:33:16]name=ofd_packets/00069861 [08:33:16]NVStorageDeleteData [08:33:16]Write to MH i2c: 01 00 00 71 A2 13 [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 07 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 07 00 71 A2 00 00 00 00 00 26 0D 4D [08:33:16]RasterBufferAndPrint [08:33:16]line [08:33:16]line [08:33:16]line [08:33:16]line [08:33:16]line [08:33:16]written 0, free lines is 3372 [08:33:16]MH_Cut [08:33:16]Write to MH i2c: D1 01 00 78 A2 01 EC [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: D1 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: D1 01 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: D1 01 00 78 A2 00 EB [08:33:16]Write to MH i2c: 01 00 00 79 A2 1B [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]OFD Sender: No OFD packet to send [08:33:16]*** Cut start [08:33:16]*** Partial cut [08:33:16]*** CUTSNS_PIN = 1 [08:33:16]*** CUTSNS_PIN = 0 [08:33:17]*** Brake cut motor [08:33:17]Read from MH i2c: 01 [08:33:17]MH_I2C_Read... [08:33:17]*** Stop cut motor [08:33:17]*** Cut end [08:33:17]Read from MH i2c: 01 07 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: 01 07 00 79 A2 00 00 00 00 00 FF 0F 30 [08:33:17]process_action close_receipt done [08:33:17]requested_data is exist [08:33:17]produce_requested_data [08:33:17]requested_item fm.sn is exist - process it [08:33:17]wFMCommunicate request_size=4 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 11 00 00 [08:33:17]Write to MH i2c: E2 08 00 7A A2 80 11 00 00 00 00 00 00 96 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 17 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 17 00 7A A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F2 [08:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:33:17]wFMCommunicate OK [08:33:17]requested_item fd.num is exist - process it [08:33:17]SAM_PROTO_GetFieldsCounters [08:33:17]wFMCommunicate request_size=4 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 13 00 00 [08:33:17]Write to MH i2c: E2 08 00 7B A2 80 13 00 00 00 00 00 00 99 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 62 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 62 00 7B A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E5 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E5 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:17]wFMCommunicate OK [08:33:17]SAM_PROTO_GetFieldsCounters done [08:33:17]requested_item shift.num is exist - process it [08:33:17]requested_item shift.opened is exist - process it [08:33:17]req_shift_opened [08:33:17]FM_GetShiftState [08:33:17]SAM_PROTO_GetShiftState [08:33:17]wFMCommunicate request_size=4 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 13 01 00 [08:33:17]Write to MH i2c: E2 08 00 7C A2 80 13 01 00 00 00 00 00 9B [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 0E 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 0E 00 7C A2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D4 [08:33:17]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:33:17]wFMCommunicate OK [08:33:17]SAM_PROTO_GetShiftState done [08:33:17]FM_GetShiftState done [08:33:17]req_shift_opened done [08:33:17]requested_item shift.open_date is exist - process it [08:33:17]req_shift_open_date [08:33:17]req_shift_open_date done [08:33:17]produce_requested_data done [08:33:17]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69861,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:33:17]process_action_free close_receipt [08:33:17]json_value_free [08:33:17]json_value_free done [08:33:17]process_json_proto returns [08:33:17]Send response to host [08:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69861,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:33:17]free response buf [08:33:17]execute_script done [08:33:17]execute_script returns [08:33:17]free content buf [08:33:17]Sock 9.Close socket [08:33:17]Sock 9.Thread stoped [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:13]accept exits with 7 [08:34:13]New connection [08:34:13]New thread 3067002212 created [08:34:13]Thread 3066858852 joined [08:34:13]Waiting for new connection... [08:34:13] Sock 7.Parse request [08:34:13]Sock 7.Check first char [08:34:13]Sock 7.First char is OK [08:34:13]request: POST /json_proto HTTP/1.0 [08:34:13]Method: POST [08:34:13]URL: /json_proto [08:34:13]Method is POST - this is cgi request [08:34:13]url: /json_proto [08:34:13]query_string will be loaded in cgi processing [08:34:13]execute_cgi json_proto POST (null) [08:34:13]execute_cgi path=json_proto method=POST [08:34:13]POST find Content-Length [08:34:13]Host: 172.17.49.132:8080 [08:34:13]Content-Length: 639 [08:34:13]Content-Type: application/json [08:34:13] [08:34:13]POST finish read [08:34:13]Found Content-Length = 639 [08:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137102", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:13]execute_script... [08:34: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 : (3)137102", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:13]POST & json_proto [08:34:13]process_json_proto [08:34:13]json parsed OK: [08:34:13]protocol is kg_v1.0 [08:34:13]action value=close_receipt [08:34:13]process_action close_receipt [08:34:13]cmd_close_receipt [08:34:13]MH_GetDate [08:34:13]Write to MH i2c: F0 00 00 7D A2 0E [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: F0 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: F0 09 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: F0 09 00 7D A2 00 96 48 AB 66 E7 4B C0 64 5C [08:34:13]GetLastDocTimeStamp 1722501210 [08:34:13]current date 1722501270 [08:34:13]FM_GetShiftState [08:34:13]SAM_PROTO_GetShiftState [08:34:13]wFMCommunicate request_size=4 [08:34:13]MH_SAM_APDU [08:34:13]CAPDU: 80 13 01 00 [08:34:13]Write to MH i2c: E2 08 00 7E A2 80 13 01 00 00 00 00 00 9D [08:34:13]Write i2c OK [08:34:13]MH_I2C_Read... [08:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:13]Read from MH i2c: E2 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 0E 00 [08:34:13]MH_I2C_Read... [08:34:13]Read from MH i2c: E2 0E 00 7E A2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D6 [08:34:13]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:34:13]wFMCommunicate OK [08:34:13]SAM_PROTO_GetShiftState done [08:34:13]FM_GetShiftState done [08:34:13]opened in 1722472772 [08:34:13]opened+sec_in_day 1722559172 [08:34:13]quantity*price = 14000 [08:34:13]sum+1 = 14001 [08:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 25 01.08.2024 08:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69862 ФПД: 110822294246963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083430&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69862&fm=110822294246963&tin=02508201610067®Number=0000000000092638&sum=14000 0 [08:34:14]StoreToDocumentArchive [08:34:14]shift 433 fd 69862 [08:34:14]save to /storage/0433/doc_00069862 [08:34:14]save last doc name /storage/0433/doc_00069862 to /storage/kkm_last_doc_name [08:34:14]save OK [08:34:14]Clear old archive folders... [08:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:34:14]tlvbuf is 013CFA90 [08:34:14]SAM_PROTO_ClearQueue [08:34:14]wFMCommunicate request_size=4 [08:34:14]MH_SAM_APDU [08:34:14]CAPDU: 80 09 00 00 [08:34:14]Write to MH i2c: E2 08 00 8B A2 80 09 00 00 00 00 00 00 9F [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:14]Read from MH i2c: E2 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 03 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 03 00 8B A2 00 90 00 A1 [08:34:14]RAPDU: 90 00 [08:34:14]wFMCommunicate OK [08:34:14]SAM_PROTO_ClearQueue done [08:34:14]KKMCreateOFDPacket [08:34:14]OFDProtocolAddRootSTLVToBuf [08:34:14]FM_MakeSignedData [08:34:14]FM_MakeSignedData [08:34:14]SAM_PROTO_SignData [08:34:14]wFMCommunicate request_size=4 [08:34:14]MH_SAM_APDU [08:34:14]CAPDU: 80 0D 01 02 [08:34:14]Write to MH i2c: E2 08 00 8C A2 80 0D 01 02 00 00 00 00 A7 [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:14]Read from MH i2c: E2 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 03 00 [08:34:14]MH_I2C_Read... [08:34:14]Read from MH i2c: E2 03 00 8C A2 00 90 00 A2 [08:34:14]RAPDU: 90 00 [08:34:14]wFMCommunicate OK [08:34:14]wFMCommunicate request_size=255 [08:34:14]MH_SAM_APDU [08:34:14]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 96 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 [08:34:14]Write to MH i2c: E2 02 01 8D A2 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 96 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D4 [08:34:14]Write i2c OK [08:34:14]MH_I2C_Read... [08:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 03 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 03 00 8D A2 00 90 00 A3 [08:34:15]RAPDU: 90 00 [08:34:15]wFMCommunicate OK [08:34:15]wFMCommunicate request_size=31 [08:34:15]MH_SAM_APDU [08:34:15]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 39 10 04 04 00 E6 10 01 00 35 04 06 00 64 CA D3 7B 56 33 [08:34:15]Write to MH i2c: E2 22 00 8E A2 80 0D 02 02 1A 00 30 30 38 37 34 39 34 39 10 04 04 00 E6 10 01 00 35 04 06 00 64 CA D3 7B 56 33 00 00 DA [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 03 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 03 00 8E A2 00 90 00 A4 [08:34:15]RAPDU: 90 00 [08:34:15]wFMCommunicate OK [08:34:15]wFMCommunicate request_size=4 [08:34:15]MH_SAM_APDU [08:34:15]CAPDU: 80 0D 03 02 [08:34:15]Write to MH i2c: E2 08 00 8F A2 80 0D 03 02 00 00 00 00 AC [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 0B 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 0B 00 8F A2 00 7E 86 26 62 6A F8 D3 E0 90 00 4E [08:34:15]RAPDU: 7E 86 26 62 6A F8 D3 E0 90 00 [08:34:15]wFMCommunicate OK [08:34:15]SAM_PROTO_SignData done [08:34:15]FM_MakeSignedData done [08:34:15]CreateOFDProtocolMessage [08:34:15]wFMCommunicate request_size=4 [08:34:15]MH_SAM_APDU [08:34:15]CAPDU: 80 11 00 00 [08:34:15]Write to MH i2c: E2 08 00 90 A2 80 11 00 00 00 00 00 00 AC [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:15]Read from MH i2c: E2 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 17 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: E2 17 00 90 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 08 [08:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:34:15]wFMCommunicate OK [08:34:15]CreateOFDProtocolMessage done [08:34:15]OFDSenderStorePacket 69862 [08:34:15]StoreOFDPacket docnum=69862 [08:34:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 D0 46 1C 01 D1 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 96 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E6 10 01 00 35 04 06 00 64 CA D3 7B 56 33 7E 86 26 62 6A F8 D3 E0 [08:34:15]CheckFolder [08:34:15]dirname=/storage/ofd_packets [08:34:15]CheckFolder done [08:34:15]ProducePacketName [08:34:15]name=ofd_packets/00069862 [08:34:15]NVStorageSaveData ofd_packets/00069862 [08:34:15]File name is /storage/ofd_packets/00069862 [08:34:15]Write 322 bytes [08:34:15]NVStorageSaveData done [08:34:15]OFDSenderStorePacket done [08:34:15]KKMCreateOFDPacket done [08:34:15]NVStorageSaveData kkm_last_timestamp [08:34:15]File name is /storage/kkm_last_timestamp [08:34:15]Write 4 bytes [08:34:15]NVStorageSaveData done [08:34:15]ExternCall_PrintAddStr [08:34:15]wPrintStart [08:34:15]Write to MH i2c: 01 00 00 91 A2 33 [08:34:15]Write i2c OK [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: 01 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: 01 07 00 [08:34:15]MH_I2C_Read... [08:34:15]Read from MH i2c: 01 07 00 91 A2 00 00 00 00 00 FF 0F 48 [08:34:15]RasterBufferAndPrint [08:34:15]line Счет N : (3)137102 [08:34:15]line ИНН: 02508201610067 [08:34:15]line Контрольно-Кассовый Чек [08:34:15]line ПРОДАЖА [08:34:15]line Товар: 4630007400358 [08:34:15]line Семечки ДЖИНН 70г [08:34:15]line 2.000 * 70.00 [08:34:15]line = 140.00 [08:34:15]line НДС 12% НСП 1% [08:34:15]line > о реализуемом товаре [08:34:15]line ИТОГО: 140.00 [08:34:15]line НСП 1% : 1.24 [08:34:15]line НДС 12% : 14.87 [08:34:15]line Наличными: 140.00 [08:34:15]line Безнал.: 0.00 [08:34:15]line Место: АЗС № 125 "Партнер Нефть" [08:34:15]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:34:15]line СНО: Общий режим [08:34:15]line Чек 25 01.08.2024 08:34 [08:34:15]line Смена: 433 ФФД: 1.0 [08:34:15]line ЗНМ: 0300000049 [08:34:15]line РНМ: 0000000000092638 [08:34:15]line Версия ККМ: 001 [08:34:15]line ФМ: 0000000000874949 [08:34:15]line ФД: 69862 [08:34:15]line ФПД: 110822294246963 [08:34:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T083430&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69862&fm=110822294246963&tin=02508201610067®Number=0000000000092638&sum=14000 [08:34:15]line 0 [08:34:15]OFD Sender: Processing packet 69862 [packets to send 19, broken 18] [08:34:15]ProducePacketName [08:34:15]name=ofd_packets/00069862 [08:34:15]OFD Sender: To server: pG, [08:34:15]CommunicateWithHost lk.salyk.kg:30040 [08:34:15]ConnectInit lk.salyk.kg [08:34:15]written 0, free lines is 4095 [08:34:15]Connected sock=10 [08:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 D0 46 1C 01 D1 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 96 48 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E6 10 01 00 35 04 06 00 64 CA D3 7B 56 33 7E 86 26 62 6A F8 D3 E0 [08:34:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 30 56 47 00 53 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E6 10 01 00 F4 03 04 00 F8 EE AA 66 B6 04 01 00 00 B7 ED 93 9C 08 64 CE 16 [08:34:16]CommunicateWithHost err = 0 [08:34:16]CheckOFDResponse [08:34:16]1017 (14) - 77093643461234 [08:34:16]1041 (16) - 0000000000874949 [08:34:16]1040 (4) - 69862 [08:34:16]1012 (4) - 01.08.2024 02:12 [08:34:16]1206 (1) - 0 [08:34:16]OFD Sender: Remove packet 69862 [08:34:16]ProducePacketName [08:34:16]name=ofd_packets/00069862 [08:34:16]NVStorageDeleteData [08:34:16]Write to MH i2c: 01 00 00 B9 A2 5B [08:34:16]Write i2c OK [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: 01 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: 01 07 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: 01 07 00 B9 A2 00 00 00 00 00 37 0D A6 [08:34:16]RasterBufferAndPrint [08:34:16]line [08:34:16]line [08:34:16]line [08:34:16]line [08:34:16]line [08:34:16]written 0, free lines is 3389 [08:34:16]MH_Cut [08:34:16]Write to MH i2c: D1 01 00 C0 A2 01 34 [08:34:16]Write i2c OK [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: D1 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: D1 01 00 [08:34:16]MH_I2C_Read... [08:34:16]Read from MH i2c: D1 01 00 C0 A2 00 33 [08:34:16]Write to MH i2c: 01 00 00 C1 A2 63 [08:34:16]Write i2c OK [08:34:16]MH_I2C_Read... [08:34:16]OFD Sender: No OFD packet to send [08:34:16]*** Cut start [08:34:16]*** Partial cut [08:34:16]*** CUTSNS_PIN = 1 [08:34:16]*** CUTSNS_PIN = 0 [08:34:17]*** Brake cut motor [08:34:17]Read from MH i2c: 01 [08:34:17]MH_I2C_Read... [08:34:17]*** Stop cut motor [08:34:17]*** Cut end [08:34:17]Read from MH i2c: 01 07 00 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: 01 07 00 C1 A2 00 00 00 00 00 FF 0F 78 [08:34:17]process_action close_receipt done [08:34:17]requested_data is exist [08:34:17]produce_requested_data [08:34:17]requested_item fm.sn is exist - process it [08:34:17]wFMCommunicate request_size=4 [08:34:17]MH_SAM_APDU [08:34:17]CAPDU: 80 11 00 00 [08:34:17]Write to MH i2c: E2 08 00 C2 A2 80 11 00 00 00 00 00 00 DE [08:34:17]Write i2c OK [08:34:17]MH_I2C_Read... [08:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:17]Read from MH i2c: E2 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 17 00 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 17 00 C2 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3A [08:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:34:17]wFMCommunicate OK [08:34:17]requested_item fd.num is exist - process it [08:34:17]SAM_PROTO_GetFieldsCounters [08:34:17]wFMCommunicate request_size=4 [08:34:17]MH_SAM_APDU [08:34:17]CAPDU: 80 13 00 00 [08:34:17]Write to MH i2c: E2 08 00 C3 A2 80 13 00 00 00 00 00 00 E1 [08:34:17]Write i2c OK [08:34:17]MH_I2C_Read... [08:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:17]Read from MH i2c: E2 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 62 00 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 62 00 C3 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E6 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [08:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E6 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:17]wFMCommunicate OK [08:34:17]SAM_PROTO_GetFieldsCounters done [08:34:17]requested_item shift.num is exist - process it [08:34:17]requested_item shift.opened is exist - process it [08:34:17]req_shift_opened [08:34:17]FM_GetShiftState [08:34:17]SAM_PROTO_GetShiftState [08:34:17]wFMCommunicate request_size=4 [08:34:17]MH_SAM_APDU [08:34:17]CAPDU: 80 13 01 00 [08:34:17]Write to MH i2c: E2 08 00 C4 A2 80 13 01 00 00 00 00 00 E3 [08:34:17]Write i2c OK [08:34:17]MH_I2C_Read... [08:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:17]Read from MH i2c: E2 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 0E 00 [08:34:17]MH_I2C_Read... [08:34:17]Read from MH i2c: E2 0E 00 C4 A2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1C [08:34:17]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:34:17]wFMCommunicate OK [08:34:17]SAM_PROTO_GetShiftState done [08:34:17]FM_GetShiftState done [08:34:17]req_shift_opened done [08:34:17]requested_item shift.open_date is exist - process it [08:34:17]req_shift_open_date [08:34:17]req_shift_open_date done [08:34:17]produce_requested_data done [08:34:17]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69862,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:34:17]process_action_free close_receipt [08:34:17]json_value_free [08:34:17]json_value_free done [08:34:17]process_json_proto returns [08:34:17]Send response to host [08:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69862,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:34:17]free response buf [08:34:17]execute_script done [08:34:17]execute_script returns [08:34:17]free content buf [08:34:17]Sock 7.Close socket [08:34:17]Sock 7.Thread stoped [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:25]accept exits with 9 [08:45:25]New connection [08:45:25]New thread 3066858852 created [08:45:25]Thread 3067002212 joined [08:45:25]Waiting for new connection... [08:45:25] Sock 9.Parse request [08:45:25]Sock 9.Check first char [08:45:25]Sock 9.First char is OK [08:45:25]request: POST /json_proto HTTP/1.0 [08:45:25]Method: POST [08:45:25]URL: /json_proto [08:45:25]Method is POST - this is cgi request [08:45:25]url: /json_proto [08:45:25]query_string will be loaded in cgi processing [08:45:25]execute_cgi json_proto POST (null) [08:45:25]execute_cgi path=json_proto method=POST [08:45:25]POST find Content-Length [08:45:25]Host: 172.17.49.132:8080 [08:45:25]Content-Length: 685 [08:45:25]Content-Type: application/json [08:45:25] [08:45:25]POST finish read [08:45:25]Found Content-Length = 685 [08:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137103", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:25]execute_script... [08:45: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 : (3)137103", "tax_sys" : 0, "items" : [ { "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:25]POST & json_proto [08:45:25]process_json_proto [08:45:25]json parsed OK: [08:45:25]protocol is kg_v1.0 [08:45:25]action value=close_receipt [08:45:25]process_action close_receipt [08:45:25]cmd_close_receipt [08:45:25]MH_GetDate [08:45:25]Write to MH i2c: F0 00 00 C5 A2 56 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: F0 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: F0 09 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: F0 09 00 C5 A2 00 36 4B AB 66 E7 4B C0 64 47 [08:45:25]GetLastDocTimeStamp 1722501270 [08:45:25]current date 1722501942 [08:45:25]FM_GetShiftState [08:45:25]SAM_PROTO_GetShiftState [08:45:25]wFMCommunicate request_size=4 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 13 01 00 [08:45:25]Write to MH i2c: E2 08 00 C6 A2 80 13 01 00 00 00 00 00 E5 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 0E 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 0E 00 C6 A2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1E [08:45:25]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:45:25]wFMCommunicate OK [08:45:25]SAM_PROTO_GetShiftState done [08:45:25]FM_GetShiftState done [08:45:25]opened in 1722472772 [08:45:25]opened+sec_in_day 1722559172 [08:45:25]quantity*price = 8000 [08:45:25]sum+1 = 8001 [08:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 26 01.08.2024 08:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69863 ФПД: 106026509165702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T084542&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69863&fm=106026509165702&tin=02508201610067®Number=0000000000092638&sum=8000 0 [08:45:26]StoreToDocumentArchive [08:45:26]shift 433 fd 69863 [08:45:26]save to /storage/0433/doc_00069863 [08:45:26]save last doc name /storage/0433/doc_00069863 to /storage/kkm_last_doc_name [08:45:26]save OK [08:45:26]Clear old archive folders... [08:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=296 [08:45:26]tlvbuf is 01179600 [08:45:26]SAM_PROTO_ClearQueue [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 09 00 00 [08:45:26]Write to MH i2c: E2 08 00 D3 A2 80 09 00 00 00 00 00 00 E7 [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:26]Read from MH i2c: E2 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 03 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 03 00 D3 A2 00 90 00 E9 [08:45:26]RAPDU: 90 00 [08:45:26]wFMCommunicate OK [08:45:26]SAM_PROTO_ClearQueue done [08:45:26]KKMCreateOFDPacket [08:45:26]OFDProtocolAddRootSTLVToBuf [08:45:26]FM_MakeSignedData [08:45:26]FM_MakeSignedData [08:45:26]SAM_PROTO_SignData [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 0D 01 02 [08:45:26]Write to MH i2c: E2 08 00 D4 A2 80 0D 01 02 00 00 00 00 EF [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:26]Read from MH i2c: E2 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 03 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 03 00 D4 A2 00 90 00 EA [08:45:26]RAPDU: 90 00 [08:45:26]wFMCommunicate OK [08:45:26]wFMCommunicate request_size=255 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [08:45:26]Write to MH i2c: E2 02 01 D5 A2 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 0C [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 D5 A2 00 90 00 EB [08:45:27]RAPDU: 90 00 [08:45:27]wFMCommunicate OK [08:45:27]wFMCommunicate request_size=55 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E7 10 01 00 35 04 06 00 60 6E 38 6A 64 86 [08:45:27]Write to MH i2c: E2 3A 00 D6 A2 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E7 10 01 00 35 04 06 00 60 6E 38 6A 64 86 00 00 A9 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]OFD Sender: No OFD packet to send [08:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 03 00 D6 A2 00 90 00 EC [08:45:27]RAPDU: 90 00 [08:45:27]wFMCommunicate OK [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 0D 03 02 [08:45:27]Write to MH i2c: E2 08 00 D7 A2 80 0D 03 02 00 00 00 00 F4 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 0B 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 0B 00 D7 A2 00 6C 0D 24 EC 72 8A 7D 53 90 00 4A [08:45:27]RAPDU: 6C 0D 24 EC 72 8A 7D 53 90 00 [08:45:27]wFMCommunicate OK [08:45:27]SAM_PROTO_SignData done [08:45:27]FM_MakeSignedData done [08:45:27]CreateOFDProtocolMessage [08:45:27]wFMCommunicate request_size=4 [08:45:27]MH_SAM_APDU [08:45:27]CAPDU: 80 11 00 00 [08:45:27]Write to MH i2c: E2 08 00 D8 A2 80 11 00 00 00 00 00 00 F4 [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:27]Read from MH i2c: E2 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 17 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: E2 17 00 D8 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 50 [08:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:45:27]wFMCommunicate OK [08:45:27]CreateOFDProtocolMessage done [08:45:27]OFDSenderStorePacket 69863 [08:45:27]StoreOFDPacket docnum=69863 [08:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3C 01 00 00 7A 3E 34 01 B9 70 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E7 10 01 00 35 04 06 00 60 6E 38 6A 64 86 6C 0D 24 EC 72 8A 7D 53 [08:45:27]CheckFolder [08:45:27]dirname=/storage/ofd_packets [08:45:27]CheckFolder done [08:45:27]ProducePacketName [08:45:27]name=ofd_packets/00069863 [08:45:27]NVStorageSaveData ofd_packets/00069863 [08:45:27]File name is /storage/ofd_packets/00069863 [08:45:27]Write 346 bytes [08:45:27]NVStorageSaveData done [08:45:27]OFDSenderStorePacket done [08:45:27]KKMCreateOFDPacket done [08:45:27]NVStorageSaveData kkm_last_timestamp [08:45:27]File name is /storage/kkm_last_timestamp [08:45:27]Write 4 bytes [08:45:27]NVStorageSaveData done [08:45:27]ExternCall_PrintAddStr [08:45:27]wPrintStart [08:45:27]Write to MH i2c: 01 00 00 D9 A2 7B [08:45:27]Write i2c OK [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 07 00 [08:45:27]MH_I2C_Read... [08:45:27]Read from MH i2c: 01 07 00 D9 A2 00 00 00 00 00 FF 0F 90 [08:45:27]RasterBufferAndPrint [08:45:27]line Счет N : (3)137103 [08:45:27]line ИНН: 02508201610067 [08:45:27]line Контрольно-Кассовый Чек [08:45:27]line ПРОДАЖА [08:45:27]line Товар: 4700003010476 [08:45:27]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [08:45:27]line 1.000 * 80.00 [08:45:27]line = 80.00 [08:45:27]line НДС 12% НСП 1% [08:45:27]line > о реализуемом товаре [08:45:27]line ИТОГО: 80.00 [08:45:27]line НСП 1% : 0.71 [08:45:27]line НДС 12% : 8.50 [08:45:27]line Наличными: 80.00 [08:45:27]line Безнал.: 0.00 [08:45:27]line Место: АЗС № 125 "Партнер Нефть" [08:45:27]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:45:27]line СНО: Общий режим [08:45:27]line Чек 26 01.08.2024 08:45 [08:45:27]line Смена: 433 ФФД: 1.0 [08:45:27]line ЗНМ: 0300000049 [08:45:27]line РНМ: 0000000000092638 [08:45:27]line Версия ККМ: 001 [08:45:27]line ФМ: 0000000000874949 [08:45:27]line ФД: 69863 [08:45:27]line ФПД: 106026509165702 [08:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T084542&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69863&fm=106026509165702&tin=02508201610067®Number=0000000000092638&sum=8000 [08:45:27]line 0 [08:45:27]OFD Sender: Processing packet 69863 [packets to send 19, broken 18] [08:45:27]ProducePacketName [08:45:27]name=ofd_packets/00069863 [08:45:27]OFD Sender: To server: pG, [08:45:27]CommunicateWithHost lk.salyk.kg:30040 [08:45:27]ConnectInit lk.salyk.kg [08:45:27]written 0, free lines is 4095 [08:45:27]Connected sock=10 [08:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3C 01 00 00 7A 3E 34 01 B9 70 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E7 10 01 00 35 04 06 00 60 6E 38 6A 64 86 6C 0D 24 EC 72 8A 7D 53 [08:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 13 62 47 00 18 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E7 10 01 00 F4 03 04 00 98 F1 AA 66 B6 04 01 00 00 65 2E 90 6A 2A 6A EE 3B [08:45:28]CommunicateWithHost err = 0 [08:45:28]CheckOFDResponse [08:45:28]1017 (14) - 77093643461234 [08:45:28]1041 (16) - 0000000000874949 [08:45:28]1040 (4) - 69863 [08:45:28]1012 (4) - 01.08.2024 02:23 [08:45:28]1206 (1) - 0 [08:45:28]OFD Sender: Remove packet 69863 [08:45:28]ProducePacketName [08:45:28]name=ofd_packets/00069863 [08:45:28]NVStorageDeleteData [08:45:28]Write to MH i2c: 01 00 00 02 A3 A5 [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 02 A3 00 00 00 00 00 09 0D C2 [08:45:28]RasterBufferAndPrint [08:45:28]line [08:45:28]line [08:45:28]line [08:45:28]line [08:45:28]line [08:45:28]written 0, free lines is 3346 [08:45:28]MH_Cut [08:45:28]Write to MH i2c: D1 01 00 09 A3 01 7E [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: D1 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: D1 01 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: D1 01 00 09 A3 00 7D [08:45:28]Write to MH i2c: 01 00 00 0A A3 AD [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]OFD Sender: No OFD packet to send [08:45:28]*** Cut start [08:45:28]*** Partial cut [08:45:28]*** CUTSNS_PIN = 1 [08:45:28]*** CUTSNS_PIN = 0 [08:45:28]*** Brake cut motor [08:45:29]Read from MH i2c: 01 [08:45:29]MH_I2C_Read... [08:45:29]*** Stop cut motor [08:45:29]*** Cut end [08:45:29]Read from MH i2c: 01 07 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 0A A3 00 00 00 00 00 FF 0F C2 [08:45:29]process_action close_receipt done [08:45:29]requested_data is exist [08:45:29]produce_requested_data [08:45:29]requested_item fm.sn is exist - process it [08:45:29]wFMCommunicate request_size=4 [08:45:29]MH_SAM_APDU [08:45:29]CAPDU: 80 11 00 00 [08:45:29]Write to MH i2c: E2 08 00 0B A3 80 11 00 00 00 00 00 00 28 [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:29]Read from MH i2c: E2 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: E2 17 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: E2 17 00 0B A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 84 [08:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:45:29]wFMCommunicate OK [08:45:29]requested_item fd.num is exist - process it [08:45:29]SAM_PROTO_GetFieldsCounters [08:45:29]wFMCommunicate request_size=4 [08:45:29]MH_SAM_APDU [08:45:29]CAPDU: 80 13 00 00 [08:45:29]Write to MH i2c: E2 08 00 0C A3 80 13 00 00 00 00 00 00 2B [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:29]Read from MH i2c: E2 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: E2 62 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: E2 62 00 0C A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E7 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [08:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E7 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:29]wFMCommunicate OK [08:45:29]SAM_PROTO_GetFieldsCounters done [08:45:29]requested_item shift.num is exist - process it [08:45:29]requested_item shift.opened is exist - process it [08:45:29]req_shift_opened [08:45:29]FM_GetShiftState [08:45:29]SAM_PROTO_GetShiftState [08:45:29]wFMCommunicate request_size=4 [08:45:29]MH_SAM_APDU [08:45:29]CAPDU: 80 13 01 00 [08:45:29]Write to MH i2c: E2 08 00 0D A3 80 13 01 00 00 00 00 00 2D [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:29]Read from MH i2c: E2 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: E2 0E 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: E2 0E 00 0D A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 66 [08:45:29]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:45:29]wFMCommunicate OK [08:45:29]SAM_PROTO_GetShiftState done [08:45:29]FM_GetShiftState done [08:45:29]req_shift_opened done [08:45:29]requested_item shift.open_date is exist - process it [08:45:29]req_shift_open_date [08:45:29]req_shift_open_date done [08:45:29]produce_requested_data done [08:45:29]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69863,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:45:29]process_action_free close_receipt [08:45:29]json_value_free [08:45:29]json_value_free done [08:45:29]process_json_proto returns [08:45:29]Send response to host [08:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69863,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:45:29]free response buf [08:45:29]execute_script done [08:45:29]execute_script returns [08:45:29]free content buf [08:45:29]Sock 9.Close socket [08:45:29]Sock 9.Thread stoped [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:57]accept exits with 7 [08:45:57]New connection [08:45:57]New thread 3067002212 created [08:45:57]Thread 3066858852 joined [08:45:57]Waiting for new connection... [08:45:57] Sock 7.Parse request [08:45:57]Sock 7.Check first char [08:45:57]Sock 7.First char is OK [08:45:57]request: POST /json_proto HTTP/1.0 [08:45:57]Method: POST [08:45:57]URL: /json_proto [08:45:57]Method is POST - this is cgi request [08:45:57]url: /json_proto [08:45:57]query_string will be loaded in cgi processing [08:45:57]execute_cgi json_proto POST (null) [08:45:57]execute_cgi path=json_proto method=POST [08:45:57]POST find Content-Length [08:45:57]Host: 172.17.49.132:8080 [08:45:57]Content-Length: 646 [08:45:57]Content-Type: application/json [08:45:57] [08:45:57]POST finish read [08:45:57]Found Content-Length = 646 [08:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137104", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:57]execute_script... [08: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 : (3)137104", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:57]POST & json_proto [08:45:57]process_json_proto [08:45:57]json parsed OK: [08:45:57]protocol is kg_v1.0 [08:45:57]action value=close_receipt [08:45:57]process_action close_receipt [08:45:57]cmd_close_receipt [08:45:57]MH_GetDate [08:45:57]Write to MH i2c: F0 00 00 0E A3 A0 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: F0 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: F0 09 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: F0 09 00 0E A3 00 56 4B AB 66 E7 4B C0 64 B1 [08:45:57]GetLastDocTimeStamp 1722501942 [08:45:57]current date 1722501974 [08:45:57]FM_GetShiftState [08:45:57]SAM_PROTO_GetShiftState [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 13 01 00 [08:45:57]Write to MH i2c: E2 08 00 0F A3 80 13 01 00 00 00 00 00 2F [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 0E 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 0E 00 0F A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 68 [08:45:57]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:45:57]wFMCommunicate OK [08:45:57]SAM_PROTO_GetShiftState done [08:45:57]FM_GetShiftState done [08:45:57]opened in 1722472772 [08:45:57]opened+sec_in_day 1722559172 [08:45:57]quantity*price = 13000 [08:45:57]sum+1 = 13001 [08:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 27 01.08.2024 08:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69864 ФПД: 194231760796728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T084614&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69864&fm=194231760796728&tin=02508201610067®Number=0000000000092638&sum=13000 0 [08:45:58]StoreToDocumentArchive [08:45:58]shift 433 fd 69864 [08:45:58]save to /storage/0433/doc_00069864 [08:45:58]save last doc name /storage/0433/doc_00069864 to /storage/kkm_last_doc_name [08:45:58]save OK [08:45:58]Clear old archive folders... [08:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:45:58]tlvbuf is 011793A0 [08:45:58]SAM_PROTO_ClearQueue [08:45:58]wFMCommunicate request_size=4 [08:45:58]MH_SAM_APDU [08:45:58]CAPDU: 80 09 00 00 [08:45:58]Write to MH i2c: E2 08 00 1C A3 80 09 00 00 00 00 00 00 31 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:58]Read from MH i2c: E2 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 03 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 03 00 1C A3 00 90 00 33 [08:45:58]RAPDU: 90 00 [08:45:58]wFMCommunicate OK [08:45:58]SAM_PROTO_ClearQueue done [08:45:58]KKMCreateOFDPacket [08:45:58]OFDProtocolAddRootSTLVToBuf [08:45:58]FM_MakeSignedData [08:45:58]FM_MakeSignedData [08:45:58]SAM_PROTO_SignData [08:45:58]wFMCommunicate request_size=4 [08:45:58]MH_SAM_APDU [08:45:58]CAPDU: 80 0D 01 02 [08:45:58]Write to MH i2c: E2 08 00 1D A3 80 0D 01 02 00 00 00 00 39 [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:58]Read from MH i2c: E2 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 03 00 [08:45:58]MH_I2C_Read... [08:45:58]Read from MH i2c: E2 03 00 1D A3 00 90 00 34 [08:45:58]RAPDU: 90 00 [08:45:58]wFMCommunicate OK [08:45:58]wFMCommunicate request_size=255 [08:45:58]MH_SAM_APDU [08:45:58]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 56 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 [08:45:58]Write to MH i2c: E2 02 01 1E A3 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 56 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 00 00 CA [08:45:58]Write i2c OK [08:45:58]MH_I2C_Read... [08:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:59]Read from MH i2c: E2 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 03 00 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 03 00 1E A3 00 90 00 35 [08:45:59]RAPDU: 90 00 [08:45:59]wFMCommunicate OK [08:45:59]wFMCommunicate request_size=41 [08:45:59]MH_SAM_APDU [08:45:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E8 10 01 00 35 04 06 00 B0 A7 1B 1B 3C 38 [08:45:59]Write to MH i2c: E2 2C 00 1F A3 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E8 10 01 00 35 04 06 00 B0 A7 1B 1B 3C 38 00 00 0E [08:45:59]Write i2c OK [08:45:59]MH_I2C_Read... [08:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:59]Read from MH i2c: E2 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 03 00 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 03 00 1F A3 00 90 00 36 [08:45:59]RAPDU: 90 00 [08:45:59]wFMCommunicate OK [08:45:59]wFMCommunicate request_size=4 [08:45:59]MH_SAM_APDU [08:45:59]CAPDU: 80 0D 03 02 [08:45:59]Write to MH i2c: E2 08 00 20 A3 80 0D 03 02 00 00 00 00 3E [08:45:59]Write i2c OK [08:45:59]MH_I2C_Read... [08:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:59]Read from MH i2c: E2 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 0B 00 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 0B 00 20 A3 00 67 EA BE 0D 79 5A 8D 74 90 00 2F [08:45:59]RAPDU: 67 EA BE 0D 79 5A 8D 74 90 00 [08:45:59]wFMCommunicate OK [08:45:59]SAM_PROTO_SignData done [08:45:59]FM_MakeSignedData done [08:45:59]CreateOFDProtocolMessage [08:45:59]wFMCommunicate request_size=4 [08:45:59]MH_SAM_APDU [08:45:59]CAPDU: 80 11 00 00 [08:45:59]Write to MH i2c: E2 08 00 21 A3 80 11 00 00 00 00 00 00 3E [08:45:59]Write i2c OK [08:45:59]MH_I2C_Read... [08:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:59]Read from MH i2c: E2 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 17 00 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: E2 17 00 21 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9A [08:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:45:59]wFMCommunicate OK [08:45:59]CreateOFDProtocolMessage done [08:45:59]OFDSenderStorePacket 69864 [08:45:59]StoreOFDPacket docnum=69864 [08:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 85 7A 26 01 7C 2D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 56 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E8 10 01 00 35 04 06 00 B0 A7 1B 1B 3C 38 67 EA BE 0D 79 5A 8D 74 [08:45:59]CheckFolder [08:45:59]dirname=/storage/ofd_packets [08:45:59]CheckFolder done [08:45:59]ProducePacketName [08:45:59]name=ofd_packets/00069864 [08:45:59]NVStorageSaveData ofd_packets/00069864 [08:45:59]File name is /storage/ofd_packets/00069864 [08:45:59]Write 332 bytes [08:45:59]NVStorageSaveData done [08:45:59]OFDSenderStorePacket done [08:45:59]KKMCreateOFDPacket done [08:45:59]NVStorageSaveData kkm_last_timestamp [08:45:59]File name is /storage/kkm_last_timestamp [08:45:59]Write 4 bytes [08:45:59]NVStorageSaveData done [08:45:59]ExternCall_PrintAddStr [08:45:59]wPrintStart [08:45:59]Write to MH i2c: 01 00 00 22 A3 C5 [08:45:59]Write i2c OK [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: 01 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: 01 07 00 [08:45:59]MH_I2C_Read... [08:45:59]Read from MH i2c: 01 07 00 22 A3 00 00 00 00 00 FF 0F DA [08:45:59]RasterBufferAndPrint [08:45:59]line Счет N : (3)137104 [08:45:59]line ИНН: 02508201610067 [08:45:59]line Контрольно-Кассовый Чек [08:45:59]line ПРОДАЖА [08:45:59]line Товар: 2000036220012 [08:45:59]line Кофе Капучино XL(GABB TRADE) [08:45:59]line 1.000 * 130.00 [08:45:59]line = 130.00 [08:45:59]line НДС 12% НСП 1% [08:45:59]line > о реализуемом товаре [08:45:59]line ИТОГО: 130.00 [08:45:59]line НСП 1% : 1.15 [08:45:59]line НДС 12% : 13.80 [08:45:59]line Наличными: 130.00 [08:45:59]line Безнал.: 0.00 [08:45:59]line Место: АЗС № 125 "Партнер Нефть" [08:45:59]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:45:59]line СНО: Общий режим [08:45:59]line Чек 27 01.08.2024 08:46 [08:45:59]line Смена: 433 ФФД: 1.0 [08:45:59]line ЗНМ: 0300000049 [08:45:59]line РНМ: 0000000000092638 [08:45:59]line Версия ККМ: 001 [08:45:59]line ФМ: 0000000000874949 [08:45:59]line ФД: 69864 [08:45:59]line ФПД: 194231760796728 [08:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T084614&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69864&fm=194231760796728&tin=02508201610067®Number=0000000000092638&sum=13000 [08:45:59]OFD Sender: Processing packet 69864 [packets to send 19, broken 18] [08:45:59]ProducePacketName [08:45:59]name=ofd_packets/00069864 [08:45:59]OFD Sender: To server: pG, [08:45:59]CommunicateWithHost lk.salyk.kg:30040 [08:45:59]ConnectInit lk.salyk.kg [08:45:59]line 0 [08:45:59]written 0, free lines is 4095 [08:45:59]Connected sock=10 [08: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 34 39 34 39 2E 01 00 00 85 7A 26 01 7C 2D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 56 4B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E8 10 01 00 35 04 06 00 B0 A7 1B 1B 3C 38 67 EA BE 0D 79 5A 8D 74 [08:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F8 E6 47 00 3C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E8 10 01 00 F4 03 04 00 B8 F1 AA 66 B6 04 01 00 00 08 64 CC B5 A7 1C 62 22 [08:46:00]CommunicateWithHost err = 0 [08:46:00]CheckOFDResponse [08:46:00]1017 (14) - 77093643461234 [08:46:00]1041 (16) - 0000000000874949 [08:46:00]1040 (4) - 69864 [08:46:00]1012 (4) - 01.08.2024 02:23 [08:46:00]1206 (1) - 0 [08:46:00]OFD Sender: Remove packet 69864 [08:46:00]ProducePacketName [08:46:00]name=ofd_packets/00069864 [08:46:00]NVStorageDeleteData [08:46:00]Write to MH i2c: 01 00 00 4B A3 EE [08:46:00]Write i2c OK [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: 01 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: 01 07 00 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: 01 07 00 4B A3 00 00 00 00 00 04 0D 06 [08:46:00]RasterBufferAndPrint [08:46:00]line [08:46:00]line [08:46:00]line [08:46:00]line [08:46:00]line [08:46:00]written 0, free lines is 3341 [08:46:00]MH_Cut [08:46:00]Write to MH i2c: D1 01 00 52 A3 01 C7 [08:46:00]Write i2c OK [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: D1 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: D1 01 00 [08:46:00]MH_I2C_Read... [08:46:00]Read from MH i2c: D1 01 00 52 A3 00 C6 [08:46:00]Write to MH i2c: 01 00 00 53 A3 F6 [08:46:00]Write i2c OK [08:46:00]MH_I2C_Read... [08:46:00]OFD Sender: No OFD packet to send [08:46:00]*** Cut start [08:46:00]*** Partial cut [08:46:00]*** CUTSNS_PIN = 1 [08:46:00]*** CUTSNS_PIN = 0 [08:46:01]*** Brake cut motor [08:46:01]Read from MH i2c: 01 [08:46:01]MH_I2C_Read... [08:46:01]*** Stop cut motor [08:46:01]*** Cut end [08:46:01]Read from MH i2c: 01 07 00 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: 01 07 00 53 A3 00 00 00 00 00 FF 0F 0B [08:46:01]process_action close_receipt done [08:46:01]requested_data is exist [08:46:01]produce_requested_data [08:46:01]requested_item fm.sn is exist - process it [08:46:01]wFMCommunicate request_size=4 [08:46:01]MH_SAM_APDU [08:46:01]CAPDU: 80 11 00 00 [08:46:01]Write to MH i2c: E2 08 00 54 A3 80 11 00 00 00 00 00 00 71 [08:46:01]Write i2c OK [08:46:01]MH_I2C_Read... [08:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:01]Read from MH i2c: E2 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 17 00 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 17 00 54 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CD [08:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:46:01]wFMCommunicate OK [08:46:01]requested_item fd.num is exist - process it [08:46:01]SAM_PROTO_GetFieldsCounters [08:46:01]wFMCommunicate request_size=4 [08:46:01]MH_SAM_APDU [08:46:01]CAPDU: 80 13 00 00 [08:46:01]Write to MH i2c: E2 08 00 55 A3 80 13 00 00 00 00 00 00 74 [08:46:01]Write i2c OK [08:46:01]MH_I2C_Read... [08:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:01]Read from MH i2c: E2 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 62 00 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 62 00 55 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E8 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [08: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E8 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:01]wFMCommunicate OK [08:46:01]SAM_PROTO_GetFieldsCounters done [08:46:01]requested_item shift.num is exist - process it [08:46:01]requested_item shift.opened is exist - process it [08:46:01]req_shift_opened [08:46:01]FM_GetShiftState [08:46:01]SAM_PROTO_GetShiftState [08:46:01]wFMCommunicate request_size=4 [08:46:01]MH_SAM_APDU [08:46:01]CAPDU: 80 13 01 00 [08:46:01]Write to MH i2c: E2 08 00 56 A3 80 13 01 00 00 00 00 00 76 [08:46:01]Write i2c OK [08:46:01]MH_I2C_Read... [08:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:01]Read from MH i2c: E2 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 0E 00 [08:46:01]MH_I2C_Read... [08:46:01]Read from MH i2c: E2 0E 00 56 A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 AF [08:46:01]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:46:01]wFMCommunicate OK [08:46:01]SAM_PROTO_GetShiftState done [08:46:01]FM_GetShiftState done [08:46:01]req_shift_opened done [08:46:01]requested_item shift.open_date is exist - process it [08:46:01]req_shift_open_date [08:46:01]req_shift_open_date done [08:46:01]produce_requested_data done [08:46:01]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69864,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:46:01]process_action_free close_receipt [08:46:01]json_value_free [08:46:01]json_value_free done [08:46:01]process_json_proto returns [08:46:01]Send response to host [08:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69864,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:46:01]free response buf [08:46:01]execute_script done [08:46:01]execute_script returns [08:46:01]free content buf [08:46:01]Sock 7.Close socket [08:46:01]Sock 7.Thread stoped [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:18]accept exits with 9 [08:51:18]New connection [08:51:18]New thread 3066858852 created [08:51:18]Thread 3067002212 joined [08:51:18]Waiting for new connection... [08:51:18] Sock 9.Parse request [08:51:18]Sock 9.Check first char [08:51:18]Sock 9.First char is OK [08:51:18]request: POST /json_proto HTTP/1.0 [08:51:18]Method: POST [08:51:18]URL: /json_proto [08:51:18]Method is POST - this is cgi request [08:51:18]url: /json_proto [08:51:18]query_string will be loaded in cgi processing [08:51:18]execute_cgi json_proto POST (null) [08:51:18]execute_cgi path=json_proto method=POST [08:51:18]POST find Content-Length [08:51:18]Host: 172.17.49.132:8080 [08:51:18]Content-Length: 667 [08:51:18]Content-Type: application/json [08:51:18] [08:51:18]POST finish read [08:51:18]Found Content-Length = 667 [08:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137105", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:18]execute_script... [08:51: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 : (3)137105", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:18]POST & json_proto [08:51:18]process_json_proto [08:51:18]json parsed OK: [08:51:18]protocol is kg_v1.0 [08:51:18]action value=close_receipt [08:51:18]process_action close_receipt [08:51:18]cmd_close_receipt [08:51:18]MH_GetDate [08:51:18]Write to MH i2c: F0 00 00 57 A3 E9 [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: F0 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: F0 09 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: F0 09 00 57 A3 00 98 4C AB 66 E7 4B C0 64 3D [08:51:18]GetLastDocTimeStamp 1722501974 [08:51:18]current date 1722502296 [08:51:18]FM_GetShiftState [08:51:18]SAM_PROTO_GetShiftState [08:51:18]wFMCommunicate request_size=4 [08:51:18]MH_SAM_APDU [08:51:18]CAPDU: 80 13 01 00 [08:51:18]Write to MH i2c: E2 08 00 58 A3 80 13 01 00 00 00 00 00 78 [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:18]Read from MH i2c: E2 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 0E 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 0E 00 58 A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 B1 [08:51:18]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:51:18]wFMCommunicate OK [08:51:18]SAM_PROTO_GetShiftState done [08:51:18]FM_GetShiftState done [08:51:18]opened in 1722472772 [08:51:18]opened+sec_in_day 1722559172 [08:51:18]quantity*price = 35000 [08:51:18]sum+1 = 35001 [08:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 28 01.08.2024 08:51 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69865 ФПД: 153661584322236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T085136&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69865&fm=153661584322236&tin=02508201610067®Number=0000000000092638&sum=35000 0 [08:51:19]StoreToDocumentArchive [08:51:19]shift 433 fd 69865 [08:51:19]save to /storage/0433/doc_00069865 [08:51:19]save last doc name /storage/0433/doc_00069865 to /storage/kkm_last_doc_name [08:51:19]save OK [08:51:19]Clear old archive folders... [08:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=283 [08:51:19]tlvbuf is 015041B0 [08:51:19]SAM_PROTO_ClearQueue [08:51:19]wFMCommunicate request_size=4 [08:51:19]MH_SAM_APDU [08:51:19]CAPDU: 80 09 00 00 [08:51:19]Write to MH i2c: E2 08 00 65 A3 80 09 00 00 00 00 00 00 7A [08:51:19]Write i2c OK [08:51:19]MH_I2C_Read... [08:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:19]Read from MH i2c: E2 [08:51:19]MH_I2C_Read... [08:51:19]Read from MH i2c: E2 03 00 [08:51:19]MH_I2C_Read... [08:51:19]Read from MH i2c: E2 03 00 65 A3 00 90 00 7C [08:51:19]RAPDU: 90 00 [08:51:19]wFMCommunicate OK [08:51:19]SAM_PROTO_ClearQueue done [08:51:19]KKMCreateOFDPacket [08:51:19]OFDProtocolAddRootSTLVToBuf [08:51:19]FM_MakeSignedData [08:51:19]FM_MakeSignedData [08:51:19]SAM_PROTO_SignData [08:51:19]wFMCommunicate request_size=4 [08:51:19]MH_SAM_APDU [08:51:19]CAPDU: 80 0D 01 02 [08:51:19]Write to MH i2c: E2 08 00 66 A3 80 0D 01 02 00 00 00 00 82 [08:51:19]Write i2c OK [08:51:19]MH_I2C_Read... [08:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 66 A3 00 90 00 7D [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]wFMCommunicate request_size=255 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 98 4C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 [08:51:20]Write to MH i2c: E2 02 01 67 A3 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 98 4C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 00 00 C3 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 67 A3 00 90 00 7E [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]wFMCommunicate request_size=42 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E9 10 01 00 35 04 06 00 8B C1 20 26 2E BC [08:51:20]Write to MH i2c: E2 2D 00 68 A3 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E9 10 01 00 35 04 06 00 8B C1 20 26 2E BC 00 00 D9 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 68 A3 00 90 00 7F [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 03 02 [08:51:20]Write to MH i2c: E2 08 00 69 A3 80 0D 03 02 00 00 00 00 87 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0B 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0B 00 69 A3 00 CE 6E 00 8C 96 C0 75 4E 90 00 69 [08:51:20]RAPDU: CE 6E 00 8C 96 C0 75 4E 90 00 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_SignData done [08:51:20]FM_MakeSignedData done [08:51:20]CreateOFDProtocolMessage [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 11 00 00 [08:51:20]Write to MH i2c: E2 08 00 6A A3 80 11 00 00 00 00 00 00 87 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 17 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 17 00 6A A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E3 [08:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:51:20]wFMCommunicate OK [08:51:20]CreateOFDProtocolMessage done [08:51:20]OFDSenderStorePacket 69865 [08:51:20]StoreOFDPacket docnum=69865 [08:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 83 78 27 01 1C 94 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 98 4C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E9 10 01 00 35 04 06 00 8B C1 20 26 2E BC CE 6E 00 8C 96 C0 75 4E [08:51:20]CheckFolder [08:51:20]dirname=/storage/ofd_packets [08:51:20]CheckFolder done [08:51:20]ProducePacketName [08:51:20]name=ofd_packets/00069865 [08:51:20]NVStorageSaveData ofd_packets/00069865 [08:51:20]File name is /storage/ofd_packets/00069865 [08:51:20]Write 333 bytes [08:51:20]NVStorageSaveData done [08:51:20]OFDSenderStorePacket done [08:51:20]KKMCreateOFDPacket done [08:51:20]NVStorageSaveData kkm_last_timestamp [08:51:20]File name is /storage/kkm_last_timestamp [08:51:20]Write 4 bytes [08:51:20]NVStorageSaveData done [08:51:20]ExternCall_PrintAddStr [08:51:20]wPrintStart [08:51:20]Write to MH i2c: 01 00 00 6B A3 0E [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 07 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 07 00 6B A3 00 00 00 00 00 FF 0F 23 [08:51:20]RasterBufferAndPrint [08:51:20]line Счет N : (3)137105 [08:51:20]line ИНН: 02508201610067 [08:51:20]line Контрольно-Кассовый Чек [08:51:20]line ПРОДАЖА [08:51:20]line Товар: 4700002082191 [08:51:20]line Водка Белое золото 0,46л [08:51:20]line 1.000 * 350.00 [08:51:20]line = 350.00 [08:51:20]line НДС 12% НСП 1% [08:51:20]line > о реализуемом товаре [08:51:20]line ИТОГО: 350.00 [08:51:20]line НСП 1% : 3.10 [08:51:20]line НДС 12% : 37.17 [08:51:20]line Наличными: 350.00 [08:51:20]line Безнал.: 0.00 [08:51:20]line Место: АЗС № 125 "Партнер Нефть" [08:51:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [08:51:20]line СНО: Общий режим [08:51:20]line Чек 28 01.08.2024 08:51 [08:51:20]line Смена: 433 ФФД: 1.0 [08:51:20]line ЗНМ: 0300000049 [08:51:20]line РНМ: 0000000000092638 [08:51:20]line Версия ККМ: 001 [08:51:20]line ФМ: 0000000000874949 [08:51:20]line ФД: 69865 [08:51:20]line ФПД: 153661584322236 [08:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T085136&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69865&fm=153661584322236&tin=02508201610067®Number=0000000000092638&sum=35000 [08:51:20]line 0 [08:51:20]written 0, free lines is 4095 [08:51:20]OFD Sender: Processing packet 69865 [packets to send 19, broken 18] [08:51:20]ProducePacketName [08:51:20]name=ofd_packets/00069865 [08:51:20]OFD Sender: To server: pG, [08:51:20]CommunicateWithHost lk.salyk.kg:30040 [08:51:20]ConnectInit lk.salyk.kg [08:51:20]Connected sock=11 [08:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 83 78 27 01 1C 94 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 98 4C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E9 10 01 00 35 04 06 00 8B C1 20 26 2E BC CE 6E 00 8C 96 C0 75 4E [08:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D6 D9 47 00 25 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 E9 10 01 00 F4 03 04 00 F9 F2 AA 66 B6 04 01 00 00 9B 83 8A C5 9C F8 9A F6 [08:51:20]CommunicateWithHost err = 0 [08:51:20]CheckOFDResponse [08:51:20]1017 (14) - 77093643461234 [08:51:20]1041 (16) - 0000000000874949 [08:51:20]1040 (4) - 69865 [08:51:20]1012 (4) - 01.08.2024 02:29 [08:51:20]1206 (1) - 0 [08:51:20]OFD Sender: Remove packet 69865 [08:51:20]ProducePacketName [08:51:20]name=ofd_packets/00069865 [08:51:20]NVStorageDeleteData [08:51:20]Write to MH i2c: 01 00 00 93 A3 36 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 07 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 07 00 93 A3 00 00 00 00 00 24 0D 6E [08:51:20]RasterBufferAndPrint [08:51:20]line [08:51:20]line [08:51:20]line [08:51:20]line [08:51:20]line [08:51:20]written 0, free lines is 3370 [08:51:20]MH_Cut [08:51:20]Write to MH i2c: D1 01 00 9A A3 01 0F [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: D1 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: D1 01 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: D1 01 00 9A A3 00 0E [08:51:20]Write to MH i2c: 01 00 00 9B A3 3E [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:21]OFD Sender: No OFD packet to send [08:51:21]*** Cut start [08:51:21]*** Partial cut [08:51:21]*** CUTSNS_PIN = 1 [08:51:21]*** CUTSNS_PIN = 0 [08:51:21]*** Brake cut motor [08:51:22]Read from MH i2c: 01 [08:51:22]MH_I2C_Read... [08:51:22]*** Stop cut motor [08:51:22]*** Cut end [08:51:22]Read from MH i2c: 01 07 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 07 00 9B A3 00 00 00 00 00 FF 0F 53 [08:51:22]process_action close_receipt done [08:51:22]requested_data is exist [08:51:22]produce_requested_data [08:51:22]requested_item fm.sn is exist - process it [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 11 00 00 [08:51:22]Write to MH i2c: E2 08 00 9C A3 80 11 00 00 00 00 00 00 B9 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 17 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 17 00 9C A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 15 [08:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [08:51:22]wFMCommunicate OK [08:51:22]requested_item fd.num is exist - process it [08:51:22]SAM_PROTO_GetFieldsCounters [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 13 00 00 [08:51:22]Write to MH i2c: E2 08 00 9D A3 80 13 00 00 00 00 00 00 BC [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 62 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 62 00 9D A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [08:51:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:22]wFMCommunicate OK [08:51:22]SAM_PROTO_GetFieldsCounters done [08:51:22]requested_item shift.num is exist - process it [08:51:22]requested_item shift.opened is exist - process it [08:51:22]req_shift_opened [08:51:22]FM_GetShiftState [08:51:22]SAM_PROTO_GetShiftState [08:51:22]wFMCommunicate request_size=4 [08:51:22]MH_SAM_APDU [08:51:22]CAPDU: 80 13 01 00 [08:51:22]Write to MH i2c: E2 08 00 9E A3 80 13 01 00 00 00 00 00 BE [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:22]Read from MH i2c: E2 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 0E 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: E2 0E 00 9E A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F7 [08:51:22]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [08:51:22]wFMCommunicate OK [08:51:22]SAM_PROTO_GetShiftState done [08:51:22]FM_GetShiftState done [08:51:22]req_shift_opened done [08:51:22]requested_item shift.open_date is exist - process it [08:51:22]req_shift_open_date [08:51:22]req_shift_open_date done [08:51:22]produce_requested_data done [08:51:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69865,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [08:51:22]process_action_free close_receipt [08:51:22]json_value_free [08:51:22]json_value_free done [08:51:22]process_json_proto returns [08:51:22]Send response to host [08:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69865,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [08:51:22]free response buf [08:51:22]execute_script done [08:51:22]execute_script returns [08:51:22]free content buf [08:51:22]Sock 9.Close socket [08:51:22]Sock 9.Thread stoped [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [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:11:51]ConnectInit Can't connect to host [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:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:30]accept exits with 7 [09:14:30]New connection [09:14:30]New thread 3067002212 created [09:14:30]Thread 3066858852 joined [09:14:30]Waiting for new connection... [09:14:30] Sock 7.Parse request [09:14:30]Sock 7.Check first char [09:14:30]Sock 7.First char is OK [09:14:30]request: POST /json_proto HTTP/1.0 [09:14:30]Method: POST [09:14:30]URL: /json_proto [09:14:30]Method is POST - this is cgi request [09:14:30]url: /json_proto [09:14:30]query_string will be loaded in cgi processing [09:14:30]execute_cgi json_proto POST (null) [09:14:30]execute_cgi path=json_proto method=POST [09:14:30]POST find Content-Length [09:14:30]Host: 172.17.49.132:8080 [09:14:30]Content-Length: 215 [09:14:30]Content-Type: application/json [09:14:30] [09:14:30]POST finish read [09:14:30]Found Content-Length = 215 [09:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:30]execute_script... [09:14:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:30]POST & json_proto [09:14:30]process_json_proto [09:14:30]json parsed OK: [09:14:30]protocol is kg_v1.0 [09:14:30]action value=get_value [09:14:30]process_action get_value [09:14:30]cmd_get_value [09:14:30]process_action get_value done [09:14:30]requested_data is exist [09:14:30]produce_requested_data [09:14:30]requested_item kkm.sn is exist - process it [09:14:30]requested_item kkm.ver is exist - process it [09:14:30]requested_item fm.sn is exist - process it [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 11 00 00 [09:14:30]Write to MH i2c: E2 08 00 9F A3 80 11 00 00 00 00 00 00 BC [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 17 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 17 00 9F A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 18 [09:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:14:30]wFMCommunicate OK [09:14:30]requested_item fd.num is exist - process it [09:14:30]SAM_PROTO_GetFieldsCounters [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 13 00 00 [09:14:30]Write to MH i2c: E2 08 00 A0 A3 80 13 00 00 00 00 00 00 BF [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 62 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 62 00 A0 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [09:14:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:30]wFMCommunicate OK [09:14:30]SAM_PROTO_GetFieldsCounters done [09:14:30]requested_item shift.num is exist - process it [09:14:30]requested_item shift.opened is exist - process it [09:14:30]req_shift_opened [09:14:30]FM_GetShiftState [09:14:30]SAM_PROTO_GetShiftState [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 13 01 00 [09:14:30]Write to MH i2c: E2 08 00 A1 A3 80 13 01 00 00 00 00 00 C1 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 0E 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 0E 00 A1 A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 FA [09:14:30]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:14:30]wFMCommunicate OK [09:14:30]SAM_PROTO_GetShiftState done [09:14:30]FM_GetShiftState done [09:14:30]req_shift_opened done [09:14:30]requested_item shift.open_date is exist - process it [09:14:30]req_shift_open_date [09:14:30]req_shift_open_date done [09:14:30]produce_requested_data done [09:14:30]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69865,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:14:30]process_action_free get_value [09:14:30]json_value_free [09:14:30]json_value_free done [09:14:30]process_json_proto returns [09:14:30]Send response to host [09:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69865,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:14:30]free response buf [09:14:30]execute_script done [09:14:30]execute_script returns [09:14:30]free content buf [09:14:30]Sock 7.Close socket [09:14:30]Sock 7.Thread stoped [09:14:30]accept exits with 10 [09:14:30]New connection [09:14:30]New thread 3066858852 created [09:14:30]Thread 3067002212 joined [09:14:30]Waiting for new connection... [09:14:30] Sock 10.Parse request [09:14:30]Sock 10.Check first char [09:14:30]Sock 10.First char is OK [09:14:30]request: POST /json_proto HTTP/1.0 [09:14:30]Method: POST [09:14:30]URL: /json_proto [09:14:30]Method is POST - this is cgi request [09:14:30]url: /json_proto [09:14:30]query_string will be loaded in cgi processing [09:14:30]execute_cgi json_proto POST (null) [09:14:30]execute_cgi path=json_proto method=POST [09:14:30]POST find Content-Length [09:14:30]Host: 172.17.49.132:8080 [09:14:30]Content-Length: 331 [09:14:30]Content-Type: application/json [09:14:30] [09:14:30]POST finish read [09:14:30]Found Content-Length = 331 [09:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:14:30]execute_script... [09:14:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:14:31]POST & json_proto [09:14:31]process_json_proto [09:14:31]json parsed OK: [09:14:31]protocol is kg_v1.0 [09:14:31]action value=get_value [09:14:31]process_action get_value [09:14:31]cmd_get_value [09:14:31]process_action get_value done [09:14:31]requested_data is exist [09:14:31]produce_requested_data [09:14:31]requested_item fm.sale.total is exist - process it [09:14:31]SAM_PROTO_GetFMData [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 13 03 00 [09:14:31]Write to MH i2c: E2 08 00 A2 A3 80 13 03 00 00 00 00 00 C4 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 FD 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 FD 00 A2 A3 00 C5 04 85 04 C1 04 6E 04 04 00 87 0D 01 00 69 04 A1 00 6F 04 04 00 44 0C 01 00 B1 04 04 00 29 43 A0 BC 70 04 04 00 54 A5 B3 98 72 04 04 00 D5 9D EC 23 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 31 6F 08 14 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 BB 3A AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 A8 [09:14:31]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 0D 01 00 69 04 A1 00 6F 04 04 00 44 0C 01 00 B1 04 04 00 29 43 A0 BC 70 04 04 00 54 A5 B3 98 72 04 04 00 D5 9D EC 23 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 31 6F 08 14 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 BB 3A AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 17 00 00 [09:14:31]Write to MH i2c: E2 08 00 A3 A3 80 17 00 00 00 00 00 00 C6 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 FD 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 FD 00 A3 A3 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B6 [09:14:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 17 00 00 [09:14:31]Write to MH i2c: E2 08 00 A4 A3 80 17 00 00 00 00 00 00 C7 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 FD 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 FD 00 A4 A3 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 D9 [09:14:32]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 [09:14:32]wFMCommunicate OK [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 17 00 00 [09:14:32]Write to MH i2c: E2 08 00 A5 A3 80 17 00 00 00 00 00 00 C8 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 FD 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 FD 00 A5 A3 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 54 [09:14:32]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 [09:14:32]wFMCommunicate OK [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 17 00 00 [09:14:32]Write to MH i2c: E2 08 00 A6 A3 80 17 00 00 00 00 00 00 C9 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]OFD Sender: No OFD packet to send [09:14:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:14:32]Read from MH i2c: E2 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 E2 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: E2 E2 00 A6 A3 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 [09:14:32]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 [09:14:32]wFMCommunicate OK [09:14:32]SAM_PROTO_GetFMData done [09:14:32]requested_item fm.sale_refund.total is exist - process it [09:14:32]requested_item fm.buy.total is exist - process it [09:14:32]requested_item shift.sale.total is exist - process it [09:14:32]SAM_PROTO_GetShiftData [09:14:32]wFMCommunicate request_size=4 [09:14:32]MH_SAM_APDU [09:14:32]CAPDU: 80 13 02 00 [09:14:32]Write to MH i2c: E2 08 00 A7 A3 80 13 02 00 00 00 00 00 C8 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 FD 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 FD 00 A7 A3 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 98 B4 0D 70 04 03 00 F0 52 0D 72 04 02 00 A8 61 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 94 74 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 08 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 A1 [09:14:33]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 98 B4 0D 70 04 03 00 F0 52 0D 72 04 02 00 A8 61 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 94 74 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 08 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:14:33]wFMCommunicate OK [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 17 00 00 [09:14:33]Write to MH i2c: E2 08 00 A8 A3 80 17 00 00 00 00 00 00 CB [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 FD 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 FD 00 A8 A3 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 DD [09:14:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [09:14:33]wFMCommunicate OK [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 17 00 00 [09:14:33]Write to MH i2c: E2 08 00 A9 A3 80 17 00 00 00 00 00 00 CC [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 FD 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 FD 00 A9 A3 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 90 [09:14:33]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [09:14:33]wFMCommunicate OK [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 17 00 00 [09:14:33]Write to MH i2c: E2 08 00 AA A3 80 17 00 00 00 00 00 00 CD [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 FD 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 FD 00 AA A3 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 42 [09:14:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [09:14:34]wFMCommunicate OK [09:14:34]wFMCommunicate request_size=4 [09:14:34]MH_SAM_APDU [09:14:34]CAPDU: 80 17 00 00 [09:14:34]Write to MH i2c: E2 08 00 AB A3 80 17 00 00 00 00 00 00 CE [09:14:34]Write i2c OK [09:14:34]MH_I2C_Read... [09:14:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:14:34]Read from MH i2c: E2 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 CA 00 [09:14:34]MH_I2C_Read... [09:14:34]Read from MH i2c: E2 CA 00 AB A3 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B3 [09:14:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:14:34]wFMCommunicate OK [09:14:34]SAM_PROTO_GetShiftData done [09:14:34]requested_item shift.sale.total_cash is exist - process it [09:14:34]requested_item shift.sale_refund.total is exist - process it [09:14:34]requested_item shift.sale_refund.total_cash is exist - process it [09:14:34]requested_item shift.buy.total is exist - process it [09:14:34]requested_item shift.buy.total_cash is exist - process it [09:14:34]produce_requested_data done [09:14:34]produce_requested_data return {"fm.sale.total":31646195.61,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":8982.00,"shift.sale.total_cash":8732.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:14:34]process_action_free get_value [09:14:34]json_value_free [09:14:34]json_value_free done [09:14:34]process_json_proto returns [09:14:34]Send response to host [09:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31646195.61,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":8982.00,"shift.sale.total_cash":8732.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:14:34]free response buf [09:14:34]execute_script done [09:14:34]execute_script returns [09:14:34]free content buf [09:14:34]Sock 10.Close socket [09:14:34]Sock 10.Thread stoped [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:03]accept exits with 7 [09:15:03]New connection [09:15:03]New thread 3067002212 created [09:15:03]Thread 3066858852 joined [09:15:03]Waiting for new connection... [09:15:03] Sock 7.Parse request [09:15:03]Sock 7.Check first char [09:15:03]Sock 7.First char is OK [09:15:03]request: POST /json_proto HTTP/1.0 [09:15:03]Method: POST [09:15:03]URL: /json_proto [09:15:03]Method is POST - this is cgi request [09:15:03]url: /json_proto [09:15:03]query_string will be loaded in cgi processing [09:15:03]execute_cgi json_proto POST (null) [09:15:03]execute_cgi path=json_proto method=POST [09:15:03]POST find Content-Length [09:15:03]Host: 172.17.49.132:8080 [09:15:03]Content-Length: 215 [09:15:03]Content-Type: application/json [09:15:03] [09:15:03]POST finish read [09:15:03]Found Content-Length = 215 [09:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:03]execute_script... [09:15:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:03]POST & json_proto [09:15:03]process_json_proto [09:15:03]json parsed OK: [09:15:03]protocol is kg_v1.0 [09:15:03]action value=get_value [09:15:03]process_action get_value [09:15:03]cmd_get_value [09:15:03]process_action get_value done [09:15:03]requested_data is exist [09:15:03]produce_requested_data [09:15:03]requested_item kkm.sn is exist - process it [09:15:03]requested_item kkm.ver is exist - process it [09:15:03]requested_item fm.sn is exist - process it [09:15:03]wFMCommunicate request_size=4 [09:15:03]MH_SAM_APDU [09:15:03]CAPDU: 80 11 00 00 [09:15:03]Write to MH i2c: E2 08 00 AC A3 80 11 00 00 00 00 00 00 C9 [09:15:03]Write i2c OK [09:15:03]MH_I2C_Read... [09:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:03]Read from MH i2c: E2 [09:15:03]MH_I2C_Read... [09:15:03]Read from MH i2c: E2 17 00 [09:15:03]MH_I2C_Read... [09:15:03]Read from MH i2c: E2 17 00 AC A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 25 [09:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:15:03]wFMCommunicate OK [09:15:03]requested_item fd.num is exist - process it [09:15:03]SAM_PROTO_GetFieldsCounters [09:15:03]wFMCommunicate request_size=4 [09:15:03]MH_SAM_APDU [09:15:03]CAPDU: 80 13 00 00 [09:15:03]Write to MH i2c: E2 08 00 AD A3 80 13 00 00 00 00 00 00 CC [09:15:03]Write i2c OK [09:15:03]MH_I2C_Read... [09:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:03]Read from MH i2c: E2 [09:15:03]MH_I2C_Read... [09:15:03]Read from MH i2c: E2 62 00 [09:15:03]MH_I2C_Read... [09:15:03]Read from MH i2c: E2 62 00 AD A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [09:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 E9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:03]wFMCommunicate OK [09:15:03]SAM_PROTO_GetFieldsCounters done [09:15:03]requested_item shift.num is exist - process it [09:15:03]requested_item shift.opened is exist - process it [09:15:03]req_shift_opened [09:15:03]FM_GetShiftState [09:15:03]SAM_PROTO_GetShiftState [09:15:03]wFMCommunicate request_size=4 [09:15:03]MH_SAM_APDU [09:15:03]CAPDU: 80 13 01 00 [09:15:03]Write to MH i2c: E2 08 00 AE A3 80 13 01 00 00 00 00 00 CE [09:15:03]Write i2c OK [09:15:03]MH_I2C_Read... [09:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:03]Read from MH i2c: E2 [09:15:03]MH_I2C_Read... [09:15:03]Read from MH i2c: E2 0E 00 [09:15:03]MH_I2C_Read... [09:15:03]Read from MH i2c: E2 0E 00 AE A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 07 [09:15:03]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:15:03]wFMCommunicate OK [09:15:03]SAM_PROTO_GetShiftState done [09:15:03]FM_GetShiftState done [09:15:03]req_shift_opened done [09:15:03]requested_item shift.open_date is exist - process it [09:15:03]req_shift_open_date [09:15:03]req_shift_open_date done [09:15:03]produce_requested_data done [09:15:03]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69865,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:15:03]process_action_free get_value [09:15:03]json_value_free [09:15:03]json_value_free done [09:15:03]process_json_proto returns [09:15:03]Send response to host [09:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69865,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:15:03]free response buf [09:15:03]execute_script done [09:15:03]execute_script returns [09:15:03]free content buf [09:15:03]Sock 7.Close socket [09:15:03]Sock 7.Thread stoped [09:15:03]accept exits with 9 [09:15:03]New connection [09:15:03]New thread 3066858852 created [09:15:03]Thread 3067002212 joined [09:15:03]Waiting for new connection... [09:15:03] Sock 9.Parse request [09:15:03]Sock 9.Check first char [09:15:03]Sock 9.First char is OK [09:15:03]request: POST /json_proto HTTP/1.0 [09:15:03]Method: POST [09:15:03]URL: /json_proto [09:15:03]Method is POST - this is cgi request [09:15:03]url: /json_proto [09:15:03]query_string will be loaded in cgi processing [09:15:03]execute_cgi json_proto POST (null) [09:15:03]execute_cgi path=json_proto method=POST [09:15:03]POST find Content-Length [09:15:03]Host: 172.17.49.132:8080 [09:15:03]Content-Length: 331 [09:15:03]Content-Type: application/json [09:15:03] [09:15:03]POST finish read [09:15:03]Found Content-Length = 331 [09:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:15:03]execute_script... [09:15:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:15:03]POST & json_proto [09:15:03]process_json_proto [09:15:03]json parsed OK: [09:15:03]protocol is kg_v1.0 [09:15:03]action value=get_value [09:15:03]process_action get_value [09:15:03]cmd_get_value [09:15:03]process_action get_value done [09:15:03]requested_data is exist [09:15:03]produce_requested_data [09:15:03]requested_item fm.sale.total is exist - process it [09:15:03]SAM_PROTO_GetFMData [09:15:03]wFMCommunicate request_size=4 [09:15:03]MH_SAM_APDU [09:15:03]CAPDU: 80 13 03 00 [09:15:03]Write to MH i2c: E2 08 00 AF A3 80 13 03 00 00 00 00 00 D1 [09:15:03]Write i2c OK [09:15:03]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 FD 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 FD 00 AF A3 00 C5 04 85 04 C1 04 6E 04 04 00 87 0D 01 00 69 04 A1 00 6F 04 04 00 44 0C 01 00 B1 04 04 00 29 43 A0 BC 70 04 04 00 54 A5 B3 98 72 04 04 00 D5 9D EC 23 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 31 6F 08 14 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 BB 3A AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 B5 [09:15:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 87 0D 01 00 69 04 A1 00 6F 04 04 00 44 0C 01 00 B1 04 04 00 29 43 A0 BC 70 04 04 00 54 A5 B3 98 72 04 04 00 D5 9D EC 23 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 31 6F 08 14 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 BB 3A AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [09:15:04]wFMCommunicate OK [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 17 00 00 [09:15:04]Write to MH i2c: E2 08 00 B0 A3 80 17 00 00 00 00 00 00 D3 [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 FD 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 FD 00 B0 A3 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C3 [09:15:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [09:15:04]wFMCommunicate OK [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 17 00 00 [09:15:04]Write to MH i2c: E2 08 00 B1 A3 80 17 00 00 00 00 00 00 D4 [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 FD 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 FD 00 B1 A3 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 E6 [09:15:04]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 [09:15:04]wFMCommunicate OK [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 17 00 00 [09:15:04]Write to MH i2c: E2 08 00 B2 A3 80 17 00 00 00 00 00 00 D5 [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 FD 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 FD 00 B2 A3 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 61 [09:15:05]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 [09:15:05]wFMCommunicate OK [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 17 00 00 [09:15:05]Write to MH i2c: E2 08 00 B3 A3 80 17 00 00 00 00 00 00 D6 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 E2 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 E2 00 B3 A3 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [09:15:05]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 [09:15:05]wFMCommunicate OK [09:15:05]SAM_PROTO_GetFMData done [09:15:05]requested_item fm.sale_refund.total is exist - process it [09:15:05]requested_item fm.buy.total is exist - process it [09:15:05]requested_item shift.sale.total is exist - process it [09:15:05]SAM_PROTO_GetShiftData [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 13 02 00 [09:15:05]Write to MH i2c: E2 08 00 B4 A3 80 13 02 00 00 00 00 00 D5 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:15:05]Read from MH i2c: E2 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 FD 00 [09:15:05]MH_I2C_Read... [09:15:05]Read from MH i2c: E2 FD 00 B4 A3 00 AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 98 B4 0D 70 04 03 00 F0 52 0D 72 04 02 00 A8 61 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 94 74 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 08 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 AE [09:15:05]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 1C 00 00 00 69 04 9A 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 98 B4 0D 70 04 03 00 F0 52 0D 72 04 02 00 A8 61 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 94 74 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 08 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [09:15:05]wFMCommunicate OK [09:15:05]wFMCommunicate request_size=4 [09:15:05]MH_SAM_APDU [09:15:05]CAPDU: 80 17 00 00 [09:15:05]Write to MH i2c: E2 08 00 B5 A3 80 17 00 00 00 00 00 00 D8 [09:15:05]Write i2c OK [09:15:05]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 FD 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 FD 00 B5 A3 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 EA [09:15:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 90 00 [09:15:06]wFMCommunicate OK [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 17 00 00 [09:15:06]Write to MH i2c: E2 08 00 B6 A3 80 17 00 00 00 00 00 00 D9 [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 FD 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 FD 00 B6 A3 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 9D [09:15:06]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 90 00 [09:15:06]wFMCommunicate OK [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 17 00 00 [09:15:06]Write to MH i2c: E2 08 00 B7 A3 80 17 00 00 00 00 00 00 DA [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 FD 00 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 FD 00 B7 A3 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 4F [09:15:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [09:15:06]wFMCommunicate OK [09:15:06]wFMCommunicate request_size=4 [09:15:06]MH_SAM_APDU [09:15:06]CAPDU: 80 17 00 00 [09:15:06]Write to MH i2c: E2 08 00 B8 A3 80 17 00 00 00 00 00 00 DB [09:15:06]Write i2c OK [09:15:06]MH_I2C_Read... [09:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [09:15:06]Read from MH i2c: E2 [09:15:06]MH_I2C_Read... [09:15:06]Read from MH i2c: E2 CA 00 [09:15:06]MH_I2C_Read... [09:15:07]Read from MH i2c: E2 CA 00 B8 A3 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C0 [09:15:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:15:07]wFMCommunicate OK [09:15:07]SAM_PROTO_GetShiftData done [09:15:07]requested_item shift.sale.total_cash is exist - process it [09:15:07]requested_item shift.sale_refund.total is exist - process it [09:15:07]requested_item shift.sale_refund.total_cash is exist - process it [09:15:07]requested_item shift.buy.total is exist - process it [09:15:07]requested_item shift.buy.total_cash is exist - process it [09:15:07]produce_requested_data done [09:15:07]produce_requested_data return {"fm.sale.total":31646195.61,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":8982.00,"shift.sale.total_cash":8732.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:15:07]process_action_free get_value [09:15:07]json_value_free [09:15:07]json_value_free done [09:15:07]process_json_proto returns [09:15:07]Send response to host [09:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31646195.61,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":8982.00,"shift.sale.total_cash":8732.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:15:07]free response buf [09:15:07]execute_script done [09:15:07]execute_script returns [09:15:07]free content buf [09:15:07]Sock 9.Close socket [09:15:07]Sock 9.Thread stoped [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:16]accept exits with 7 [09:19:16]New connection [09:19:16]New thread 3067002212 created [09:19:16]Thread 3066858852 joined [09:19:16]Waiting for new connection... [09:19:16] Sock 7.Parse request [09:19:16]Sock 7.Check first char [09:19:16]Sock 7.First char is OK [09:19:16]request: POST /json_proto HTTP/1.0 [09:19:16]Method: POST [09:19:16]URL: /json_proto [09:19:16]Method is POST - this is cgi request [09:19:16]url: /json_proto [09:19:16]query_string will be loaded in cgi processing [09:19:16]execute_cgi json_proto POST (null) [09:19:16]execute_cgi path=json_proto method=POST [09:19:16]POST find Content-Length [09:19:16]Host: 172.17.49.132:8080 [09:19:16]Content-Length: 847 [09:19:16]Content-Type: application/json [09:19:16] [09:19:16]POST finish read [09:19:16]Found Content-Length = 847 [09:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137106", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:16]execute_script... [09:19:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137106", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:16]POST & json_proto [09:19:16]process_json_proto [09:19:16]json parsed OK: [09:19:16]protocol is kg_v1.0 [09:19:16]action value=close_receipt [09:19:16]process_action close_receipt [09:19:16]cmd_close_receipt [09:19:16]MH_GetDate [09:19:16]Write to MH i2c: F0 00 00 B9 A3 4B [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: F0 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: F0 09 00 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: F0 09 00 B9 A3 00 26 53 AB 66 E7 4B C0 64 34 [09:19:16]GetLastDocTimeStamp 1722502296 [09:19:16]current date 1722503974 [09:19:16]FM_GetShiftState [09:19:16]SAM_PROTO_GetShiftState [09:19:16]wFMCommunicate request_size=4 [09:19:16]MH_SAM_APDU [09:19:16]CAPDU: 80 13 01 00 [09:19:16]Write to MH i2c: E2 08 00 BA A3 80 13 01 00 00 00 00 00 DA [09:19:16]Write i2c OK [09:19:16]MH_I2C_Read... [09:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:16]Read from MH i2c: E2 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: E2 0E 00 [09:19:16]MH_I2C_Read... [09:19:16]Read from MH i2c: E2 0E 00 BA A3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 13 [09:19:16]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:19:16]wFMCommunicate OK [09:19:16]SAM_PROTO_GetShiftState done [09:19:16]FM_GetShiftState done [09:19:16]opened in 1722472772 [09:19:16]opened+sec_in_day 1722559172 [09:19:16]quantity*price = 13000 [09:19:16]sum+1 = 13001 [09:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 29 01.08.2024 09:19 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69866 ФПД: 158232008756062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T091934&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69866&fm=158232008756062&tin=02508201610067®Number=0000000000092638&sum=13000 0 [09:19:17]StoreToDocumentArchive [09:19:17]shift 433 fd 69866 [09:19:17]save to /storage/0433/doc_00069866 [09:19:17]save last doc name /storage/0433/doc_00069866 to /storage/kkm_last_doc_name [09:19:17]save OK [09:19:17]Clear old archive folders... [09:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:19:17]tlvbuf is 014F6940 [09:19:17]SAM_PROTO_ClearQueue [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 09 00 00 [09:19:17]Write to MH i2c: E2 08 00 C7 A3 80 09 00 00 00 00 00 00 DC [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:17]Read from MH i2c: E2 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 03 00 [09:19:17]MH_I2C_Read... [09:19:17]Read from MH i2c: E2 03 00 C7 A3 00 90 00 DE [09:19:17]RAPDU: 90 00 [09:19:17]wFMCommunicate OK [09:19:17]SAM_PROTO_ClearQueue done [09:19:17]KKMCreateOFDPacket [09:19:17]OFDProtocolAddRootSTLVToBuf [09:19:17]FM_MakeSignedData [09:19:17]FM_MakeSignedData [09:19:17]SAM_PROTO_SignData [09:19:17]wFMCommunicate request_size=4 [09:19:17]MH_SAM_APDU [09:19:17]CAPDU: 80 0D 01 02 [09:19:17]Write to MH i2c: E2 08 00 C8 A3 80 0D 01 02 00 00 00 00 E4 [09:19:17]Write i2c OK [09:19:17]MH_I2C_Read... [09:19:17]OFD Sender: No OFD packet to send [09:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 03 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 03 00 C8 A3 00 90 00 DF [09:19:18]RAPDU: 90 00 [09:19:18]wFMCommunicate OK [09:19:18]wFMCommunicate request_size=255 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 26 53 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 [09:19:18]Write to MH i2c: E2 02 01 C9 A3 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 26 53 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 00 00 4F [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 03 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 03 00 C9 A3 00 90 00 E0 [09:19:18]RAPDU: 90 00 [09:19:18]wFMCommunicate OK [09:19:18]wFMCommunicate request_size=41 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EA 10 01 00 35 04 06 00 8F E9 42 AC 8B 5E [09:19:18]Write to MH i2c: E2 2C 00 CA A3 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EA 10 01 00 35 04 06 00 8F E9 42 AC 8B 5E 00 00 09 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 03 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 03 00 CA A3 00 90 00 E1 [09:19:18]RAPDU: 90 00 [09:19:18]wFMCommunicate OK [09:19:18]wFMCommunicate request_size=4 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 0D 03 02 [09:19:18]Write to MH i2c: E2 08 00 CB A3 80 0D 03 02 00 00 00 00 E9 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 0B 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 0B 00 CB A3 00 B8 FB 56 48 B3 6B 08 C1 90 00 22 [09:19:18]RAPDU: B8 FB 56 48 B3 6B 08 C1 90 00 [09:19:18]wFMCommunicate OK [09:19:18]SAM_PROTO_SignData done [09:19:18]FM_MakeSignedData done [09:19:18]CreateOFDProtocolMessage [09:19:18]wFMCommunicate request_size=4 [09:19:18]MH_SAM_APDU [09:19:18]CAPDU: 80 11 00 00 [09:19:18]Write to MH i2c: E2 08 00 CC A3 80 11 00 00 00 00 00 00 E9 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:18]Read from MH i2c: E2 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 17 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: E2 17 00 CC A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 45 [09:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:19:18]wFMCommunicate OK [09:19:18]CreateOFDProtocolMessage done [09:19:18]OFDSenderStorePacket 69866 [09:19:18]StoreOFDPacket docnum=69866 [09:19:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 82 14 26 01 3D 61 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 26 53 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EA 10 01 00 35 04 06 00 8F E9 42 AC 8B 5E B8 FB 56 48 B3 6B 08 C1 [09:19:18]CheckFolder [09:19:18]dirname=/storage/ofd_packets [09:19:18]CheckFolder done [09:19:18]ProducePacketName [09:19:18]name=ofd_packets/00069866 [09:19:18]NVStorageSaveData ofd_packets/00069866 [09:19:18]File name is /storage/ofd_packets/00069866 [09:19:18]Write 332 bytes [09:19:18]NVStorageSaveData done [09:19:18]OFDSenderStorePacket done [09:19:18]KKMCreateOFDPacket done [09:19:18]NVStorageSaveData kkm_last_timestamp [09:19:18]File name is /storage/kkm_last_timestamp [09:19:18]Write 4 bytes [09:19:18]NVStorageSaveData done [09:19:18]ExternCall_PrintAddStr [09:19:18]wPrintStart [09:19:18]Write to MH i2c: 01 00 00 CD A3 70 [09:19:18]Write i2c OK [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 [09:19:18]MH_I2C_Read... [09:19:18]Read from MH i2c: 01 07 00 CD A3 00 00 00 00 00 FF 0F 85 [09:19:18]RasterBufferAndPrint [09:19:18]line Счет N : (3)137106 [09:19:18]line ИНН: 02508201610067 [09:19:18]line Контрольно-Кассовый Чек [09:19:18]line ПРОДАЖА [09:19:18]line Товар: 2000036220012 [09:19:18]line Кофе Капучино XL(GABB TRADE) [09:19:18]line 1.000 * 130.00 [09:19:18]line = 130.00 [09:19:18]line НДС 12% НСП 1% [09:19:18]line > о реализуемом товаре [09:19:18]line ИТОГО: 130.00 [09:19:18]line НСП 1% : 1.15 [09:19:18]line НДС 12% : 13.80 [09:19:18]line Наличными: 0.00 [09:19:18]line Безнал.: 130.00 [09:19:18]line Место: АЗС № 125 "Партнер Нефть" [09:19:18]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:19:18]line СНО: Общий режим [09:19:18]line Чек 29 01.08.2024 09:19 [09:19:18]line Смена: 433 ФФД: 1.0 [09:19:18]line ЗНМ: 0300000049 [09:19:18]line РНМ: 0000000000092638 [09:19:18]line Версия ККМ: 001 [09:19:18]line Платежная система: АКБ Кыргызстан [09:19:18]line ФМ: 0000000000874949 [09:19:18]line ФД: 69866 [09:19:18]line ФПД: 158232008756062 [09:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T091934&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69866&fm=158232008756062&tin=02508201610067®Number=0000000000092638&sum=13000 [09:19:18]OFD Sender: Processing packet 69866 [packets to send 19, broken 18] [09:19:18]ProducePacketName [09:19:18]name=ofd_packets/00069866 [09:19:18]OFD Sender: To server: pG, [09:19:18]CommunicateWithHost lk.salyk.kg:30040 [09:19:18]ConnectInit lk.salyk.kg [09:19:18]line 0 [09:19:18]written 0, free lines is 4095 [09:19:18]Connected sock=9 [09:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 82 14 26 01 3D 61 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 26 53 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EA 10 01 00 35 04 06 00 8F E9 42 AC 8B 5E B8 FB 56 48 B3 6B 08 C1 [09:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 2B E7 47 00 01 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EA 10 01 00 F4 03 04 00 88 F9 AA 66 B6 04 01 00 00 C4 54 68 30 21 7A BB 21 [09:19:19]CommunicateWithHost err = 0 [09:19:19]CheckOFDResponse [09:19:19]1017 (14) - 77093643461234 [09:19:19]1041 (16) - 0000000000874949 [09:19:19]1040 (4) - 69866 [09:19:19]1012 (4) - 01.08.2024 02:57 [09:19:19]1206 (1) - 0 [09:19:19]OFD Sender: Remove packet 69866 [09:19:19]ProducePacketName [09:19:19]name=ofd_packets/00069866 [09:19:19]NVStorageDeleteData [09:19:19]Write to MH i2c: 01 00 00 F8 A3 9B [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 07 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: 01 07 00 F8 A3 00 00 00 00 00 F8 0C A6 [09:19:19]RasterBufferAndPrint [09:19:19]line [09:19:19]line [09:19:19]line [09:19:19]line [09:19:19]line [09:19:19]written 0, free lines is 3329 [09:19:19]MH_Cut [09:19:19]Write to MH i2c: D1 01 00 FF A3 01 74 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: D1 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: D1 01 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: D1 01 00 FF A3 00 73 [09:19:19]Write to MH i2c: 01 00 00 00 A4 A4 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]OFD Sender: No OFD packet to send [09:19:19]*** Cut start [09:19:19]*** Partial cut [09:19:19]*** CUTSNS_PIN = 1 [09:19:20]*** CUTSNS_PIN = 0 [09:19:20]*** Brake cut motor [09:19:20]Read from MH i2c: 01 [09:19:20]MH_I2C_Read... [09:19:20]*** Stop cut motor [09:19:20]*** Cut end [09:19:20]Read from MH i2c: 01 07 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 00 A4 00 00 00 00 00 FF 0F B9 [09:19:20]process_action close_receipt done [09:19:20]requested_data is exist [09:19:20]produce_requested_data [09:19:20]requested_item fm.sn is exist - process it [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 11 00 00 [09:19:20]Write to MH i2c: E2 08 00 01 A4 80 11 00 00 00 00 00 00 1F [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 17 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 17 00 01 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7B [09:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:19:20]wFMCommunicate OK [09:19:20]requested_item fd.num is exist - process it [09:19:20]SAM_PROTO_GetFieldsCounters [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 13 00 00 [09:19:20]Write to MH i2c: E2 08 00 02 A4 80 13 00 00 00 00 00 00 22 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 62 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 62 00 02 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:20]wFMCommunicate OK [09:19:20]SAM_PROTO_GetFieldsCounters done [09:19:20]requested_item shift.num is exist - process it [09:19:20]requested_item shift.opened is exist - process it [09:19:20]req_shift_opened [09:19:20]FM_GetShiftState [09:19:20]SAM_PROTO_GetShiftState [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 13 01 00 [09:19:20]Write to MH i2c: E2 08 00 03 A4 80 13 01 00 00 00 00 00 24 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 0E 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 0E 00 03 A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 5D [09:19:20]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:19:20]wFMCommunicate OK [09:19:20]SAM_PROTO_GetShiftState done [09:19:20]FM_GetShiftState done [09:19:20]req_shift_opened done [09:19:20]requested_item shift.open_date is exist - process it [09:19:20]req_shift_open_date [09:19:20]req_shift_open_date done [09:19:20]produce_requested_data done [09:19:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:19:20]process_action_free close_receipt [09:19:20]json_value_free [09:19:20]json_value_free done [09:19:20]process_json_proto returns [09:19:20]Send response to host [09:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:19:20]free response buf [09:19:20]execute_script done [09:19:20]execute_script returns [09:19:20]free content buf [09:19:20]Sock 7.Close socket [09:19:20]Sock 7.Thread stoped [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:15]accept exits with 10 [09:21:15]New connection [09:21:15]New thread 3066858852 created [09:21:15]Thread 3067002212 joined [09:21:15]Waiting for new connection... [09:21:15] Sock 10.Parse request [09:21:15]Sock 10.Check first char [09:21:15]Sock 10.First char is OK [09:21:15]request: POST /json_proto HTTP/1.0 [09:21:15]Method: POST [09:21:15]URL: /json_proto [09:21:15]Method is POST - this is cgi request [09:21:15]url: /json_proto [09:21:15]query_string will be loaded in cgi processing [09:21:15]execute_cgi json_proto POST (null) [09:21:15]execute_cgi path=json_proto method=POST [09:21:15]POST find Content-Length [09:21:15]Host: 172.17.49.132:8080 [09:21:15]Content-Length: 1164 [09:21:15]Content-Type: application/json [09:21:15] [09:21:15]POST finish read [09:21:15]Found Content-Length = 1164 [09:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874535\u000A01.08.2024 08:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 57.120 x 75.20\u000A\u0418\u0422\u041E\u0413: 4295.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048062\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:15]execute_script... [09:21:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874535\u000A01.08.2024 08:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 1\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 57.120 x 75.20\u000A\u0418\u0422\u041E\u0413: 4295.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048062\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:15]POST & json_proto [09:21:15]process_json_proto [09:21:15]json parsed OK: [09:21:15]protocol is kg_v1.0 [09:21:15]action value=print_text [09:21:15]process_action print_text [09:21:15]cmd_print_text [09:21:15]ExternCall_PrintAddStr [09:21:15]wPrintStart [09:21:15]Write to MH i2c: 01 00 00 04 A4 A8 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 07 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 07 00 04 A4 00 00 00 00 00 FF 0F BD [09:21:15]RasterBufferAndPrint [09:21:15]line *****ТОВАРНЫЙ ЧЕК***** [09:21:15]line АЗС 125 [09:21:15]line Партнер нефть [09:21:15]line 02508201610067 [09:21:15]line Кассир : Мадаминова Б. [09:21:15]line Счет N : (1)874535 [09:21:15]line 01.08.2024 08:42 [09:21:15]line ПРОДАЖА [09:21:15]line ТРК (МРК, ГНК): 1 [09:21:15]line Вид ГСМ : 2710194210 [09:21:15]line ДТ-К-5 [09:21:15]line 57.120 x 75.20 [09:21:15]line ИТОГ: 4295.42 [09:21:15]line Тип оплаты: Талоны: ТК ГПНА Online [09:21:15]line 30048062 [09:21:15]line ______________________ [09:21:15]line (подпись) [09:21:15]written 0, free lines is 4095 [09:21:15]Write to MH i2c: 01 00 00 18 A4 BC [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 07 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 07 00 18 A4 00 00 00 00 00 10 0E E1 [09:21:15]RasterBufferAndPrint [09:21:15]line [09:21:15]line [09:21:15]line [09:21:15]line [09:21:15]line [09:21:15]written 0, free lines is 3601 [09:21:15]MH_Cut [09:21:15]Write to MH i2c: D1 01 00 1F A4 01 95 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: D1 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: D1 01 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: D1 01 00 1F A4 00 94 [09:21:15]Write to MH i2c: 01 00 00 20 A4 C4 [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:15]*** Cut start [09:21:15]*** Partial cut [09:21:15]*** CUTSNS_PIN = 1 [09:21:15]*** CUTSNS_PIN = 0 [09:21:16]*** Brake cut motor [09:21:16]Read from MH i2c: 01 [09:21:16]MH_I2C_Read... [09:21:16]*** Stop cut motor [09:21:16]*** Cut end [09:21:16]Read from MH i2c: 01 07 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: 01 07 00 20 A4 00 00 00 00 00 FF 0F D9 [09:21:16]process_action print_text done [09:21:16]requested_data is exist [09:21:16]produce_requested_data [09:21:16]requested_item fm.sn is exist - process it [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 11 00 00 [09:21:16]Write to MH i2c: E2 08 00 21 A4 80 11 00 00 00 00 00 00 3F [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 17 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 17 00 21 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9B [09:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:21:16]wFMCommunicate OK [09:21:16]requested_item fd.num is exist - process it [09:21:16]SAM_PROTO_GetFieldsCounters [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 13 00 00 [09:21:16]Write to MH i2c: E2 08 00 22 A4 80 13 00 00 00 00 00 00 42 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 62 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 62 00 22 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [09: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetFieldsCounters done [09:21:16]requested_item shift.num is exist - process it [09:21:16]requested_item shift.opened is exist - process it [09:21:16]req_shift_opened [09:21:16]FM_GetShiftState [09:21:16]SAM_PROTO_GetShiftState [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 13 01 00 [09:21:16]Write to MH i2c: E2 08 00 23 A4 80 13 01 00 00 00 00 00 44 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0E 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0E 00 23 A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 7D [09:21:16]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetShiftState done [09:21:16]FM_GetShiftState done [09:21:16]req_shift_opened done [09:21:16]requested_item shift.open_date is exist - process it [09:21:16]req_shift_open_date [09:21:16]req_shift_open_date done [09:21:16]produce_requested_data done [09:21:16]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:21:16]process_action_free print_text [09:21:16]json_value_free [09:21:16]json_value_free done [09:21:16]process_json_proto returns [09:21:16]Send response to host [09:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:21:16]free response buf [09:21:16]execute_script done [09:21:16]execute_script returns [09:21:16]free content buf [09:21:16]Sock 10.Close socket [09:21:16]Sock 10.Thread stoped [09:21:17]accept exits with 7 [09:21:17]New connection [09:21:17]New thread 3067002212 created [09:21:17]Thread 3066858852 joined [09:21:17]Waiting for new connection... [09:21:17] Sock 7.Parse request [09:21:17]Sock 7.Check first char [09:21:17]Sock 7.First char is OK [09:21:17]request: POST /json_proto HTTP/1.0 [09:21:17]Method: POST [09:21:17]URL: /json_proto [09:21:17]Method is POST - this is cgi request [09:21:17]url: /json_proto [09:21:17]query_string will be loaded in cgi processing [09:21:17]execute_cgi json_proto POST (null) [09:21:17]execute_cgi path=json_proto method=POST [09:21:17]POST find Content-Length [09:21:17]Host: 172.17.49.132:8080 [09:21:17]Content-Length: 1206 [09:21:17]Content-Type: application/json [09:21:17] [09:21:17]POST finish read [09:21:17]Found Content-Length = 1206 [09:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874537\u000A01.08.2024 08:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1966.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A52493\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:17]execute_script... [09:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874537\u000A01.08.2024 08:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 29.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1966.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A52493\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:17]POST & json_proto [09:21:17]process_json_proto [09:21:17]json parsed OK: [09:21:17]protocol is kg_v1.0 [09:21:17]action value=print_text [09:21:17]process_action print_text [09:21:17]cmd_print_text [09:21:17]ExternCall_PrintAddStr [09:21:17]wPrintStart [09:21:17]Write to MH i2c: 01 00 00 24 A4 C8 [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 24 A4 00 00 00 00 00 FF 0F DD [09:21:17]RasterBufferAndPrint [09:21:17]line *****ТОВАРНЫЙ ЧЕК***** [09:21:17]line АЗС 125 [09:21:17]line Партнер нефть [09:21:17]line 02508201610067 [09:21:17]line Кассир : Мадаминова Б. [09:21:17]line Счет N : (1)874537 [09:21:17]line 01.08.2024 08:42 [09:21:17]line ПРОДАЖА [09:21:17]line ТРК (МРК, ГНК): 32 [09:21:17]line Вид ГСМ : 2710124130 [09:21:17]line Аи-92-К-5 [09:21:17]line 29.000 x 67.80 [09:21:17]line ИТОГ: 1966.20 [09:21:17]line Тип оплаты: Талоны: Топливная Карта [09:21:17]line 52493 [09:21:17]line ______________________ [09:21:17]line (подпись) [09:21:17]written 0, free lines is 4095 [09:21:17]Write to MH i2c: 01 00 00 38 A4 DC [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: 01 07 00 38 A4 00 00 00 00 00 13 0E 04 [09:21:17]RasterBufferAndPrint [09:21:17]line [09:21:17]line [09:21:17]line [09:21:17]line [09:21:17]line [09:21:17]written 0, free lines is 3605 [09:21:17]MH_Cut [09:21:17]Write to MH i2c: D1 01 00 3F A4 01 B5 [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: D1 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: D1 01 00 [09:21:17]MH_I2C_Read... [09:21:17]Read from MH i2c: D1 01 00 3F A4 00 B4 [09:21:17]Write to MH i2c: 01 00 00 40 A4 E4 [09:21:17]Write i2c OK [09:21:17]MH_I2C_Read... [09:21:17]*** Cut start [09:21:17]*** Partial cut [09:21:17]*** CUTSNS_PIN = 1 [09:21:17]*** CUTSNS_PIN = 0 [09:21:18]*** Brake cut motor [09:21:18]Read from MH i2c: 01 [09:21:18]MH_I2C_Read... [09:21:18]*** Stop cut motor [09:21:18]*** Cut end [09:21:18]Read from MH i2c: 01 07 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: 01 07 00 40 A4 00 00 00 00 00 FF 0F F9 [09:21:18]process_action print_text done [09:21:18]requested_data is exist [09:21:18]produce_requested_data [09:21:18]requested_item fm.sn is exist - process it [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 11 00 00 [09:21:18]Write to MH i2c: E2 08 00 41 A4 80 11 00 00 00 00 00 00 5F [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 17 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 17 00 41 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BB [09:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:21:18]wFMCommunicate OK [09:21:18]requested_item fd.num is exist - process it [09:21:18]SAM_PROTO_GetFieldsCounters [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 13 00 00 [09:21:18]Write to MH i2c: E2 08 00 42 A4 80 13 00 00 00 00 00 00 62 [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 62 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 62 00 42 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:18]wFMCommunicate OK [09:21:18]SAM_PROTO_GetFieldsCounters done [09:21:18]requested_item shift.num is exist - process it [09:21:18]requested_item shift.opened is exist - process it [09:21:18]req_shift_opened [09:21:18]FM_GetShiftState [09:21:18]SAM_PROTO_GetShiftState [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 13 01 00 [09:21:18]Write to MH i2c: E2 08 00 43 A4 80 13 01 00 00 00 00 00 64 [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 0E 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 0E 00 43 A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 9D [09:21:18]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:21:18]wFMCommunicate OK [09:21:18]SAM_PROTO_GetShiftState done [09:21:18]FM_GetShiftState done [09:21:18]req_shift_opened done [09:21:18]requested_item shift.open_date is exist - process it [09:21:18]req_shift_open_date [09:21:18]req_shift_open_date done [09:21:18]produce_requested_data done [09:21:18]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:21:18]process_action_free print_text [09:21:18]json_value_free [09:21:18]json_value_free done [09:21:18]process_json_proto returns [09:21:18]Send response to host [09:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:21:18]free response buf [09:21:18]execute_script done [09:21:18]execute_script returns [09:21:18]free content buf [09:21:18]Sock 7.Close socket [09:21:18]Sock 7.Thread stoped [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:25]accept exits with 9 [09:21:25]New connection [09:21:25]New thread 3066858852 created [09:21:25]Thread 3067002212 joined [09:21:25]Waiting for new connection... [09:21:25] Sock 9.Parse request [09:21:25]Sock 9.Check first char [09:21:25]Sock 9.First char is OK [09:21:25]request: POST /json_proto HTTP/1.0 [09:21:25]Method: POST [09:21:25]URL: /json_proto [09:21:25]Method is POST - this is cgi request [09:21:25]url: /json_proto [09:21:25]query_string will be loaded in cgi processing [09:21:25]execute_cgi json_proto POST (null) [09:21:25]execute_cgi path=json_proto method=POST [09:21:25]POST find Content-Length [09:21:25]Host: 172.17.49.132:8080 [09:21:25]Content-Length: 1164 [09:21:25]Content-Type: application/json [09:21:25] [09:21:25]POST finish read [09:21:25]Found Content-Length = 1164 [09:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874536\u000A01.08.2024 08:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 70.000 x 75.20\u000A\u0418\u0422\u041E\u0413: 5264.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048062\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:25]execute_script... [09:21:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874536\u000A01.08.2024 08:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 2\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 70.000 x 75.20\u000A\u0418\u0422\u041E\u0413: 5264.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30048062\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:25]POST & json_proto [09:21:25]process_json_proto [09:21:25]json parsed OK: [09:21:25]protocol is kg_v1.0 [09:21:25]action value=print_text [09:21:25]process_action print_text [09:21:25]cmd_print_text [09:21:25]ExternCall_PrintAddStr [09:21:25]wPrintStart [09:21:25]Write to MH i2c: 01 00 00 44 A4 E8 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 44 A4 00 00 00 00 00 FF 0F FD [09:21:25]RasterBufferAndPrint [09:21:25]line *****ТОВАРНЫЙ ЧЕК***** [09:21:25]line АЗС 125 [09:21:25]line Партнер нефть [09:21:25]line 02508201610067 [09:21:25]line Кассир : Мадаминова Б. [09:21:25]line Счет N : (1)874536 [09:21:25]line 01.08.2024 08:42 [09:21:25]line ПРОДАЖА [09:21:25]line ТРК (МРК, ГНК): 2 [09:21:25]line Вид ГСМ : 2710194210 [09:21:25]line ДТ-К-5 [09:21:25]line 70.000 x 75.20 [09:21:25]line ИТОГ: 5264.00 [09:21:25]line Тип оплаты: Талоны: ТК ГПНА Online [09:21:25]line 30048062 [09:21:25]line ______________________ [09:21:25]line (подпись) [09:21:25]written 0, free lines is 4095 [09:21:25]Write to MH i2c: 01 00 00 58 A4 FC [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 58 A4 00 00 00 00 00 10 0E 21 [09:21:25]RasterBufferAndPrint [09:21:25]line [09:21:25]line [09:21:25]line [09:21:25]line [09:21:25]line [09:21:25]written 0, free lines is 3602 [09:21:25]MH_Cut [09:21:25]Write to MH i2c: D1 01 00 5F A4 01 D5 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: D1 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: D1 01 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: D1 01 00 5F A4 00 D4 [09:21:25]Write to MH i2c: 01 00 00 60 A4 04 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** Cut start [09:21:25]*** Partial cut [09:21:25]*** CUTSNS_PIN = 1 [09:21:25]*** CUTSNS_PIN = 0 [09:21:26]*** Brake cut motor [09:21:26]Read from MH i2c: 01 [09:21:26]MH_I2C_Read... [09:21:26]*** Stop cut motor [09:21:26]*** Cut end [09:21:26]Read from MH i2c: 01 07 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: 01 07 00 60 A4 00 00 00 00 00 FF 0F 19 [09:21:26]process_action print_text done [09:21:26]requested_data is exist [09:21:26]produce_requested_data [09:21:26]requested_item fm.sn is exist - process it [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 11 00 00 [09:21:26]Write to MH i2c: E2 08 00 61 A4 80 11 00 00 00 00 00 00 7F [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 17 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 17 00 61 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DB [09:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:21:26]wFMCommunicate OK [09:21:26]requested_item fd.num is exist - process it [09:21:26]SAM_PROTO_GetFieldsCounters [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 13 00 00 [09:21:26]Write to MH i2c: E2 08 00 62 A4 80 13 00 00 00 00 00 00 82 [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 62 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 62 00 62 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [09:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:26]wFMCommunicate OK [09:21:26]SAM_PROTO_GetFieldsCounters done [09:21:26]requested_item shift.num is exist - process it [09:21:26]requested_item shift.opened is exist - process it [09:21:26]req_shift_opened [09:21:26]FM_GetShiftState [09:21:26]SAM_PROTO_GetShiftState [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 13 01 00 [09:21:26]Write to MH i2c: E2 08 00 63 A4 80 13 01 00 00 00 00 00 84 [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 0E 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 0E 00 63 A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BD [09:21:26]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:21:26]wFMCommunicate OK [09:21:26]SAM_PROTO_GetShiftState done [09:21:26]FM_GetShiftState done [09:21:26]req_shift_opened done [09:21:26]requested_item shift.open_date is exist - process it [09:21:26]req_shift_open_date [09:21:26]req_shift_open_date done [09:21:26]produce_requested_data done [09:21:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:21:26]process_action_free print_text [09:21:26]json_value_free [09:21:26]json_value_free done [09:21:26]process_json_proto returns [09:21:26]Send response to host [09:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69866,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:21:26]free response buf [09:21:26]execute_script done [09:21:26]execute_script returns [09:21:26]free content buf [09:21:26]Sock 9.Close socket [09:21:26]Sock 9.Thread stoped [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:23:12]ConnectInit Can't connect to host [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:25:59]accept exits with 7 [09:25:59]New connection [09:25:59]New thread 3067002212 created [09:25:59]Thread 3066858852 joined [09:25:59]Waiting for new connection... [09:25:59] Sock 7.Parse request [09:25:59]Sock 7.Check first char [09:25:59]Sock 7.First char is OK [09:25:59]request: POST /json_proto HTTP/1.0 [09:25:59]Method: POST [09:25:59]URL: /json_proto [09:25:59]Method is POST - this is cgi request [09:25:59]url: /json_proto [09:25:59]query_string will be loaded in cgi processing [09:25:59]execute_cgi json_proto POST (null) [09:25:59]execute_cgi path=json_proto method=POST [09:25:59]POST find Content-Length [09:25:59]Host: 172.17.49.132:8080 [09:25:59]Content-Length: 807 [09:25:59]Content-Type: application/json [09:25:59] [09:25:59]POST finish read [09:25:59]Found Content-Length = 807 [09:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137107", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:59]execute_script... [09:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137107", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:59]POST & json_proto [09:25:59]process_json_proto [09:25:59]json parsed OK: [09:25:59]protocol is kg_v1.0 [09:25:59]action value=close_receipt [09:25:59]process_action close_receipt [09:25:59]cmd_close_receipt [09:25:59]MH_GetDate [09:25:59]Write to MH i2c: F0 00 00 64 A4 F7 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: F0 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: F0 09 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: F0 09 00 64 A4 00 B9 54 AB 66 E7 4B C0 64 74 [09:25:59]GetLastDocTimeStamp 1722503974 [09:25:59]current date 1722504377 [09:25:59]FM_GetShiftState [09:25:59]SAM_PROTO_GetShiftState [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 13 01 00 [09:25:59]Write to MH i2c: E2 08 00 65 A4 80 13 01 00 00 00 00 00 86 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0E 00 65 A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BF [09:25:59]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_GetShiftState done [09:25:59]FM_GetShiftState done [09:25:59]opened in 1722472772 [09:25:59]opened+sec_in_day 1722559172 [09:25:59]quantity*price = 13000 [09:25:59]sum+1 = 13001 [09:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 30 01.08.2024 09:26 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874949 ФД: 69867 ФПД: 252241003805315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T092617&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69867&fm=252241003805315&tin=02508201610067®Number=0000000000092638&sum=13000 0 [09:26:00]StoreToDocumentArchive [09:26:00]shift 433 fd 69867 [09:26:00]save to /storage/0433/doc_00069867 [09:26:00]save last doc name /storage/0433/doc_00069867 to /storage/kkm_last_doc_name [09:26:00]save OK [09:26:00]Clear old archive folders... [09:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:26:00]tlvbuf is 01429E20 [09:26:00]SAM_PROTO_ClearQueue [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 09 00 00 [09:26:00]Write to MH i2c: E2 08 00 72 A4 80 09 00 00 00 00 00 00 88 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:00]Read from MH i2c: E2 03 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 72 A4 00 90 00 8A [09:26:00]RAPDU: 90 00 [09:26:00]wFMCommunicate OK [09:26:00]SAM_PROTO_ClearQueue done [09:26:00]KKMCreateOFDPacket [09:26:00]OFDProtocolAddRootSTLVToBuf [09:26:00]FM_MakeSignedData [09:26:00]FM_MakeSignedData [09:26:00]SAM_PROTO_SignData [09:26:00]wFMCommunicate request_size=4 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 0D 01 02 [09:26:00]Write to MH i2c: E2 08 00 73 A4 80 0D 01 02 00 00 00 00 90 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:00]Read from MH i2c: E2 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: E2 03 00 73 A4 00 90 00 8B [09:26:00]RAPDU: 90 00 [09:26:00]wFMCommunicate OK [09:26:00]wFMCommunicate request_size=255 [09:26:00]MH_SAM_APDU [09:26:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B9 54 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 [09:26:00]Write to MH i2c: E2 02 01 74 A4 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B9 54 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 00 00 90 [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 03 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 03 00 74 A4 00 90 00 8C [09:26:01]RAPDU: 90 00 [09:26:01]wFMCommunicate OK [09:26:01]wFMCommunicate request_size=41 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EB 10 01 00 35 04 06 00 E5 69 6F 6D FA 83 [09:26:01]Write to MH i2c: E2 2C 00 75 A4 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EB 10 01 00 35 04 06 00 E5 69 6F 6D FA 83 00 00 0E [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:01]Read from MH i2c: E2 03 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 03 00 75 A4 00 90 00 8D [09:26:01]RAPDU: 90 00 [09:26:01]wFMCommunicate OK [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 0D 03 02 [09:26:01]Write to MH i2c: E2 08 00 76 A4 80 0D 03 02 00 00 00 00 95 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 0B 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 0B 00 76 A4 00 B4 CF 85 31 E7 3F F9 A5 90 00 93 [09:26:01]RAPDU: B4 CF 85 31 E7 3F F9 A5 90 00 [09:26:01]wFMCommunicate OK [09:26:01]SAM_PROTO_SignData done [09:26:01]FM_MakeSignedData done [09:26:01]CreateOFDProtocolMessage [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 11 00 00 [09:26:01]Write to MH i2c: E2 08 00 77 A4 80 11 00 00 00 00 00 00 95 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 17 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 17 00 77 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F1 [09:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:26:01]wFMCommunicate OK [09:26:01]CreateOFDProtocolMessage done [09:26:01]OFDSenderStorePacket 69867 [09:26:01]StoreOFDPacket docnum=69867 [09:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 46 1F 26 01 11 73 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B9 54 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EB 10 01 00 35 04 06 00 E5 69 6F 6D FA 83 B4 CF 85 31 E7 3F F9 A5 [09:26:01]CheckFolder [09:26:01]dirname=/storage/ofd_packets [09:26:01]CheckFolder done [09:26:01]ProducePacketName [09:26:01]name=ofd_packets/00069867 [09:26:01]NVStorageSaveData ofd_packets/00069867 [09:26:01]File name is /storage/ofd_packets/00069867 [09:26:01]Write 332 bytes [09:26:01]NVStorageSaveData done [09:26:01]OFDSenderStorePacket done [09:26:01]KKMCreateOFDPacket done [09:26:01]NVStorageSaveData kkm_last_timestamp [09:26:01]File name is /storage/kkm_last_timestamp [09:26:01]Write 4 bytes [09:26:01]NVStorageSaveData done [09:26:01]ExternCall_PrintAddStr [09:26:01]wPrintStart [09:26:01]Write to MH i2c: 01 00 00 78 A4 1C [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 07 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 07 00 78 A4 00 00 00 00 00 FF 0F 31 [09:26:01]RasterBufferAndPrint [09:26:01]line Счет N : (3)137107 [09:26:01]line ИНН: 02508201610067 [09:26:01]line Контрольно-Кассовый Чек [09:26:01]line ПРОДАЖА [09:26:01]line Товар: 2000036220012 [09:26:01]line Кофе Капучино XL(GABB TRADE) [09:26:01]line 1.000 * 130.00 [09:26:01]line = 130.00 [09:26:01]line НДС 12% НСП 1% [09:26:01]line > о реализуемом товаре [09:26:01]line ИТОГО: 130.00 [09:26:01]line НСП 1% : 1.15 [09:26:01]line НДС 12% : 13.80 [09:26:01]line Наличными: 0.00 [09:26:01]line Безнал.: 130.00 [09:26:01]OFD Sender: Processing packet 69867 [packets to send 19, broken 18] [09:26:01]ProducePacketName [09:26:01]name=ofd_packets/00069867 [09:26:01]OFD Sender: To server: pG, [09:26:01]CommunicateWithHost lk.salyk.kg:30040 [09:26:01]ConnectInit lk.salyk.kg [09:26:01]line Место: АЗС № 125 "Партнер Нефть" [09:26:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:26:01]line СНО: Общий режим [09:26:01]line Чек 30 01.08.2024 09:26 [09:26:01]line Смена: 433 ФФД: 1.0 [09:26:01]line ЗНМ: 0300000049 [09:26:01]line РНМ: 0000000000092638 [09:26:01]line Версия ККМ: 001 [09:26:01]line Платежная система: O! деньги [09:26:01]line ФМ: 0000000000874949 [09:26:01]line ФД: 69867 [09:26:01]line ФПД: 252241003805315 [09:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T092617&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69867&fm=252241003805315&tin=02508201610067®Number=0000000000092638&sum=13000 [09:26:01]line 0 [09:26:01]Connected sock=10 [09:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 46 1F 26 01 11 73 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B9 54 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EB 10 01 00 35 04 06 00 E5 69 6F 6D FA 83 B4 CF 85 31 E7 3F F9 A5 [09:26:01]written 0, free lines is 4095 [09:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 BF 19 47 00 30 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EB 10 01 00 F4 03 04 00 1A FB AA 66 B6 04 01 00 00 C1 DD 6E 74 C1 F0 47 D6 [09:26:01]CommunicateWithHost err = 0 [09:26:01]CheckOFDResponse [09:26:01]1017 (14) - 77093643461234 [09:26:01]1041 (16) - 0000000000874949 [09:26:01]1040 (4) - 69867 [09:26:01]1012 (4) - 01.08.2024 03:03 [09:26:01]1206 (1) - 0 [09:26:01]OFD Sender: Remove packet 69867 [09:26:01]ProducePacketName [09:26:01]name=ofd_packets/00069867 [09:26:01]NVStorageDeleteData [09:26:02]Write to MH i2c: 01 00 00 A3 A4 47 [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: 01 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: 01 07 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: 01 07 00 A3 A4 00 00 00 00 00 EC 0C 46 [09:26:02]RasterBufferAndPrint [09:26:02]line [09:26:02]line [09:26:02]line [09:26:02]line [09:26:02]line [09:26:02]written 0, free lines is 3314 [09:26:02]MH_Cut [09:26:02]Write to MH i2c: D1 01 00 AA A4 01 20 [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: D1 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: D1 01 00 [09:26:02]MH_I2C_Read... [09:26:02]Read from MH i2c: D1 01 00 AA A4 00 1F [09:26:02]Write to MH i2c: 01 00 00 AB A4 4F [09:26:02]Write i2c OK [09:26:02]MH_I2C_Read... [09:26:02]OFD Sender: No OFD packet to send [09:26:02]*** Cut start [09:26:02]*** Partial cut [09:26:02]*** CUTSNS_PIN = 1 [09:26:02]*** CUTSNS_PIN = 0 [09:26:03]*** Brake cut motor [09:26:03]Read from MH i2c: 01 [09:26:03]MH_I2C_Read... [09:26:03]*** Stop cut motor [09:26:03]*** Cut end [09:26:03]Read from MH i2c: 01 07 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: 01 07 00 AB A4 00 00 00 00 00 FF 0F 64 [09:26:03]process_action close_receipt done [09:26:03]requested_data is exist [09:26:03]produce_requested_data [09:26:03]requested_item fm.sn is exist - process it [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 11 00 00 [09:26:03]Write to MH i2c: E2 08 00 AC A4 80 11 00 00 00 00 00 00 CA [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 17 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 17 00 AC A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 26 [09:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:26:03]wFMCommunicate OK [09:26:03]requested_item fd.num is exist - process it [09:26:03]SAM_PROTO_GetFieldsCounters [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 13 00 00 [09:26:03]Write to MH i2c: E2 08 00 AD A4 80 13 00 00 00 00 00 00 CD [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 62 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 62 00 AD A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EB 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EB 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_GetFieldsCounters done [09:26:03]requested_item shift.num is exist - process it [09:26:03]requested_item shift.opened is exist - process it [09:26:03]req_shift_opened [09:26:03]FM_GetShiftState [09:26:03]SAM_PROTO_GetShiftState [09:26:03]wFMCommunicate request_size=4 [09:26:03]MH_SAM_APDU [09:26:03]CAPDU: 80 13 01 00 [09:26:03]Write to MH i2c: E2 08 00 AE A4 80 13 01 00 00 00 00 00 CF [09:26:03]Write i2c OK [09:26:03]MH_I2C_Read... [09:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:03]Read from MH i2c: E2 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0E 00 [09:26:03]MH_I2C_Read... [09:26:03]Read from MH i2c: E2 0E 00 AE A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 08 [09:26:03]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:26:03]wFMCommunicate OK [09:26:03]SAM_PROTO_GetShiftState done [09:26:03]FM_GetShiftState done [09:26:03]req_shift_opened done [09:26:03]requested_item shift.open_date is exist - process it [09:26:03]req_shift_open_date [09:26:03]req_shift_open_date done [09:26:03]produce_requested_data done [09:26:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69867,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:26:03]process_action_free close_receipt [09:26:03]json_value_free [09:26:03]json_value_free done [09:26:03]process_json_proto returns [09:26:03]Send response to host [09:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69867,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:26:03]free response buf [09:26:03]execute_script done [09:26:03]execute_script returns [09:26:03]free content buf [09:26:03]Sock 7.Close socket [09:26:03]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:17]accept exits with 9 [09:40:17]New connection [09:40:17]New thread 3066858852 created [09:40:17]Thread 3067002212 joined [09:40:17]Waiting for new connection... [09:40:17] Sock 9.Parse request [09:40:17]Sock 9.Check first char [09:40:17]Sock 9.First char is OK [09:40:17]request: POST /json_proto HTTP/1.0 [09:40:17]Method: POST [09:40:17]URL: /json_proto [09:40:17]Method is POST - this is cgi request [09:40:17]url: /json_proto [09:40:17]query_string will be loaded in cgi processing [09:40:17]execute_cgi json_proto POST (null) [09:40:17]execute_cgi path=json_proto method=POST [09:40:17]POST find Content-Length [09:40:17]Host: 172.17.49.132:8080 [09:40:17]Content-Length: 1206 [09:40:17]Content-Type: application/json [09:40:17] [09:40:17]POST finish read [09:40:17]Found Content-Length = 1206 [09:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874558\u000A01.08.2024 09:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24201\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:17]execute_script... [09:40:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874558\u000A01.08.2024 09:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A24201\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:17]POST & json_proto [09:40:17]process_json_proto [09:40:17]json parsed OK: [09:40:17]protocol is kg_v1.0 [09:40:17]action value=print_text [09:40:17]process_action print_text [09:40:17]cmd_print_text [09:40:17]ExternCall_PrintAddStr [09:40:17]wPrintStart [09:40:17]Write to MH i2c: 01 00 00 AF A4 53 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 AF A4 00 00 00 00 00 FF 0F 68 [09:40:17]RasterBufferAndPrint [09:40:17]line *****ТОВАРНЫЙ ЧЕК***** [09:40:17]line АЗС 125 [09:40:17]line Партнер нефть [09:40:17]line 02508201610067 [09:40:17]line Кассир : Мадаминова Б. [09:40:17]line Счет N : (1)874558 [09:40:17]line 01.08.2024 09:01 [09:40:17]line ПРОДАЖА [09:40:17]line ТРК (МРК, ГНК): 42 [09:40:17]line Вид ГСМ : 2710124130 [09:40:17]line Аи-92-К-5 [09:40:17]line 25.000 x 67.80 [09:40:17]line ИТОГ: 1695.00 [09:40:17]line Тип оплаты: Талоны: Топливная Карта [09:40:17]line 24201 [09:40:17]line ______________________ [09:40:17]line (подпись) [09:40:17]written 0, free lines is 4095 [09:40:17]Write to MH i2c: 01 00 00 C3 A4 67 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: 01 07 00 C3 A4 00 00 00 00 00 11 0E 8D [09:40:17]RasterBufferAndPrint [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]line [09:40:17]written 0, free lines is 3602 [09:40:17]MH_Cut [09:40:17]Write to MH i2c: D1 01 00 CA A4 01 40 [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 [09:40:17]MH_I2C_Read... [09:40:17]Read from MH i2c: D1 01 00 CA A4 00 3F [09:40:17]Write to MH i2c: 01 00 00 CB A4 6F [09:40:17]Write i2c OK [09:40:17]MH_I2C_Read... [09:40:18]OFD Sender: No OFD packet to send [09:40:18]*** Cut start [09:40:18]*** Partial cut [09:40:18]*** CUTSNS_PIN = 1 [09:40:18]*** CUTSNS_PIN = 0 [09:40:18]*** Brake cut motor [09:40:18]Read from MH i2c: 01 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: 01 07 00 [09:40:18]MH_I2C_Read... [09:40:18]*** Stop cut motor [09:40:18]*** Cut end [09:40:18]Read from MH i2c: 01 07 00 CB A4 00 00 00 00 00 FF 0F 84 [09:40:18]process_action print_text done [09:40:18]requested_data is exist [09:40:18]produce_requested_data [09:40:18]requested_item fm.sn is exist - process it [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 11 00 00 [09:40:18]Write to MH i2c: E2 08 00 CC A4 80 11 00 00 00 00 00 00 EA [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 17 00 CC A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 46 [09:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:40:18]wFMCommunicate OK [09:40:18]requested_item fd.num is exist - process it [09:40:18]SAM_PROTO_GetFieldsCounters [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 00 00 [09:40:18]Write to MH i2c: E2 08 00 CD A4 80 13 00 00 00 00 00 00 ED [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:18]Read from MH i2c: E2 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 [09:40:18]MH_I2C_Read... [09:40:18]Read from MH i2c: E2 62 00 CD A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EB 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:40:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EB 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:18]wFMCommunicate OK [09:40:18]SAM_PROTO_GetFieldsCounters done [09:40:18]requested_item shift.num is exist - process it [09:40:18]requested_item shift.opened is exist - process it [09:40:18]req_shift_opened [09:40:18]FM_GetShiftState [09:40:18]SAM_PROTO_GetShiftState [09:40:18]wFMCommunicate request_size=4 [09:40:18]MH_SAM_APDU [09:40:18]CAPDU: 80 13 01 00 [09:40:18]Write to MH i2c: E2 08 00 CE A4 80 13 01 00 00 00 00 00 EF [09:40:18]Write i2c OK [09:40:18]MH_I2C_Read... [09:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:19]Read from MH i2c: E2 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 [09:40:19]MH_I2C_Read... [09:40:19]Read from MH i2c: E2 0E 00 CE A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 28 [09:40:19]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:40:19]wFMCommunicate OK [09:40:19]SAM_PROTO_GetShiftState done [09:40:19]FM_GetShiftState done [09:40:19]req_shift_opened done [09:40:19]requested_item shift.open_date is exist - process it [09:40:19]req_shift_open_date [09:40:19]req_shift_open_date done [09:40:19]produce_requested_data done [09:40:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69867,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:40:19]process_action_free print_text [09:40:19]json_value_free [09:40:19]json_value_free done [09:40:19]process_json_proto returns [09:40:19]Send response to host [09:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69867,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:40:19]free response buf [09:40:19]execute_script done [09:40:19]execute_script returns [09:40:19]free content buf [09:40:19]Sock 9.Close socket [09:40:19]Sock 9.Thread stoped [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:10]accept exits with 7 [09:41:10]New connection [09:41:10]New thread 3067002212 created [09:41:10]Thread 3066858852 joined [09:41:10]Waiting for new connection... [09:41:10] Sock 7.Parse request [09:41:10]Sock 7.Check first char [09:41:10]Sock 7.First char is OK [09:41:10]request: POST /json_proto HTTP/1.0 [09:41:10]Method: POST [09:41:10]URL: /json_proto [09:41:10]Method is POST - this is cgi request [09:41:10]url: /json_proto [09:41:10]query_string will be loaded in cgi processing [09:41:10]execute_cgi json_proto POST (null) [09:41:10]execute_cgi path=json_proto method=POST [09:41:10]POST find Content-Length [09:41:10]Host: 172.17.49.132:8080 [09:41:10]Content-Length: 940 [09:41:10]Content-Type: application/json [09:41:10] [09:41:10]POST finish read [09:41:10]Found Content-Length = 940 [09:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137108", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:10]execute_script... [09:41: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 : (3)137108", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:10]POST & json_proto [09:41:10]process_json_proto [09:41:10]json parsed OK: [09:41:10]protocol is kg_v1.0 [09:41:10]action value=close_receipt [09:41:10]process_action close_receipt [09:41:10]cmd_close_receipt [09:41:10]MH_GetDate [09:41:10]Write to MH i2c: F0 00 00 CF A4 62 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: F0 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: F0 09 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: F0 09 00 CF A4 00 48 58 AB 66 E7 4B C0 64 72 [09:41:10]GetLastDocTimeStamp 1722504377 [09:41:10]current date 1722505288 [09:41:10]FM_GetShiftState [09:41:10]SAM_PROTO_GetShiftState [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 13 01 00 [09:41:10]Write to MH i2c: E2 08 00 D0 A4 80 13 01 00 00 00 00 00 F1 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 D0 A4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 2A [09:41:10]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:41:10]wFMCommunicate OK [09:41:10]SAM_PROTO_GetShiftState done [09:41:10]FM_GetShiftState done [09:41:10]opened in 1722472772 [09:41:10]opened+sec_in_day 1722559172 [09:41:10]quantity*price = 11500 [09:41:10]sum+1 = 11501 [09:41:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010353 Напиток Let`s Go! с/с груша ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 31 01.08.2024 09:41 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69868 ФПД: 232786745259443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T094128&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69868&fm=232786745259443&tin=02508201610067®Number=0000000000092638&sum=19500 0 [09:41:11]StoreToDocumentArchive [09:41:11]shift 433 fd 69868 [09:41:11]save to /storage/0433/doc_00069868 [09:41:11]save last doc name /storage/0433/doc_00069868 to /storage/kkm_last_doc_name [09:41:11]save OK [09:41:11]Clear old archive folders... [09:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=404 [09:41:12]tlvbuf is 012F0A40 [09:41:12]SAM_PROTO_ClearQueue [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 09 00 00 [09:41:12]Write to MH i2c: E2 08 00 DD A4 80 09 00 00 00 00 00 00 F3 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 DD A4 00 90 00 F5 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_ClearQueue done [09:41:12]KKMCreateOFDPacket [09:41:12]OFDProtocolAddRootSTLVToBuf [09:41:12]FM_MakeSignedData [09:41:12]FM_MakeSignedData [09:41:12]SAM_PROTO_SignData [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 0D 01 02 [09:41:12]Write to MH i2c: E2 08 00 DE A4 80 0D 01 02 00 00 00 00 FB [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 DE A4 00 90 00 F6 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]wFMCommunicate request_size=255 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 [09:41:12]Write to MH i2c: E2 02 01 DF A4 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 C0 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 DF A4 00 90 00 F7 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]wFMCommunicate request_size=163 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 48 58 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EC 10 01 00 35 04 06 00 D3 B7 E3 42 75 B3 [09:41:12]Write to MH i2c: E2 A6 00 E0 A4 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 48 58 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EC 10 01 00 35 04 06 00 D3 B7 E3 42 75 B3 00 00 1D [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 03 00 E0 A4 00 90 00 F8 [09:41:12]RAPDU: 90 00 [09:41:12]wFMCommunicate OK [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 0D 03 02 [09:41:12]Write to MH i2c: E2 08 00 E1 A4 80 0D 03 02 00 00 00 00 00 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0B 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 0B 00 E1 A4 00 69 58 C2 56 C3 CF 56 69 90 00 2B [09:41:12]RAPDU: 69 58 C2 56 C3 CF 56 69 90 00 [09:41:12]wFMCommunicate OK [09:41:12]SAM_PROTO_SignData done [09:41:12]FM_MakeSignedData done [09:41:12]CreateOFDProtocolMessage [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 11 00 00 [09:41:12]Write to MH i2c: E2 08 00 E2 A4 80 11 00 00 00 00 00 00 00 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:12]Read from MH i2c: E2 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 17 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: E2 17 00 E2 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5C [09:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:41:12]wFMCommunicate OK [09:41:12]CreateOFDProtocolMessage done [09:41:12]OFDSenderStorePacket 69868 [09:41:12]StoreOFDPacket docnum=69868 [09:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 A8 01 00 00 93 61 A0 01 0B 4F 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 48 58 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EC 10 01 00 35 04 06 00 D3 B7 E3 42 75 B3 69 58 C2 56 C3 CF 56 69 [09:41:12]CheckFolder [09:41:12]dirname=/storage/ofd_packets [09:41:12]CheckFolder done [09:41:12]ProducePacketName [09:41:12]name=ofd_packets/00069868 [09:41:12]NVStorageSaveData ofd_packets/00069868 [09:41:12]File name is /storage/ofd_packets/00069868 [09:41:12]Write 454 bytes [09:41:12]NVStorageSaveData done [09:41:12]OFDSenderStorePacket done [09:41:12]KKMCreateOFDPacket done [09:41:12]NVStorageSaveData kkm_last_timestamp [09:41:12]File name is /storage/kkm_last_timestamp [09:41:12]Write 4 bytes [09:41:12]NVStorageSaveData done [09:41:12]ExternCall_PrintAddStr [09:41:12]wPrintStart [09:41:12]Write to MH i2c: 01 00 00 E3 A4 87 [09:41:12]OFD Sender: Processing packet 69868 [packets to send 19, broken 18] [09:41:12]ProducePacketName [09:41:12]name=ofd_packets/00069868 [09:41:12]OFD Sender: To server: pG, [09:41:12]CommunicateWithHost lk.salyk.kg:30040 [09:41:12]ConnectInit lk.salyk.kg [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 E3 A4 00 00 00 00 00 FF 0F 9C [09:41:12]RasterBufferAndPrint [09:41:12]line Счет N : (3)137108 [09:41:12]line ИНН: 02508201610067 [09:41:12]line Контрольно-Кассовый Чек [09:41:12]line ПРОДАЖА [09:41:12]line Товар: 2000036210013 [09:41:12]line Кофе Капучино (GABB TRADE) [09:41:12]line 1.000 * 115.00 [09:41:12]line = 115.00 [09:41:12]line НДС 12% НСП 1% [09:41:12]line > о реализуемом товаре [09:41:12]line Товар: 4700003010353 [09:41:12]line Напиток Let`s Go! с/с груша ПЭТ 1л [09:41:12]line 1.000 * 80.00 [09:41:12]line = 80.00 [09:41:12]line НДС 12% НСП 1% [09:41:12]line > о реализуемом товаре [09:41:12]line ИТОГО: 195.00 [09:41:12]line НСП 1% : 1.73 [09:41:12]line НДС 12% : 20.71 [09:41:12]line Наличными: 195.00 [09:41:12]line Безнал.: 0.00 [09:41:12]line Место: АЗС № 125 "Партнер Нефть" [09:41:12]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:41:12]line СНО: Общий режим [09:41:12]line Чек 31 01.08.2024 09:41 [09:41:12]line Смена: 433 ФФД: 1.0 [09:41:12]line ЗНМ: 0300000049 [09:41:12]line РНМ: 0000000000092638 [09:41:12]line Версия ККМ: 001 [09:41:12]line ФМ: 0000000000874949 [09:41:12]line ФД: 69868 [09:41:12]line ФПД: 232786745259443 [09:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T094128&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69868&fm=232786745259443&tin=02508201610067®Number=0000000000092638&sum=19500 [09:41:12]line 0 [09:41:12]written 0, free lines is 4095 [09:41:13]Connected sock=10 [09:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 A8 01 00 00 93 61 A0 01 0B 4F 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 48 58 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EC 10 01 00 35 04 06 00 D3 B7 E3 42 75 B3 69 58 C2 56 C3 CF 56 69 [09:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 67 3E 47 00 51 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EC 10 01 00 F4 03 04 00 AA FE AA 66 B6 04 01 00 00 2E C0 8F 89 40 BF D1 4D [09:41:13]CommunicateWithHost err = 0 [09:41:13]CheckOFDResponse [09:41:13]1017 (14) - 77093643461234 [09:41:13]1041 (16) - 0000000000874949 [09:41:13]1040 (4) - 69868 [09:41:13]1012 (4) - 01.08.2024 03:19 [09:41:13]1206 (1) - 0 [09:41:13]OFD Sender: Remove packet 69868 [09:41:13]ProducePacketName [09:41:13]name=ofd_packets/00069868 [09:41:13]NVStorageDeleteData [09:41:13]Write to MH i2c: 01 00 00 12 A5 B7 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 12 A5 00 00 00 00 00 BC 0C 86 [09:41:13]RasterBufferAndPrint [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]line [09:41:13]written 0, free lines is 3267 [09:41:13]MH_Cut [09:41:13]Write to MH i2c: D1 01 00 19 A5 01 90 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 01 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: D1 01 00 19 A5 00 8F [09:41:13]Write to MH i2c: 01 00 00 1A A5 BF [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]OFD Sender: No OFD packet to send [09:41:14]*** Cut start [09:41:14]*** Partial cut [09:41:14]*** CUTSNS_PIN = 1 [09:41:14]*** CUTSNS_PIN = 0 [09:41:14]*** Brake cut motor [09:41:14]Read from MH i2c: 01 [09:41:14]MH_I2C_Read... [09:41:14]*** Stop cut motor [09:41:14]*** Cut end [09:41:14]Read from MH i2c: 01 07 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 1A A5 00 00 00 00 00 FF 0F D4 [09:41:14]process_action close_receipt done [09:41:14]requested_data is exist [09:41:14]produce_requested_data [09:41:14]requested_item fm.sn is exist - process it [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 11 00 00 [09:41:14]Write to MH i2c: E2 08 00 1B A5 80 11 00 00 00 00 00 00 3A [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 17 00 1B A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [09:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:41:14]wFMCommunicate OK [09:41:14]requested_item fd.num is exist - process it [09:41:14]SAM_PROTO_GetFieldsCounters [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 00 00 [09:41:14]Write to MH i2c: E2 08 00 1C A5 80 13 00 00 00 00 00 00 3D [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 1C A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EC 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [09:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EC 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetFieldsCounters done [09:41:14]requested_item shift.num is exist - process it [09:41:14]requested_item shift.opened is exist - process it [09:41:14]req_shift_opened [09:41:14]FM_GetShiftState [09:41:14]SAM_PROTO_GetShiftState [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 01 00 [09:41:14]Write to MH i2c: E2 08 00 1D A5 80 13 01 00 00 00 00 00 3F [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 0E 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 0E 00 1D A5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 78 [09:41:15]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:41:15]wFMCommunicate OK [09:41:15]SAM_PROTO_GetShiftState done [09:41:15]FM_GetShiftState done [09:41:15]req_shift_opened done [09:41:15]requested_item shift.open_date is exist - process it [09:41:15]req_shift_open_date [09:41:15]req_shift_open_date done [09:41:15]produce_requested_data done [09:41:15]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69868,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:41:15]process_action_free close_receipt [09:41:15]json_value_free [09:41:15]json_value_free done [09:41:15]process_json_proto returns [09:41:15]Send response to host [09:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69868,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:41:15]free response buf [09:41:15]execute_script done [09:41:15]execute_script returns [09:41:15]free content buf [09:41:15]Sock 7.Close socket [09:41:15]Sock 7.Thread stoped [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:55]accept exits with 9 [09:44:55]New connection [09:44:55]New thread 3066858852 created [09:44:55]Thread 3067002212 joined [09:44:55]Waiting for new connection... [09:44:55] Sock 9.Parse request [09:44:55]Sock 9.Check first char [09:44:55]Sock 9.First char is OK [09:44:55]request: POST /json_proto HTTP/1.0 [09:44:55]Method: POST [09:44:55]URL: /json_proto [09:44:55]Method is POST - this is cgi request [09:44:55]url: /json_proto [09:44:55]query_string will be loaded in cgi processing [09:44:55]execute_cgi json_proto POST (null) [09:44:55]execute_cgi path=json_proto method=POST [09:44:55]POST find Content-Length [09:44:55]Host: 172.17.49.132:8080 [09:44:55]Content-Length: 675 [09:44:55]Content-Type: application/json [09:44:55] [09:44:55]POST finish read [09:44:55]Found Content-Length = 675 [09:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:55]execute_script... [09:44: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)874563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:55]POST & json_proto [09:44:55]process_json_proto [09:44:55]json parsed OK: [09:44:55]protocol is kg_v1.0 [09:44:55]action value=close_receipt [09:44:55]process_action close_receipt [09:44:55]cmd_close_receipt [09:44:55]MH_GetDate [09:44:55]Write to MH i2c: F0 00 00 1E A5 B2 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: F0 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: F0 09 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: F0 09 00 1E A5 00 28 59 AB 66 E7 4B C0 64 A3 [09:44:55]GetLastDocTimeStamp 1722505288 [09:44:55]current date 1722505512 [09:44:55]FM_GetShiftState [09:44:55]SAM_PROTO_GetShiftState [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 13 01 00 [09:44:55]Write to MH i2c: E2 08 00 1F A5 80 13 01 00 00 00 00 00 41 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 0E 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 0E 00 1F A5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 7A [09:44:55]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:44:55]wFMCommunicate OK [09:44:55]SAM_PROTO_GetShiftState done [09:44:55]FM_GetShiftState done [09:44:55]opened in 1722472772 [09:44:55]opened+sec_in_day 1722559172 [09:44:55]quantity*price = 100035 [09:44:55]sum+1 = 100036 [09:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 32 01.08.2024 09:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69869 ФПД: 273490906739964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T094512&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69869&fm=273490906739964&tin=02508201610067®Number=0000000000092638&sum=100000 [09:44:56]StoreToDocumentArchive [09:44:56]shift 433 fd 69869 [09:44:56]save to /storage/0433/doc_00069869 [09:44:56]save last doc name /storage/0433/doc_00069869 to /storage/kkm_last_doc_name [09:44:56]save OK [09:44:56]Clear old archive folders... [09:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:44:56]tlvbuf is 01357870 [09:44:56]SAM_PROTO_ClearQueue [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 09 00 00 [09:44:56]Write to MH i2c: E2 08 00 2C A5 80 09 00 00 00 00 00 00 43 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 2C A5 00 90 00 45 [09:44:56]RAPDU: 90 00 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_ClearQueue done [09:44:56]KKMCreateOFDPacket [09:44:56]OFDProtocolAddRootSTLVToBuf [09:44:56]FM_MakeSignedData [09:44:56]FM_MakeSignedData [09:44:56]SAM_PROTO_SignData [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 0D 01 02 [09:44:56]Write to MH i2c: E2 08 00 2D A5 80 0D 01 02 00 00 00 00 4B [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 2D A5 00 90 00 46 [09:44:56]RAPDU: 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=255 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 59 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 ED 10 01 00 35 04 06 00 [09:44:56]Write to MH i2c: E2 02 01 2E A5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 59 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 ED 10 01 00 35 04 06 00 00 00 16 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 2E A5 00 90 00 47 [09:44:56]RAPDU: 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=11 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 0D 02 02 06 F8 BD 10 58 74 FC [09:44:56]Write to MH i2c: E2 0E 00 2F A5 80 0D 02 02 06 00 F8 BD 10 58 74 FC 00 00 E7 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 03 00 2F A5 00 90 00 48 [09:44:56]RAPDU: 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 0D 03 02 [09:44:56]Write to MH i2c: E2 08 00 30 A5 80 0D 03 02 00 00 00 00 50 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0B 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0B 00 30 A5 00 E6 99 1B C6 AA 14 7D 24 90 00 10 [09:44:56]RAPDU: E6 99 1B C6 AA 14 7D 24 90 00 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_SignData done [09:44:56]FM_MakeSignedData done [09:44:56]CreateOFDProtocolMessage [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 11 00 00 [09:44:56]Write to MH i2c: E2 08 00 31 A5 80 11 00 00 00 00 00 00 50 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 17 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 17 00 31 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AC [09:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:44:56]wFMCommunicate OK [09:44:56]CreateOFDProtocolMessage done [09:44:56]OFDSenderStorePacket 69869 [09:44:56]StoreOFDPacket docnum=69869 [09:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 01 00 00 5F E9 08 01 34 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 59 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 ED 10 01 00 35 04 06 00 F8 BD 10 58 74 FC E6 99 1B C6 AA 14 7D 24 [09:44:56]CheckFolder [09:44:56]dirname=/storage/ofd_packets [09:44:56]CheckFolder done [09:44:56]ProducePacketName [09:44:56]name=ofd_packets/00069869 [09:44:56]NVStorageSaveData ofd_packets/00069869 [09:44:56]File name is /storage/ofd_packets/00069869 [09:44:56]Write 302 bytes [09:44:56]NVStorageSaveData done [09:44:56]OFDSenderStorePacket done [09:44:56]KKMCreateOFDPacket done [09:44:56]NVStorageSaveData kkm_last_timestamp [09:44:56]File name is /storage/kkm_last_timestamp [09:44:56]Write 4 bytes [09:44:56]NVStorageSaveData done [09:44:56]ExternCall_PrintAddStr [09:44:56]wPrintStart [09:44:56]Write to MH i2c: 01 00 00 32 A5 D7 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: 01 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: 01 07 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: 01 07 00 32 A5 00 00 00 00 00 FF 0F EC [09:44:56]RasterBufferAndPrint [09:44:56]line Счет N : (1)874563 [09:44:56]line ИНН: 02508201610067 [09:44:56]line Контрольно-Кассовый Чек [09:44:56]line ПРОДАЖА [09:44:56]line ТРК (МРК, ГНК) : 31 [09:44:56]line Товар: 2710124130 [09:44:56]line SUPER 92-К-5 [09:44:56]line 14.540 * 68.80 [09:44:56]line = 1000.35 [09:44:56]line НДС 12% НСП 1% [09:44:56]line > о реализуемом товаре [09:44:56]line ОКРУГЛЕНИЕ: -0.35 [09:44:56]line ИТОГО: 1000.00 [09:44:56]line Внесено: 1000.00 [09:44:56]line СДАЧА: 0.00 [09:44:56]line НСП 1% : 8.85 [09:44:56]line НДС 12% : 106.23 [09:44:56]line Наличными: 1000.00 [09:44:56]line Безнал.: 0.00 [09:44:56]line Место: АЗС № 125 "Партнер Нефть" [09:44:56]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:44:56]line СНО: Общий режим [09:44:56]line Чек 32 01.08.2024 09:45 [09:44:57]line Смена: 433 ФФД: 1.0 [09:44:57]line ЗНМ: 0300000049 [09:44:57]line РНМ: 0000000000092638 [09:44:57]line Версия ККМ: 001 [09:44:57]line ФМ: 0000000000874949 [09:44:57]line ФД: 69869 [09:44:57]line ФПД: 273490906739964 [09:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T094512&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69869&fm=273490906739964&tin=02508201610067®Number=0000000000092638&sum=100000 [09:44:57]OFD Sender: Processing packet 69869 [packets to send 19, broken 18] [09:44:57]ProducePacketName [09:44:57]name=ofd_packets/00069869 [09:44:57]OFD Sender: To server: pG, [09:44:57]CommunicateWithHost lk.salyk.kg:30040 [09:44:57]ConnectInit lk.salyk.kg [09:44:57]written 0, free lines is 4095 [09:44:57]Connected sock=10 [09:44:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 01 00 00 5F E9 08 01 34 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 59 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 ED 10 01 00 35 04 06 00 F8 BD 10 58 74 FC E6 99 1B C6 AA 14 7D 24 [09:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 EE DE 47 00 FD 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 34 39 34 39 10 04 04 00 ED 10 01 00 F4 03 04 00 8A FF AA 66 B6 04 01 00 00 0A 41 B2 2B 6F FC 05 D1 [09:44:57]CommunicateWithHost err = 0 [09:44:57]CheckOFDResponse [09:44:57]1017 (14) - 77093643461234 [09:44:57]1041 (16) - 0000000000874949 [09:44:57]1040 (4) - 69869 [09:44:57]1012 (4) - 01.08.2024 03:22 [09:44:57]1206 (1) - 0 [09:44:57]OFD Sender: Remove packet 69869 [09:44:57]ProducePacketName [09:44:57]name=ofd_packets/00069869 [09:44:57]NVStorageDeleteData [09:44:57]Write to MH i2c: 01 00 00 5D A5 02 [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: 01 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: 01 07 00 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: 01 07 00 5D A5 00 00 00 00 00 03 0D 19 [09:44:57]RasterBufferAndPrint [09:44:57]line [09:44:57]line [09:44:57]line [09:44:57]line [09:44:57]line [09:44:57]written 0, free lines is 3337 [09:44:57]MH_Cut [09:44:57]Write to MH i2c: D1 01 00 64 A5 01 DB [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: D1 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: D1 01 00 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: D1 01 00 64 A5 00 DA [09:44:57]Write to MH i2c: 01 00 00 65 A5 0A [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]OFD Sender: No OFD packet to send [09:44:58]*** Cut start [09:44:58]*** Partial cut [09:44:58]*** CUTSNS_PIN = 1 [09:44:58]*** CUTSNS_PIN = 0 [09:44:58]*** Brake cut motor [09:44:58]Read from MH i2c: 01 [09:44:58]MH_I2C_Read... [09:44:58]*** Stop cut motor [09:44:58]*** Cut end [09:44:58]Read from MH i2c: 01 07 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: 01 07 00 65 A5 00 00 00 00 00 FF 0F 1F [09:44:58]process_action close_receipt done [09:44:58]requested_data is exist [09:44:58]produce_requested_data [09:44:58]requested_item fm.sn is exist - process it [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 11 00 00 [09:44:58]Write to MH i2c: E2 08 00 66 A5 80 11 00 00 00 00 00 00 85 [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 17 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 17 00 66 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E1 [09:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:44:58]wFMCommunicate OK [09:44:58]requested_item fd.num is exist - process it [09:44:58]SAM_PROTO_GetFieldsCounters [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 13 00 00 [09:44:58]Write to MH i2c: E2 08 00 67 A5 80 13 00 00 00 00 00 00 88 [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 62 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 62 00 67 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 ED 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [09:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 ED 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:58]wFMCommunicate OK [09:44:58]SAM_PROTO_GetFieldsCounters done [09:44:58]requested_item shift.num is exist - process it [09:44:58]requested_item shift.opened is exist - process it [09:44:58]req_shift_opened [09:44:58]FM_GetShiftState [09:44:58]SAM_PROTO_GetShiftState [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 13 01 00 [09:44:58]Write to MH i2c: E2 08 00 68 A5 80 13 01 00 00 00 00 00 8A [09:44:58]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:59]Read from MH i2c: E2 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 0E 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 0E 00 68 A5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 C3 [09:44:59]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:44:59]wFMCommunicate OK [09:44:59]SAM_PROTO_GetShiftState done [09:44:59]FM_GetShiftState done [09:44:59]req_shift_opened done [09:44:59]requested_item shift.open_date is exist - process it [09:44:59]req_shift_open_date [09:44:59]req_shift_open_date done [09:44:59]produce_requested_data done [09:44:59]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69869,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:44:59]process_action_free close_receipt [09:44:59]json_value_free [09:44:59]json_value_free done [09:44:59]process_json_proto returns [09:44:59]Send response to host [09:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69869,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:44:59]free response buf [09:44:59]execute_script done [09:44:59]execute_script returns [09:44:59]free content buf [09:44:59]Sock 9.Close socket [09:44:59]Sock 9.Thread stoped [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:07]accept exits with 7 [09:50:07]New connection [09:50:07]New thread 3067002212 created [09:50:07]Thread 3066858852 joined [09:50:07]Waiting for new connection... [09:50:07] Sock 7.Parse request [09:50:07]Sock 7.Check first char [09:50:07]Sock 7.First char is OK [09:50:07]request: POST /json_proto HTTP/1.0 [09:50:07]Method: POST [09:50:07]URL: /json_proto [09:50:07]Method is POST - this is cgi request [09:50:07]url: /json_proto [09:50:07]query_string will be loaded in cgi processing [09:50:07]execute_cgi json_proto POST (null) [09:50:07]execute_cgi path=json_proto method=POST [09:50:07]POST find Content-Length [09:50:07]Host: 172.17.49.132:8080 [09:50:07]Content-Length: 839 [09:50:07]Content-Type: application/json [09:50:07] [09:50:07]POST finish read [09:50:07]Found Content-Length = 839 [09:50:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 47.880, "sum" : 3600.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3600.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:07]execute_script... [09:50: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)874567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 47.880, "sum" : 3600.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3600.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:07]POST & json_proto [09:50:07]process_json_proto [09:50:07]json parsed OK: [09:50:07]protocol is kg_v1.0 [09:50:07]action value=close_receipt [09:50:07]process_action close_receipt [09:50:07]cmd_close_receipt [09:50:07]MH_GetDate [09:50:07]Write to MH i2c: F0 00 00 69 A5 FD [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: F0 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: F0 09 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: F0 09 00 69 A5 00 60 5A AB 66 E7 4B C0 64 27 [09:50:07]GetLastDocTimeStamp 1722505512 [09:50:07]current date 1722505824 [09:50:07]FM_GetShiftState [09:50:07]SAM_PROTO_GetShiftState [09:50:07]wFMCommunicate request_size=4 [09:50:07]MH_SAM_APDU [09:50:07]CAPDU: 80 13 01 00 [09:50:07]Write to MH i2c: E2 08 00 6A A5 80 13 01 00 00 00 00 00 8C [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:07]Read from MH i2c: E2 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: E2 0E 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: E2 0E 00 6A A5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 C5 [09:50:07]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:50:07]wFMCommunicate OK [09:50:07]SAM_PROTO_GetShiftState done [09:50:07]FM_GetShiftState done [09:50:07]opened in 1722472772 [09:50:07]opened+sec_in_day 1722559172 [09:50:07]quantity*price = 360057 [09:50:07]sum+1 = 360059 [09:50:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3600.58 НСП 1% : 31.86 НДС 12% : 382.36 Наличными: 0.00 Безнал.: 3600.58 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 33 01.08.2024 09:50 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69870 ФПД: 21201824778280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T095024&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69870&fm=21201824778280&tin=02508201610067®Number=0000000000092638&sum=360058 [09:50:08]StoreToDocumentArchive [09:50:08]shift 433 fd 69870 [09:50:08]save to /storage/0433/doc_00069870 [09:50:08]save last doc name /storage/0433/doc_00069870 to /storage/kkm_last_doc_name [09:50:08]save OK [09:50:08]Clear old archive folders... [09:50:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:50:08]tlvbuf is 014A0900 [09:50:08]SAM_PROTO_ClearQueue [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 09 00 00 [09:50:08]Write to MH i2c: E2 08 00 77 A5 80 09 00 00 00 00 00 00 8E [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 77 A5 00 90 00 90 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_ClearQueue done [09:50:08]KKMCreateOFDPacket [09:50:08]OFDProtocolAddRootSTLVToBuf [09:50:08]FM_MakeSignedData [09:50:08]FM_MakeSignedData [09:50:08]SAM_PROTO_SignData [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 01 02 [09:50:08]Write to MH i2c: E2 08 00 78 A5 80 0D 01 02 00 00 00 00 96 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 78 A5 00 90 00 91 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]wFMCommunicate request_size=255 [09:50:08]MH_SAM_APDU [09:50: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 08 BB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7A 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 5A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EE 10 01 00 35 04 06 00 13 48 6F 3C [09:50:08]Write to MH i2c: E2 02 01 79 A5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 BB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7A 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 5A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EE 10 01 00 35 04 06 00 13 48 6F 3C 00 00 48 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 79 A5 00 90 00 92 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]wFMCommunicate request_size=7 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 02 02 02 08 28 [09:50:08]Write to MH i2c: E2 0A 00 7A A5 80 0D 02 02 02 00 08 28 00 00 CD [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 03 00 7A A5 00 90 00 93 [09:50:08]RAPDU: 90 00 [09:50:08]wFMCommunicate OK [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 0D 03 02 [09:50:08]Write to MH i2c: E2 08 00 7B A5 80 0D 03 02 00 00 00 00 9B [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0B 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 0B 00 7B A5 00 CF 4A 09 49 58 E0 95 C9 90 00 9D [09:50:09]RAPDU: CF 4A 09 49 58 E0 95 C9 90 00 [09:50:09]wFMCommunicate OK [09:50:09]SAM_PROTO_SignData done [09:50:09]FM_MakeSignedData done [09:50:09]CreateOFDProtocolMessage [09:50:09]wFMCommunicate request_size=4 [09:50:09]MH_SAM_APDU [09:50:09]CAPDU: 80 11 00 00 [09:50:09]Write to MH i2c: E2 08 00 7C A5 80 11 00 00 00 00 00 00 9B [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:09]Read from MH i2c: E2 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 17 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: E2 17 00 7C A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F7 [09:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:50:09]wFMCommunicate OK [09:50:09]CreateOFDProtocolMessage done [09:50:09]OFDSenderStorePacket 69870 [09:50:09]StoreOFDPacket docnum=69870 [09:50:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 56 2B 04 01 CA CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 BB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7A 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 5A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EE 10 01 00 35 04 06 00 13 48 6F 3C 08 28 CF 4A 09 49 58 E0 95 C9 [09:50:09]CheckFolder [09:50:09]dirname=/storage/ofd_packets [09:50:09]CheckFolder done [09:50:09]ProducePacketName [09:50:09]name=ofd_packets/00069870 [09:50:09]NVStorageSaveData ofd_packets/00069870 [09:50:09]File name is /storage/ofd_packets/00069870 [09:50:09]Write 298 bytes [09:50:09]NVStorageSaveData done [09:50:09]OFDSenderStorePacket done [09:50:09]KKMCreateOFDPacket done [09:50:09]NVStorageSaveData kkm_last_timestamp [09:50:09]File name is /storage/kkm_last_timestamp [09:50:09]Write 4 bytes [09:50:09]NVStorageSaveData done [09:50:09]ExternCall_PrintAddStr [09:50:09]wPrintStart [09:50:09]Write to MH i2c: 01 00 00 7D A5 22 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 7D A5 00 00 00 00 00 FF 0F 37 [09:50:09]RasterBufferAndPrint [09:50:09]line Счет N : (1)874567 [09:50:09]line ИНН: 02508201610067 [09:50:09]line Контрольно-Кассовый Чек [09:50:09]line ПРОДАЖА [09:50:09]line ТРК (МРК, ГНК) : 2 [09:50:09]line Товар: 2710194210 [09:50:09]line ДТ-К-5 [09:50:09]line 47.880 * 75.20 [09:50:09]line = 3600.58 [09:50:09]line НДС 12% НСП 1% [09:50:09]line > о реализуемом товаре [09:50:09]line ИТОГО: 3600.58 [09:50:09]line НСП 1% : 31.86 [09:50:09]line НДС 12% : 382.36 [09:50:09]line Наличными: 0.00 [09:50:09]line Безнал.: 3600.58 [09:50:09]line Место: АЗС № 125 "Партнер Нефть" [09:50:09]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [09:50:09]line СНО: Общий режим [09:50:09]line Чек 33 01.08.2024 09:50 [09:50:09]line Смена: 433 ФФД: 1.0 [09:50:09]line ЗНМ: 0300000049 [09:50:09]line РНМ: 0000000000092638 [09:50:09]line Версия ККМ: 001 [09:50:09]line Платежная система: АКБ Кыргызстан [09:50:09]line ФМ: 0000000000874949 [09:50:09]line ФД: 69870 [09:50:09]line ФПД: 21201824778280 [09:50:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T095024&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69870&fm=21201824778280&tin=02508201610067®Number=0000000000092638&sum=360058 [09:50:09]OFD Sender: Processing packet 69870 [packets to send 19, broken 18] [09:50:09]ProducePacketName [09:50:09]name=ofd_packets/00069870 [09:50:09]OFD Sender: To server: pG, [09:50:09]CommunicateWithHost lk.salyk.kg:30040 [09:50:09]ConnectInit lk.salyk.kg [09:50:09]written 0, free lines is 4095 [09:50:09]Connected sock=10 [09:50:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 56 2B 04 01 CA CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 BB 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 7A 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 95 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A 7E 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 60 5A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EE 10 01 00 35 04 06 00 13 48 6F 3C 08 28 CF 4A 09 49 58 E0 95 C9 [09:50:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B2 AF 47 00 45 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EE 10 01 00 F4 03 04 00 C2 00 AB 66 B6 04 01 00 00 48 AC 31 70 2A 6E 2D DD [09:50:09]CommunicateWithHost err = 0 [09:50:09]CheckOFDResponse [09:50:09]1017 (14) - 77093643461234 [09:50:09]1041 (16) - 0000000000874949 [09:50:09]1040 (4) - 69870 [09:50:09]1012 (4) - 01.08.2024 03:28 [09:50:09]1206 (1) - 0 [09:50:09]OFD Sender: Remove packet 69870 [09:50:09]ProducePacketName [09:50:09]name=ofd_packets/00069870 [09:50:09]NVStorageDeleteData [09:50:09]Write to MH i2c: 01 00 00 A7 A5 4C [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: 01 07 00 A7 A5 00 00 00 00 00 04 0D 64 [09:50:09]RasterBufferAndPrint [09:50:09]line [09:50:09]line [09:50:09]line [09:50:09]line [09:50:09]line [09:50:09]written 0, free lines is 3339 [09:50:09]MH_Cut [09:50:09]Write to MH i2c: D1 01 00 AE A5 01 25 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: D1 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: D1 01 00 [09:50:09]MH_I2C_Read... [09:50:09]Read from MH i2c: D1 01 00 AE A5 00 24 [09:50:09]Write to MH i2c: 01 00 00 AF A5 54 [09:50:09]Write i2c OK [09:50:09]MH_I2C_Read... [09:50:10]OFD Sender: No OFD packet to send [09:50:10]*** Cut start [09:50:10]*** Partial cut [09:50:10]*** CUTSNS_PIN = 1 [09:50:10]*** CUTSNS_PIN = 0 [09:50:10]*** Brake cut motor [09:50:11]Read from MH i2c: 01 [09:50:11]MH_I2C_Read... [09:50:11]*** Stop cut motor [09:50:11]*** Cut end [09:50:11]Read from MH i2c: 01 07 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: 01 07 00 AF A5 00 00 00 00 00 FF 0F 69 [09:50:11]process_action close_receipt done [09:50:11]requested_data is exist [09:50:11]produce_requested_data [09:50:11]requested_item fm.sn is exist - process it [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 11 00 00 [09:50:11]Write to MH i2c: E2 08 00 B0 A5 80 11 00 00 00 00 00 00 CF [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 17 00 B0 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2B [09:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [09:50:11]wFMCommunicate OK [09:50:11]requested_item fd.num is exist - process it [09:50:11]SAM_PROTO_GetFieldsCounters [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 00 00 [09:50:11]Write to MH i2c: E2 08 00 B1 A5 80 13 00 00 00 00 00 00 D2 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 62 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 62 00 B1 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EE 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:50:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 EE 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetFieldsCounters done [09:50:11]requested_item shift.num is exist - process it [09:50:11]requested_item shift.opened is exist - process it [09:50:11]req_shift_opened [09:50:11]FM_GetShiftState [09:50:11]SAM_PROTO_GetShiftState [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 01 00 [09:50:11]Write to MH i2c: E2 08 00 B2 A5 80 13 01 00 00 00 00 00 D4 [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 B2 A5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 0D [09:50:11]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetShiftState done [09:50:11]FM_GetShiftState done [09:50:11]req_shift_opened done [09:50:11]requested_item shift.open_date is exist - process it [09:50:11]req_shift_open_date [09:50:11]req_shift_open_date done [09:50:11]produce_requested_data done [09:50:11]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69870,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [09:50:11]process_action_free close_receipt [09:50:11]json_value_free [09:50:11]json_value_free done [09:50:11]process_json_proto returns [09:50:11]Send response to host [09:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69870,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [09:50:11]free response buf [09:50:11]execute_script done [09:50:11]execute_script returns [09:50:11]free content buf [09:50:11]Sock 7.Close socket [09:50:11]Sock 7.Thread stoped [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [10:04:02]ConnectInit Can't connect to host [10:04:03]ConnectInit Can't take IP for lk.salyk.kg [10:04:03]CommunicateWithHost connect error [10:04:03]CommunicateWithHost err = -1 [10:04:03]OFD Sender: Server communicate error [10:04:08]OFD Sender: Processing packet 69871 [packets to send 22, broken 18] [10:04:08]ProducePacketName [10:04:08]name=ofd_packets/00069871 [10:04:08]OFD Sender: To server: pG, [10:04:08]CommunicateWithHost lk.salyk.kg:30040 [10:04:08]ConnectInit lk.salyk.kg [10:04:08]Connected sock=7 [10:04:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 03 77 04 01 00 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 27 5B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EF 10 01 00 35 04 06 00 5C C2 63 F7 3E C9 D6 53 C3 67 41 23 C2 9C [10:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 17 9F 47 00 20 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 EF 10 01 00 F4 03 04 00 09 04 AB 66 B6 04 01 00 00 EE E0 59 FE 77 E8 C4 65 [10:04:08]CommunicateWithHost err = 0 [10:04:08]CheckOFDResponse [10:04:08]1017 (14) - 77093643461234 [10:04:08]1041 (16) - 0000000000874949 [10:04:08]1040 (4) - 69871 [10:04:08]1012 (4) - 01.08.2024 03:42 [10:04:08]1206 (1) - 0 [10:04:08]OFD Sender: Remove packet 69871 [10:04:08]ProducePacketName [10:04:08]name=ofd_packets/00069871 [10:04:08]NVStorageDeleteData [10:04:09]OFD Sender: Processing packet 69872 [packets to send 21, broken 18] [10:04:09]ProducePacketName [10:04:09]name=ofd_packets/00069872 [10:04:09]OFD Sender: To server: pG, [10:04:09]CommunicateWithHost lk.salyk.kg:30040 [10:04:09]ConnectInit lk.salyk.kg [10:04:09]Connected sock=7 [10:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 71 AC 07 01 C3 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 33 5B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F0 10 01 00 35 04 06 00 F4 2B E0 4F 02 ED 2E 53 F4 23 1C 4A B1 96 [10:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 35 17 47 00 3A 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 34 39 34 39 10 04 04 00 F0 10 01 00 F4 03 04 00 0A 04 AB 66 B6 04 01 00 00 F8 2D F7 2C C6 7E 56 A1 [10:04:09]CommunicateWithHost err = 0 [10:04:09]CheckOFDResponse [10:04:09]1017 (14) - 77093643461234 [10:04:09]1041 (16) - 0000000000874949 [10:04:09]1040 (4) - 69872 [10:04:09]1012 (4) - 01.08.2024 03:42 [10:04:09]1206 (1) - 0 [10:04:09]OFD Sender: Remove packet 69872 [10:04:09]ProducePacketName [10:04:09]name=ofd_packets/00069872 [10:04:09]NVStorageDeleteData [10:04:10]OFD Sender: Processing packet 69873 [packets to send 20, broken 18] [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00069873 [10:04:10]OFD Sender: To server: pG, [10:04:10]CommunicateWithHost lk.salyk.kg:30040 [10:04:10]ConnectInit lk.salyk.kg [10:04:10]Connected sock=7 [10:04:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 16 D0 04 01 DD 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A BA 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 D1 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 D1 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 5C 01 00 00 00 07 04 06 00 40 D1 0C 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 CA 5B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F1 10 01 00 35 04 06 00 3D 3C A8 9C 0E 21 15 3A FD B3 D3 7D 27 CE [10:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 3F 47 47 00 74 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F1 10 01 00 F4 03 04 00 0B 04 AB 66 B6 04 01 00 00 E7 84 B4 12 C0 6D 2F D6 [10:04:10]CommunicateWithHost err = 0 [10:04:10]CheckOFDResponse [10:04:10]1017 (14) - 77093643461234 [10:04:10]1041 (16) - 0000000000874949 [10:04:10]1040 (4) - 69873 [10:04:10]1012 (4) - 01.08.2024 03:42 [10:04:10]1206 (1) - 0 [10:04:10]OFD Sender: Remove packet 69873 [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00069873 [10:04:10]NVStorageDeleteData [10:04:10]OFD Sender: Processing packet 69874 [packets to send 19, broken 18] [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00069874 [10:04:10]OFD Sender: To server: pG, [10:04:10]CommunicateWithHost lk.salyk.kg:30040 [10:04:10]ConnectInit lk.salyk.kg [10:04:11]Connected sock=7 [10:04:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 23 01 00 00 FD 55 1B 01 06 48 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 62 5D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F2 10 01 00 35 04 06 00 F4 3C 44 97 A1 B9 A1 A1 BC 64 19 9C 1E 6C [10:04:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 29 89 47 00 C7 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F2 10 01 00 F4 03 04 00 0C 04 AB 66 B6 04 01 00 00 04 82 54 77 7A B6 EF 83 [10:04:11]CommunicateWithHost err = 0 [10:04:11]CheckOFDResponse [10:04:11]1017 (14) - 77093643461234 [10:04:11]1041 (16) - 0000000000874949 [10:04:11]1040 (4) - 69874 [10:04:11]1012 (4) - 01.08.2024 03:42 [10:04:11]1206 (1) - 0 [10:04:11]OFD Sender: Remove packet 69874 [10:04:11]ProducePacketName [10:04:11]name=ofd_packets/00069874 [10:04:11]NVStorageDeleteData [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13: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:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:28]accept exits with 9 [10:23:28]New connection [10:23:28]New thread 3066858852 created [10:23:28]Thread 3067002212 joined [10:23:28]Waiting for new connection... [10:23:28] Sock 9.Parse request [10:23:28]Sock 9.Check first char [10:23:28]Sock 9.First char is OK [10:23:28]request: POST /json_proto HTTP/1.0 [10:23:28]Method: POST [10:23:28]URL: /json_proto [10:23:28]Method is POST - this is cgi request [10:23:28]url: /json_proto [10:23:28]query_string will be loaded in cgi processing [10:23:28]execute_cgi json_proto POST (null) [10:23:28]execute_cgi path=json_proto method=POST [10:23:28]POST find Content-Length [10:23:28]Host: 172.17.49.132:8080 [10:23:28]Content-Length: 696 [10:23:28]Content-Type: application/json [10:23:28] [10:23:28]POST finish read [10:23:28]Found Content-Length = 696 [10:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137110", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:28]execute_script... [10:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137110", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:28]POST & json_proto [10:23:28]process_json_proto [10:23:28]json parsed OK: [10:23:28]protocol is kg_v1.0 [10:23:28]action value=close_receipt [10:23:28]process_action close_receipt [10:23:28]cmd_close_receipt [10:23:28]MH_GetDate [10:23:28]Write to MH i2c: F0 00 00 E1 A6 76 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: F0 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: F0 09 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: F0 09 00 E1 A6 00 32 62 AB 66 E7 4B C0 64 7A [10:23:28]GetLastDocTimeStamp 1722506594 [10:23:28]current date 1722507826 [10:23:28]FM_GetShiftState [10:23:28]SAM_PROTO_GetShiftState [10:23:28]wFMCommunicate request_size=4 [10:23:28]MH_SAM_APDU [10:23:28]CAPDU: 80 13 01 00 [10:23:28]Write to MH i2c: E2 08 00 E2 A6 80 13 01 00 00 00 00 00 05 [10:23:28]Write i2c OK [10:23:28]MH_I2C_Read... [10:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:28]Read from MH i2c: E2 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 0E 00 [10:23:28]MH_I2C_Read... [10:23:28]Read from MH i2c: E2 0E 00 E2 A6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 3E [10:23:28]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:23:28]wFMCommunicate OK [10:23:28]SAM_PROTO_GetShiftState done [10:23:28]FM_GetShiftState done [10:23:28]opened in 1722472772 [10:23:28]opened+sec_in_day 1722559172 [10:23:28]quantity*price = 11000 [10:23:28]sum+1 = 11001 [10:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 38 01.08.2024 10:23 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69875 ФПД: 90119624637698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T102346&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69875&fm=90119624637698&tin=02508201610067®Number=0000000000092638&sum=11000 0 [10:23:29]StoreToDocumentArchive [10:23:29]shift 433 fd 69875 [10:23:29]save to /storage/0433/doc_00069875 [10:23:29]save last doc name /storage/0433/doc_00069875 to /storage/kkm_last_doc_name [10:23:29]save OK [10:23:29]Clear old archive folders... [10:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=296 [10:23:29]tlvbuf is 0140DCB0 [10:23:29]SAM_PROTO_ClearQueue [10:23:29]wFMCommunicate request_size=4 [10:23:29]MH_SAM_APDU [10:23:29]CAPDU: 80 09 00 00 [10:23:29]Write to MH i2c: E2 08 00 EF A6 80 09 00 00 00 00 00 00 07 [10:23:29]Write i2c OK [10:23:29]MH_I2C_Read... [10:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:29]Read from MH i2c: E2 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: E2 03 00 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: E2 03 00 EF A6 00 90 00 09 [10:23:29]RAPDU: 90 00 [10:23:29]wFMCommunicate OK [10:23:29]SAM_PROTO_ClearQueue done [10:23:29]KKMCreateOFDPacket [10:23:29]OFDProtocolAddRootSTLVToBuf [10:23:29]FM_MakeSignedData [10:23:29]FM_MakeSignedData [10:23:29]SAM_PROTO_SignData [10:23:29]wFMCommunicate request_size=4 [10:23:29]MH_SAM_APDU [10:23:29]CAPDU: 80 0D 01 02 [10:23:29]Write to MH i2c: E2 08 00 F0 A6 80 0D 01 02 00 00 00 00 0F [10:23:29]Write i2c OK [10:23:29]MH_I2C_Read... [10:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:29]Read from MH i2c: E2 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: E2 03 00 [10:23:29]MH_I2C_Read... [10:23:29]Read from MH i2c: E2 03 00 F0 A6 00 90 00 0A [10:23:29]RAPDU: 90 00 [10:23:29]wFMCommunicate OK [10:23:29]wFMCommunicate request_size=255 [10:23:29]MH_SAM_APDU [10:23:29]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 32 62 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [10:23:29]Write to MH i2c: E2 02 01 F1 A6 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 32 62 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 0A [10:23:29]Write i2c OK [10:23:29]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 03 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 03 00 F1 A6 00 90 00 0B [10:23:30]RAPDU: 90 00 [10:23:30]wFMCommunicate OK [10:23:30]wFMCommunicate request_size=55 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F3 10 01 00 35 04 06 00 51 F6 9C 36 BD 02 [10:23:30]Write to MH i2c: E2 3A 00 F2 A6 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F3 10 01 00 35 04 06 00 51 F6 9C 36 BD 02 00 00 53 [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 03 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 03 00 F2 A6 00 90 00 0C [10:23:30]RAPDU: 90 00 [10:23:30]wFMCommunicate OK [10:23:30]wFMCommunicate request_size=4 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 0D 03 02 [10:23:30]Write to MH i2c: E2 08 00 F3 A6 80 0D 03 02 00 00 00 00 14 [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 0B 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 0B 00 F3 A6 00 4D 0D 9F 8A 3C B8 32 9B 90 00 59 [10:23:30]RAPDU: 4D 0D 9F 8A 3C B8 32 9B 90 00 [10:23:30]wFMCommunicate OK [10:23:30]SAM_PROTO_SignData done [10:23:30]FM_MakeSignedData done [10:23:30]CreateOFDProtocolMessage [10:23:30]wFMCommunicate request_size=4 [10:23:30]MH_SAM_APDU [10:23:30]CAPDU: 80 11 00 00 [10:23:30]Write to MH i2c: E2 08 00 F4 A6 80 11 00 00 00 00 00 00 14 [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:30]Read from MH i2c: E2 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 17 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: E2 17 00 F4 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 70 [10:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:23:30]wFMCommunicate OK [10:23:30]CreateOFDProtocolMessage done [10:23:30]OFDSenderStorePacket 69875 [10:23:30]StoreOFDPacket docnum=69875 [10:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3C 01 00 00 EA 4F 34 01 C5 1D 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 32 62 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F3 10 01 00 35 04 06 00 51 F6 9C 36 BD 02 4D 0D 9F 8A 3C B8 32 9B [10:23:30]CheckFolder [10:23:30]dirname=/storage/ofd_packets [10:23:30]CheckFolder done [10:23:30]ProducePacketName [10:23:30]name=ofd_packets/00069875 [10:23:30]NVStorageSaveData ofd_packets/00069875 [10:23:30]File name is /storage/ofd_packets/00069875 [10:23:30]Write 346 bytes [10:23:30]NVStorageSaveData done [10:23:30]OFDSenderStorePacket done [10:23:30]KKMCreateOFDPacket done [10:23:30]NVStorageSaveData kkm_last_timestamp [10:23:30]File name is /storage/kkm_last_timestamp [10:23:30]Write 4 bytes [10:23:30]NVStorageSaveData done [10:23:30]ExternCall_PrintAddStr [10:23:30]wPrintStart [10:23:30]Write to MH i2c: 01 00 00 F5 A6 9B [10:23:30]Write i2c OK [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: 01 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: 01 07 00 [10:23:30]MH_I2C_Read... [10:23:30]Read from MH i2c: 01 07 00 F5 A6 00 00 00 00 00 FF 0F B0 [10:23:30]RasterBufferAndPrint [10:23:30]line Счет N : (3)137110 [10:23:30]line ИНН: 02508201610067 [10:23:30]line Контрольно-Кассовый Чек [10:23:30]line ПРОДАЖА [10:23:30]line Товар: 4870202521261 [10:23:30]line Напиток MAXI чай 1,2 лесные ягоды [10:23:30]line 1.000 * 110.00 [10:23:30]line = 110.00 [10:23:30]line НДС 12% НСП 1% [10:23:30]line > о реализуемом товаре [10:23:30]line ИТОГО: 110.00 [10:23:30]line НСП 1% : 0.97 [10:23:30]line НДС 12% : 11.68 [10:23:30]line Наличными: 110.00 [10:23:30]line Безнал.: 0.00 [10:23:30]line Место: АЗС № 125 "Партнер Нефть" [10:23:30]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:23:30]line СНО: Общий режим [10:23:30]line Чек 38 01.08.2024 10:23 [10:23:30]line Смена: 433 ФФД: 1.0 [10:23:30]line ЗНМ: 0300000049 [10:23:30]line РНМ: 0000000000092638 [10:23:30]line Версия ККМ: 001 [10:23:30]line ФМ: 0000000000874949 [10:23:30]line ФД: 69875 [10:23:30]line ФПД: 90119624637698 [10:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T102346&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69875&fm=90119624637698&tin=02508201610067®Number=0000000000092638&sum=11000 [10:23:30]OFD Sender: Processing packet 69875 [packets to send 19, broken 18] [10:23:30]ProducePacketName [10:23:30]name=ofd_packets/00069875 [10:23:30]OFD Sender: To server: pG, [10:23:30]CommunicateWithHost lk.salyk.kg:30040 [10:23:30]ConnectInit lk.salyk.kg [10:23:30]line 0 [10:23:30]written 0, free lines is 4095 [10:23:30]Connected sock=10 [10:23:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 3C 01 00 00 EA 4F 34 01 C5 1D 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 32 62 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F3 10 01 00 35 04 06 00 51 F6 9C 36 BD 02 4D 0D 9F 8A 3C B8 32 9B [10:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 5D 3B 47 00 E9 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 34 39 34 39 10 04 04 00 F3 10 01 00 F4 03 04 00 93 08 AB 66 B6 04 01 00 00 4D 74 99 66 DA 9C D3 8C [10:23:31]CommunicateWithHost err = 0 [10:23:31]CheckOFDResponse [10:23:31]1017 (14) - 77093643461234 [10:23:31]1041 (16) - 0000000000874949 [10:23:31]1040 (4) - 69875 [10:23:31]1012 (4) - 01.08.2024 04:01 [10:23:31]1206 (1) - 0 [10:23:31]OFD Sender: Remove packet 69875 [10:23:31]ProducePacketName [10:23:31]name=ofd_packets/00069875 [10:23:31]NVStorageDeleteData [10:23:31]Write to MH i2c: 01 00 00 1E A7 C5 [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: 01 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: 01 07 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: 01 07 00 1E A7 00 00 00 00 00 00 0D D9 [10:23:31]RasterBufferAndPrint [10:23:31]line [10:23:31]line [10:23:31]line [10:23:31]line [10:23:31]line [10:23:31]written 0, free lines is 3336 [10:23:31]MH_Cut [10:23:31]Write to MH i2c: D1 01 00 25 A7 01 9E [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: D1 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: D1 01 00 [10:23:31]MH_I2C_Read... [10:23:31]Read from MH i2c: D1 01 00 25 A7 00 9D [10:23:31]Write to MH i2c: 01 00 00 26 A7 CD [10:23:31]Write i2c OK [10:23:31]MH_I2C_Read... [10:23:31]OFD Sender: No OFD packet to send [10:23:31]*** Cut start [10:23:31]*** Partial cut [10:23:31]*** CUTSNS_PIN = 1 [10:23:31]*** CUTSNS_PIN = 0 [10:23:32]*** Brake cut motor [10:23:32]Read from MH i2c: 01 [10:23:32]MH_I2C_Read... [10:23:32]*** Stop cut motor [10:23:32]*** Cut end [10:23:32]Read from MH i2c: 01 07 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: 01 07 00 26 A7 00 00 00 00 00 FF 0F E2 [10:23:32]process_action close_receipt done [10:23:32]requested_data is exist [10:23:32]produce_requested_data [10:23:32]requested_item fm.sn is exist - process it [10:23:32]wFMCommunicate request_size=4 [10:23:32]MH_SAM_APDU [10:23:32]CAPDU: 80 11 00 00 [10:23:32]Write to MH i2c: E2 08 00 27 A7 80 11 00 00 00 00 00 00 48 [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:32]Read from MH i2c: E2 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 17 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 17 00 27 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A4 [10:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:23:32]wFMCommunicate OK [10:23:32]requested_item fd.num is exist - process it [10:23:32]SAM_PROTO_GetFieldsCounters [10:23:32]wFMCommunicate request_size=4 [10:23:32]MH_SAM_APDU [10:23:32]CAPDU: 80 13 00 00 [10:23:32]Write to MH i2c: E2 08 00 28 A7 80 13 00 00 00 00 00 00 4B [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:32]Read from MH i2c: E2 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 62 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 62 00 28 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F3 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F3 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:32]wFMCommunicate OK [10:23:32]SAM_PROTO_GetFieldsCounters done [10:23:32]requested_item shift.num is exist - process it [10:23:32]requested_item shift.opened is exist - process it [10:23:32]req_shift_opened [10:23:32]FM_GetShiftState [10:23:32]SAM_PROTO_GetShiftState [10:23:32]wFMCommunicate request_size=4 [10:23:32]MH_SAM_APDU [10:23:32]CAPDU: 80 13 01 00 [10:23:32]Write to MH i2c: E2 08 00 29 A7 80 13 01 00 00 00 00 00 4D [10:23:32]Write i2c OK [10:23:32]MH_I2C_Read... [10:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:32]Read from MH i2c: E2 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 0E 00 [10:23:32]MH_I2C_Read... [10:23:32]Read from MH i2c: E2 0E 00 29 A7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 86 [10:23:32]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:23:32]wFMCommunicate OK [10:23:32]SAM_PROTO_GetShiftState done [10:23:32]FM_GetShiftState done [10:23:32]req_shift_opened done [10:23:32]requested_item shift.open_date is exist - process it [10:23:32]req_shift_open_date [10:23:32]req_shift_open_date done [10:23:32]produce_requested_data done [10:23:32]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69875,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:23:32]process_action_free close_receipt [10:23:32]json_value_free [10:23:32]json_value_free done [10:23:32]process_json_proto returns [10:23:32]Send response to host [10:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69875,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:23:32]free response buf [10:23:32]execute_script done [10:23:32]execute_script returns [10:23:32]free content buf [10:23:32]Sock 9.Close socket [10:23:32]Sock 9.Thread stoped [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [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:01]accept exits with 7 [10:38:01]New connection [10:38:01]New thread 3067002212 created [10:38:01]Thread 3066858852 joined [10:38:01]Waiting for new connection... [10:38:01] Sock 7.Parse request [10:38:01]Sock 7.Check first char [10:38:01]Sock 7.First char is OK [10:38:01]request: POST /json_proto HTTP/1.0 [10:38:01]Method: POST [10:38:01]URL: /json_proto [10:38:01]Method is POST - this is cgi request [10:38:01]url: /json_proto [10:38:01]query_string will be loaded in cgi processing [10:38:01]execute_cgi json_proto POST (null) [10:38:01]execute_cgi path=json_proto method=POST [10:38:01]POST find Content-Length [10:38:01]Host: 172.17.49.132:8080 [10:38:01]Content-Length: 624 [10:38:01]Content-Type: application/json [10:38:01] [10:38:01]POST finish read [10:38:01]Found Content-Length = 624 [10:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137111", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:01]execute_script... [10:38: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 : (3)137111", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:01]POST & json_proto [10:38:01]process_json_proto [10:38:01]json parsed OK: [10:38:01]protocol is kg_v1.0 [10:38:01]action value=close_receipt [10:38:01]process_action close_receipt [10:38:01]cmd_close_receipt [10:38:01]MH_GetDate [10:38:01]Write to MH i2c: F0 00 00 2A A7 C0 [10:38:01]Write i2c OK [10:38:01]MH_I2C_Read... [10:38:01]Read from MH i2c: F0 [10:38:01]MH_I2C_Read... [10:38:01]Read from MH i2c: F0 09 00 [10:38:01]MH_I2C_Read... [10:38:01]Read from MH i2c: F0 09 00 2A A7 00 9B 65 AB 66 E7 4B C0 64 30 [10:38:01]GetLastDocTimeStamp 1722507826 [10:38:01]current date 1722508699 [10:38:01]FM_GetShiftState [10:38:01]SAM_PROTO_GetShiftState [10:38:01]wFMCommunicate request_size=4 [10:38:01]MH_SAM_APDU [10:38:01]CAPDU: 80 13 01 00 [10:38:01]Write to MH i2c: E2 08 00 2B A7 80 13 01 00 00 00 00 00 4F [10:38:01]Write i2c OK [10:38:01]MH_I2C_Read... [10:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:01]Read from MH i2c: E2 [10:38:01]MH_I2C_Read... [10:38:01]Read from MH i2c: E2 0E 00 [10:38:01]MH_I2C_Read... [10:38:01]Read from MH i2c: E2 0E 00 2B A7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 88 [10:38:01]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:38:01]wFMCommunicate OK [10:38:01]SAM_PROTO_GetShiftState done [10:38:01]FM_GetShiftState done [10:38:01]opened in 1722472772 [10:38:01]opened+sec_in_day 1722559172 [10:38:01]quantity*price = 15000 [10:38:01]sum+1 = 15001 [10:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 39 01.08.2024 10:38 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69876 ФПД: 191286096220012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T103819&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69876&fm=191286096220012&tin=02508201610067®Number=0000000000092638&sum=15000 0 [10:38:02]StoreToDocumentArchive [10:38:02]shift 433 fd 69876 [10:38:02]save to /storage/0433/doc_00069876 [10:38:02]save last doc name /storage/0433/doc_00069876 to /storage/kkm_last_doc_name [10:38:02]save OK [10:38:02]Clear old archive folders... [10:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:38:02]tlvbuf is 01342160 [10:38:02]SAM_PROTO_ClearQueue [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 09 00 00 [10:38:02]Write to MH i2c: E2 08 00 38 A7 80 09 00 00 00 00 00 00 51 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 38 A7 00 90 00 53 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]SAM_PROTO_ClearQueue done [10:38:02]KKMCreateOFDPacket [10:38:02]OFDProtocolAddRootSTLVToBuf [10:38:02]FM_MakeSignedData [10:38:02]FM_MakeSignedData [10:38:02]SAM_PROTO_SignData [10:38:02]wFMCommunicate request_size=4 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 01 02 [10:38:02]Write to MH i2c: E2 08 00 39 A7 80 0D 01 02 00 00 00 00 59 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:02]Read from MH i2c: E2 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: E2 03 00 39 A7 00 90 00 54 [10:38:02]RAPDU: 90 00 [10:38:02]wFMCommunicate OK [10:38:02]wFMCommunicate request_size=255 [10:38:02]MH_SAM_APDU [10:38:02]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 65 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [10:38:02]Write to MH i2c: E2 02 01 3A A7 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 65 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 C8 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:03]Read from MH i2c: E2 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 03 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 03 00 3A A7 00 90 00 55 [10:38:03]RAPDU: 90 00 [10:38:03]wFMCommunicate OK [10:38:03]wFMCommunicate request_size=27 [10:38:03]MH_SAM_APDU [10:38:03]CAPDU: 80 0D 02 02 16 34 39 34 39 10 04 04 00 F4 10 01 00 35 04 06 00 AD F9 43 D0 CF 6C [10:38:03]Write to MH i2c: E2 1E 00 3B A7 80 0D 02 02 16 00 34 39 34 39 10 04 04 00 F4 10 01 00 35 04 06 00 AD F9 43 D0 CF 6C 00 00 B2 [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:03]Read from MH i2c: E2 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 03 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 03 00 3B A7 00 90 00 56 [10:38:03]RAPDU: 90 00 [10:38:03]wFMCommunicate OK [10:38:03]wFMCommunicate request_size=4 [10:38:03]MH_SAM_APDU [10:38:03]CAPDU: 80 0D 03 02 [10:38:03]Write to MH i2c: E2 08 00 3C A7 80 0D 03 02 00 00 00 00 5E [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:03]Read from MH i2c: E2 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 0B 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 0B 00 3C A7 00 49 37 50 85 92 40 F0 C6 90 00 3C [10:38:03]RAPDU: 49 37 50 85 92 40 F0 C6 90 00 [10:38:03]wFMCommunicate OK [10:38:03]SAM_PROTO_SignData done [10:38:03]FM_MakeSignedData done [10:38:03]CreateOFDProtocolMessage [10:38:03]wFMCommunicate request_size=4 [10:38:03]MH_SAM_APDU [10:38:03]CAPDU: 80 11 00 00 [10:38:03]Write to MH i2c: E2 08 00 3D A7 80 11 00 00 00 00 00 00 5E [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:03]Read from MH i2c: E2 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 17 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: E2 17 00 3D A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BA [10:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:38:03]wFMCommunicate OK [10:38:03]CreateOFDProtocolMessage done [10:38:03]OFDSenderStorePacket 69876 [10:38:03]StoreOFDPacket docnum=69876 [10:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 20 01 00 00 89 14 18 01 AB DF 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 65 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F4 10 01 00 35 04 06 00 AD F9 43 D0 CF 6C 49 37 50 85 92 40 F0 C6 [10:38:03]CheckFolder [10:38:03]dirname=/storage/ofd_packets [10:38:03]CheckFolder done [10:38:03]ProducePacketName [10:38:03]name=ofd_packets/00069876 [10:38:03]NVStorageSaveData ofd_packets/00069876 [10:38:03]File name is /storage/ofd_packets/00069876 [10:38:03]Write 318 bytes [10:38:03]NVStorageSaveData done [10:38:03]OFDSenderStorePacket done [10:38:03]KKMCreateOFDPacket done [10:38:03]NVStorageSaveData kkm_last_timestamp [10:38:03]File name is /storage/kkm_last_timestamp [10:38:03]Write 4 bytes [10:38:03]NVStorageSaveData done [10:38:03]ExternCall_PrintAddStr [10:38:03]wPrintStart [10:38:03]Write to MH i2c: 01 00 00 3E A7 E5 [10:38:03]Write i2c OK [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 07 00 [10:38:03]MH_I2C_Read... [10:38:03]Read from MH i2c: 01 07 00 3E A7 00 00 00 00 00 FF 0F FA [10:38:03]RasterBufferAndPrint [10:38:03]line Счет N : (3)137111 [10:38:03]line ИНН: 02508201610067 [10:38:03]line Контрольно-Кассовый Чек [10:38:03]line ПРОДАЖА [10:38:03]line Товар: 4600721021627 [10:38:03]line Пиво БАД 0,5л ст [10:38:03]line 1.000 * 150.00 [10:38:03]line = 150.00 [10:38:03]line НДС 12% НСП 1% [10:38:03]line > о реализуемом товаре [10:38:03]line ИТОГО: 150.00 [10:38:03]line НСП 1% : 1.33 [10:38:03]line НДС 12% : 15.93 [10:38:03]line Наличными: 150.00 [10:38:03]line Безнал.: 0.00 [10:38:03]line Место: АЗС № 125 "Партнер Нефть" [10:38:03]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:38:03]line СНО: Общий режим [10:38:03]line Чек 39 01.08.2024 10:38 [10:38:03]line Смена: 433 ФФД: 1.0 [10:38:03]line ЗНМ: 0300000049 [10:38:03]line РНМ: 0000000000092638 [10:38:03]line Версия ККМ: 001 [10:38:03]line ФМ: 0000000000874949 [10:38:03]line ФД: 69876 [10:38:03]line ФПД: 191286096220012 [10:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T103819&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69876&fm=191286096220012&tin=02508201610067®Number=0000000000092638&sum=15000 [10:38:03]line 0 [10:38:03]OFD Sender: Processing packet 69876 [packets to send 19, broken 18] [10:38:03]ProducePacketName [10:38:03]name=ofd_packets/00069876 [10:38:03]OFD Sender: To server: pG, [10:38:03]CommunicateWithHost lk.salyk.kg:30040 [10:38:03]ConnectInit lk.salyk.kg [10:38:03]written 0, free lines is 4095 [10:38:03]Connected sock=10 [10:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 20 01 00 00 89 14 18 01 AB DF 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 65 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F4 10 01 00 35 04 06 00 AD F9 43 D0 CF 6C 49 37 50 85 92 40 F0 C6 [10:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D0 D3 47 00 9E 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 34 39 34 39 10 04 04 00 F4 10 01 00 F4 03 04 00 FD 0B AB 66 B6 04 01 00 00 AB 68 01 89 D5 A8 AB A9 [10:38:04]CommunicateWithHost err = 0 [10:38:04]CheckOFDResponse [10:38:04]1017 (14) - 77093643461234 [10:38:04]1041 (16) - 0000000000874949 [10:38:04]1040 (4) - 69876 [10:38:04]1012 (4) - 01.08.2024 04:15 [10:38:04]1206 (1) - 0 [10:38:04]OFD Sender: Remove packet 69876 [10:38:04]ProducePacketName [10:38:04]name=ofd_packets/00069876 [10:38:04]NVStorageDeleteData [10:38:04]Write to MH i2c: 01 00 00 66 A7 0D [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: 01 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: 01 07 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: 01 07 00 66 A7 00 00 00 00 00 20 0D 41 [10:38:04]RasterBufferAndPrint [10:38:04]line [10:38:04]line [10:38:04]line [10:38:04]line [10:38:04]line [10:38:04]written 0, free lines is 3366 [10:38:04]MH_Cut [10:38:04]Write to MH i2c: D1 01 00 6D A7 01 E6 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: D1 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: D1 01 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: D1 01 00 6D A7 00 E5 [10:38:04]Write to MH i2c: 01 00 00 6E A7 15 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]OFD Sender: No OFD packet to send [10:38:04]*** Cut start [10:38:04]*** Partial cut [10:38:04]*** CUTSNS_PIN = 1 [10:38:04]*** CUTSNS_PIN = 0 [10:38:05]*** Brake cut motor [10:38:05]Read from MH i2c: 01 [10:38:05]MH_I2C_Read... [10:38:05]*** Stop cut motor [10:38:05]*** Cut end [10:38:05]Read from MH i2c: 01 07 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: 01 07 00 6E A7 00 00 00 00 00 FF 0F 2A [10:38:05]process_action close_receipt done [10:38:05]requested_data is exist [10:38:05]produce_requested_data [10:38:05]requested_item fm.sn is exist - process it [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 11 00 00 [10:38:05]Write to MH i2c: E2 08 00 6F A7 80 11 00 00 00 00 00 00 90 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 17 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 17 00 6F A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EC [10:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:38:05]wFMCommunicate OK [10:38:05]requested_item fd.num is exist - process it [10:38:05]SAM_PROTO_GetFieldsCounters [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 13 00 00 [10:38:05]Write to MH i2c: E2 08 00 70 A7 80 13 00 00 00 00 00 00 93 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 62 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 62 00 70 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F4 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [10:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F4 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:05]wFMCommunicate OK [10:38:05]SAM_PROTO_GetFieldsCounters done [10:38:05]requested_item shift.num is exist - process it [10:38:05]requested_item shift.opened is exist - process it [10:38:05]req_shift_opened [10:38:05]FM_GetShiftState [10:38:05]SAM_PROTO_GetShiftState [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 13 01 00 [10:38:05]Write to MH i2c: E2 08 00 71 A7 80 13 01 00 00 00 00 00 95 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 0E 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 0E 00 71 A7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 CE [10:38:05]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:38:05]wFMCommunicate OK [10:38:05]SAM_PROTO_GetShiftState done [10:38:05]FM_GetShiftState done [10:38:05]req_shift_opened done [10:38:05]requested_item shift.open_date is exist - process it [10:38:05]req_shift_open_date [10:38:05]req_shift_open_date done [10:38:05]produce_requested_data done [10:38:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69876,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:38:05]process_action_free close_receipt [10:38:05]json_value_free [10:38:05]json_value_free done [10:38:05]process_json_proto returns [10:38:05]Send response to host [10:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69876,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:38:05]free response buf [10:38:05]execute_script done [10:38:05]execute_script returns [10:38:05]free content buf [10:38:05]Sock 7.Close socket [10:38:05]Sock 7.Thread stoped [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:00]accept exits with 9 [10:40:00]New connection [10:40:00]New thread 3066858852 created [10:40:00]Thread 3067002212 joined [10:40:00]Waiting for new connection... [10:40:00] Sock 9.Parse request [10:40:00]Sock 9.Check first char [10:40:00]Sock 9.First char is OK [10:40:00]request: POST /json_proto HTTP/1.0 [10:40:00]Method: POST [10:40:00]URL: /json_proto [10:40:00]Method is POST - this is cgi request [10:40:00]url: /json_proto [10:40:00]query_string will be loaded in cgi processing [10:40:00]execute_cgi json_proto POST (null) [10:40:00]execute_cgi path=json_proto method=POST [10:40:00]POST find Content-Length [10:40:00]Host: 172.17.49.132:8080 [10:40:00]Content-Length: 647 [10:40:00]Content-Type: application/json [10:40:00] [10:40:00]POST finish read [10:40:00]Found Content-Length = 647 [10:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137112", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:00]execute_script... [10:40:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137112", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:00]POST & json_proto [10:40:00]process_json_proto [10:40:00]json parsed OK: [10:40:00]protocol is kg_v1.0 [10:40:00]action value=close_receipt [10:40:00]process_action close_receipt [10:40:00]cmd_close_receipt [10:40:00]MH_GetDate [10:40:00]Write to MH i2c: F0 00 00 72 A7 08 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: F0 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: F0 09 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: F0 09 00 72 A7 00 12 66 AB 66 E7 4B C0 64 F0 [10:40:00]GetLastDocTimeStamp 1722508699 [10:40:00]current date 1722508818 [10:40:00]FM_GetShiftState [10:40:00]SAM_PROTO_GetShiftState [10:40:00]wFMCommunicate request_size=4 [10:40:00]MH_SAM_APDU [10:40:00]CAPDU: 80 13 01 00 [10:40:00]Write to MH i2c: E2 08 00 73 A7 80 13 01 00 00 00 00 00 97 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:00]Read from MH i2c: E2 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 0E 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 0E 00 73 A7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D0 [10:40:00]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:40:00]wFMCommunicate OK [10:40:00]SAM_PROTO_GetShiftState done [10:40:00]FM_GetShiftState done [10:40:00]opened in 1722472772 [10:40:00]opened+sec_in_day 1722559172 [10:40:00]quantity*price = 13000 [10:40:00]sum+1 = 13001 [10:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 40 01.08.2024 10:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69877 ФПД: 23079027623430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104018&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69877&fm=23079027623430&tin=02508201610067®Number=0000000000092638&sum=13000 0 [10:40:01]StoreToDocumentArchive [10:40:01]shift 433 fd 69877 [10:40:01]save to /storage/0433/doc_00069877 [10:40:01]save last doc name /storage/0433/doc_00069877 to /storage/kkm_last_doc_name [10:40:01]save OK [10:40:01]Clear old archive folders... [10:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:40:01]tlvbuf is 013FB990 [10:40:01]SAM_PROTO_ClearQueue [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 09 00 00 [10:40:01]Write to MH i2c: E2 08 00 80 A7 80 09 00 00 00 00 00 00 99 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 80 A7 00 90 00 9B [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]SAM_PROTO_ClearQueue done [10:40:01]KKMCreateOFDPacket [10:40:01]OFDProtocolAddRootSTLVToBuf [10:40:01]FM_MakeSignedData [10:40:01]FM_MakeSignedData [10:40:01]SAM_PROTO_SignData [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 01 02 [10:40:01]Write to MH i2c: E2 08 00 81 A7 80 0D 01 02 00 00 00 00 A1 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 81 A7 00 90 00 9C [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]wFMCommunicate request_size=255 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 12 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 [10:40:01]Write to MH i2c: E2 02 01 82 A7 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 12 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 A5 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 03 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 03 00 82 A7 00 90 00 9D [10:40:02]RAPDU: 90 00 [10:40:02]wFMCommunicate OK [10:40:02]wFMCommunicate request_size=31 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 39 10 04 04 00 F5 10 01 00 35 04 06 00 14 FD 81 3E 46 06 [10:40:02]Write to MH i2c: E2 22 00 83 A7 80 0D 02 02 1A 00 30 30 38 37 34 39 34 39 10 04 04 00 F5 10 01 00 35 04 06 00 14 FD 81 3E 46 06 00 00 FA [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 03 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 03 00 83 A7 00 90 00 9E [10:40:02]RAPDU: 90 00 [10:40:02]wFMCommunicate OK [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 0D 03 02 [10:40:02]Write to MH i2c: E2 08 00 84 A7 80 0D 03 02 00 00 00 00 A6 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0B 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0B 00 84 A7 00 CA 32 22 3B 89 F8 7F 75 90 00 75 [10:40:02]RAPDU: CA 32 22 3B 89 F8 7F 75 90 00 [10:40:02]wFMCommunicate OK [10:40:02]SAM_PROTO_SignData done [10:40:02]FM_MakeSignedData done [10:40:02]CreateOFDProtocolMessage [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 11 00 00 [10:40:02]Write to MH i2c: E2 08 00 85 A7 80 11 00 00 00 00 00 00 A6 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 17 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 17 00 85 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 02 [10:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:40:02]wFMCommunicate OK [10:40:02]CreateOFDProtocolMessage done [10:40:02]OFDSenderStorePacket 69877 [10:40:02]StoreOFDPacket docnum=69877 [10:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 4D 33 1C 01 0B E6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 12 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F5 10 01 00 35 04 06 00 14 FD 81 3E 46 06 CA 32 22 3B 89 F8 7F 75 [10:40:02]CheckFolder [10:40:02]dirname=/storage/ofd_packets [10:40:02]CheckFolder done [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00069877 [10:40:02]NVStorageSaveData ofd_packets/00069877 [10:40:02]File name is /storage/ofd_packets/00069877 [10:40:02]Write 322 bytes [10:40:02]NVStorageSaveData done [10:40:02]OFDSenderStorePacket done [10:40:02]KKMCreateOFDPacket done [10:40:02]NVStorageSaveData kkm_last_timestamp [10:40:02]File name is /storage/kkm_last_timestamp [10:40:02]Write 4 bytes [10:40:02]NVStorageSaveData done [10:40:02]ExternCall_PrintAddStr [10:40:02]wPrintStart [10:40:02]Write to MH i2c: 01 00 00 86 A7 2D [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 [10:40:02]MH_I2C_Read... [10:40:02]OFD Sender: Processing packet 69877 [packets to send 19, broken 18] [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00069877 [10:40:02]OFD Sender: To server: pG, [10:40:02]CommunicateWithHost lk.salyk.kg:30040 [10:40:02]ConnectInit lk.salyk.kg [10:40:02]Read from MH i2c: 01 07 00 86 A7 00 00 00 00 00 FF 0F 42 [10:40:02]RasterBufferAndPrint [10:40:02]line Счет N : (3)137112 [10:40:02]line ИНН: 02508201610067 [10:40:02]line Контрольно-Кассовый Чек [10:40:02]line ПРОДАЖА [10:40:02]line Товар: 47011656 [10:40:02]line Водка Пшеничная 0,1л [10:40:02]line 2.000 * 65.00 [10:40:02]line = 130.00 [10:40:02]line НДС 12% НСП 1% [10:40:02]line > о реализуемом товаре [10:40:02]line ИТОГО: 130.00 [10:40:02]line НСП 1% : 1.15 [10:40:02]line НДС 12% : 13.80 [10:40:02]line Наличными: 130.00 [10:40:02]line Безнал.: 0.00 [10:40:02]line Место: АЗС № 125 "Партнер Нефть" [10:40:02]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:40:02]line СНО: Общий режим [10:40:02]line Чек 40 01.08.2024 10:40 [10:40:02]line Смена: 433 ФФД: 1.0 [10:40:02]line ЗНМ: 0300000049 [10:40:02]line РНМ: 0000000000092638 [10:40:02]line Версия ККМ: 001 [10:40:02]line ФМ: 0000000000874949 [10:40:02]line ФД: 69877 [10:40:02]line ФПД: 23079027623430 [10:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104018&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69877&fm=23079027623430&tin=02508201610067®Number=0000000000092638&sum=13000 [10:40:02]line 0 [10:40:02]written 0, free lines is 4095 [10:40:02]Connected sock=10 [10:40:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 4D 33 1C 01 0B E6 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 12 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F5 10 01 00 35 04 06 00 14 FD 81 3E 46 06 CA 32 22 3B 89 F8 7F 75 [10:40:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CF D7 47 00 55 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F5 10 01 00 F4 03 04 00 73 0C AB 66 B6 04 01 00 00 3E 61 82 82 8C 16 4D 81 [10:40:02]CommunicateWithHost err = 0 [10:40:02]CheckOFDResponse [10:40:02]1017 (14) - 77093643461234 [10:40:02]1041 (16) - 0000000000874949 [10:40:02]1040 (4) - 69877 [10:40:02]1012 (4) - 01.08.2024 04:17 [10:40:02]1206 (1) - 0 [10:40:02]OFD Sender: Remove packet 69877 [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00069877 [10:40:02]NVStorageDeleteData [10:40:02]Write to MH i2c: 01 00 00 AE A7 55 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 AE A7 00 00 00 00 00 07 0D 70 [10:40:02]RasterBufferAndPrint [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]written 0, free lines is 3341 [10:40:02]MH_Cut [10:40:02]Write to MH i2c: D1 01 00 B5 A7 01 2E [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 01 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 01 00 B5 A7 00 2D [10:40:02]Write to MH i2c: 01 00 00 B6 A7 5D [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:03]OFD Sender: No OFD packet to send [10:40:03]*** Cut start [10:40:03]*** Partial cut [10:40:03]*** CUTSNS_PIN = 1 [10:40:03]*** CUTSNS_PIN = 0 [10:40:03]*** Brake cut motor [10:40:03]Read from MH i2c: 01 [10:40:04]MH_I2C_Read... [10:40:04]*** Stop cut motor [10:40:04]*** Cut end [10:40:04]Read from MH i2c: 01 07 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 B6 A7 00 00 00 00 00 FF 0F 72 [10:40:04]process_action close_receipt done [10:40:04]requested_data is exist [10:40:04]produce_requested_data [10:40:04]requested_item fm.sn is exist - process it [10:40:04]wFMCommunicate request_size=4 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 11 00 00 [10:40:04]Write to MH i2c: E2 08 00 B7 A7 80 11 00 00 00 00 00 00 D8 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 17 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 17 00 B7 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 34 [10:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:40:04]wFMCommunicate OK [10:40:04]requested_item fd.num is exist - process it [10:40:04]SAM_PROTO_GetFieldsCounters [10:40:04]wFMCommunicate request_size=4 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 13 00 00 [10:40:04]Write to MH i2c: E2 08 00 B8 A7 80 13 00 00 00 00 00 00 DB [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 62 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 62 00 B8 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F5 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F5 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:04]wFMCommunicate OK [10:40:04]SAM_PROTO_GetFieldsCounters done [10:40:04]requested_item shift.num is exist - process it [10:40:04]requested_item shift.opened is exist - process it [10:40:04]req_shift_opened [10:40:04]FM_GetShiftState [10:40:04]SAM_PROTO_GetShiftState [10:40:04]wFMCommunicate request_size=4 [10:40:04]MH_SAM_APDU [10:40:04]CAPDU: 80 13 01 00 [10:40:04]Write to MH i2c: E2 08 00 B9 A7 80 13 01 00 00 00 00 00 DD [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:04]Read from MH i2c: E2 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 0E 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: E2 0E 00 B9 A7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 16 [10:40:04]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:40:04]wFMCommunicate OK [10:40:04]SAM_PROTO_GetShiftState done [10:40:04]FM_GetShiftState done [10:40:04]req_shift_opened done [10:40:04]requested_item shift.open_date is exist - process it [10:40:04]req_shift_open_date [10:40:04]req_shift_open_date done [10:40:04]produce_requested_data done [10:40:04]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69877,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:40:04]process_action_free close_receipt [10:40:04]json_value_free [10:40:04]json_value_free done [10:40:04]process_json_proto returns [10:40:04]Send response to host [10:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69877,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:40:04]free response buf [10:40:04]execute_script done [10:40:04]execute_script returns [10:40:04]free content buf [10:40:04]Sock 9.Close socket [10:40:04]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:21]accept exits with 7 [10:42:21]New connection [10:42:21]New thread 3067002212 created [10:42:21]Thread 3066858852 joined [10:42:21]Waiting for new connection... [10:42:21] Sock 7.Parse request [10:42:21]Sock 7.Check first char [10:42:21]Sock 7.First char is OK [10:42:21]request: POST /json_proto HTTP/1.0 [10:42:21]Method: POST [10:42:21]URL: /json_proto [10:42:21]Method is POST - this is cgi request [10:42:21]url: /json_proto [10:42:21]query_string will be loaded in cgi processing [10:42:21]execute_cgi json_proto POST (null) [10:42:21]execute_cgi path=json_proto method=POST [10:42:21]POST find Content-Length [10:42:21]Host: 172.17.49.132:8080 [10:42:21]Content-Length: 678 [10:42:21]Content-Type: application/json [10:42:21] [10:42:21]POST finish read [10:42:21]Found Content-Length = 678 [10:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:21]execute_script... [10:42: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)874624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:21]POST & json_proto [10:42:21]process_json_proto [10:42:21]json parsed OK: [10:42:21]protocol is kg_v1.0 [10:42:21]action value=close_receipt [10:42:21]process_action close_receipt [10:42:21]cmd_close_receipt [10:42:21]MH_GetDate [10:42:21]Write to MH i2c: F0 00 00 BA A7 50 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: F0 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: F0 09 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: F0 09 00 BA A7 00 9E 66 AB 66 E7 4B C0 64 C4 [10:42:21]GetLastDocTimeStamp 1722508818 [10:42:21]current date 1722508958 [10:42:21]FM_GetShiftState [10:42:21]SAM_PROTO_GetShiftState [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 13 01 00 [10:42:21]Write to MH i2c: E2 08 00 BB A7 80 13 01 00 00 00 00 00 DF [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 0E 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 0E 00 BB A7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 18 [10:42:21]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:42:21]wFMCommunicate OK [10:42:21]SAM_PROTO_GetShiftState done [10:42:21]FM_GetShiftState done [10:42:21]opened in 1722472772 [10:42:21]opened+sec_in_day 1722559172 [10:42:21]quantity*price = 100016 [10:42:21]sum+1 = 100017 [10:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 41 01.08.2024 10:42 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69878 ФПД: 114401521131242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104238&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69878&fm=114401521131242&tin=02508201610067®Number=0000000000092638&sum=100000 [10:42:22]StoreToDocumentArchive [10:42:22]shift 433 fd 69878 [10:42:22]save to /storage/0433/doc_00069878 [10:42:22]save last doc name /storage/0433/doc_00069878 to /storage/kkm_last_doc_name [10:42:22]save OK [10:42:22]Clear old archive folders... [10:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:42:22]tlvbuf is 0116B520 [10:42:22]SAM_PROTO_ClearQueue [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 09 00 00 [10:42:22]Write to MH i2c: E2 08 00 C8 A7 80 09 00 00 00 00 00 00 E1 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 C8 A7 00 90 00 E3 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]SAM_PROTO_ClearQueue done [10:42:22]KKMCreateOFDPacket [10:42:22]OFDProtocolAddRootSTLVToBuf [10:42:22]FM_MakeSignedData [10:42:22]FM_MakeSignedData [10:42:22]SAM_PROTO_SignData [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 01 02 [10:42:22]Write to MH i2c: E2 08 00 C9 A7 80 0D 01 02 00 00 00 00 E9 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 C9 A7 00 90 00 E4 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=255 [10:42:22]MH_SAM_APDU [10:42: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 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F6 10 01 00 35 04 06 00 68 0C 2E 07 [10:42:22]Write to MH i2c: E2 02 01 CA A7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F6 10 01 00 35 04 06 00 68 0C 2E 07 00 00 39 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 CA A7 00 90 00 E5 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=7 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 02 02 02 5E EA [10:42:22]Write to MH i2c: E2 0A 00 CB A7 80 0D 02 02 02 00 5E EA 00 00 38 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 CB A7 00 90 00 E6 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 03 02 [10:42:22]Write to MH i2c: E2 08 00 CC A7 80 0D 03 02 00 00 00 00 EE [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 0B 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 0B 00 CC A7 00 4A 68 CF 48 65 9B DB 3A 90 00 CD [10:42:22]RAPDU: 4A 68 CF 48 65 9B DB 3A 90 00 [10:42:22]wFMCommunicate OK [10:42:22]SAM_PROTO_SignData done [10:42:22]FM_MakeSignedData done [10:42:22]CreateOFDProtocolMessage [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 11 00 00 [10:42:22]Write to MH i2c: E2 08 00 CD A7 80 11 00 00 00 00 00 00 EE [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 17 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 17 00 CD A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 4A [10:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:42:22]wFMCommunicate OK [10:42:22]CreateOFDProtocolMessage done [10:42:22]OFDSenderStorePacket 69878 [10:42:22]StoreOFDPacket docnum=69878 [10:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 B7 5A 04 01 9C B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F6 10 01 00 35 04 06 00 68 0C 2E 07 5E EA 4A 68 CF 48 65 9B DB 3A [10:42:22]CheckFolder [10:42:22]dirname=/storage/ofd_packets [10:42:22]CheckFolder done [10:42:22]ProducePacketName [10:42:22]name=ofd_packets/00069878 [10:42:22]NVStorageSaveData ofd_packets/00069878 [10:42:22]File name is /storage/ofd_packets/00069878 [10:42:22]Write 298 bytes [10:42:22]NVStorageSaveData done [10:42:22]OFDSenderStorePacket done [10:42:22]KKMCreateOFDPacket done [10:42:22]NVStorageSaveData kkm_last_timestamp [10:42:22]File name is /storage/kkm_last_timestamp [10:42:22]Write 4 bytes [10:42:22]NVStorageSaveData done [10:42:22]ExternCall_PrintAddStr [10:42:22]wPrintStart [10:42:22]Write to MH i2c: 01 00 00 CE A7 75 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 CE A7 00 00 00 00 00 FF 0F 8A [10:42:22]RasterBufferAndPrint [10:42:22]line Счет N : (1)874624 [10:42:22]line ИНН: 02508201610067 [10:42:22]line Контрольно-Кассовый Чек [10:42:22]line ПРОДАЖА [10:42:22]line ТРК (МРК, ГНК) : 1 [10:42:22]line Товар: 2710194210 [10:42:22]line ДТ-К-5 [10:42:22]line 13.300 * 75.20 [10:42:22]line = 1000.16 [10:42:22]line НДС 12% НСП 1% [10:42:22]line > о реализуемом товаре [10:42:22]line ОКРУГЛЕНИЕ: -0.16 [10:42:22]line ИТОГО: 1000.00 [10:42:22]line Внесено: 1000.00 [10:42:22]line СДАЧА: 0.00 [10:42:22]line НСП 1% : 8.85 [10:42:22]line НДС 12% : 106.21 [10:42:22]line Наличными: 1000.00 [10:42:22]line Безнал.: 0.00 [10:42:22]line Место: АЗС № 125 "Партнер Нефть" [10:42:22]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:42:23]line СНО: Общий режим [10:42:23]line Чек 41 01.08.2024 10:42 [10:42:23]line Смена: 433 ФФД: 1.0 [10:42:23]line ЗНМ: 0300000049 [10:42:23]line РНМ: 0000000000092638 [10:42:23]line Версия ККМ: 001 [10:42:23]line ФМ: 0000000000874949 [10:42:23]line ФД: 69878 [10:42:23]line ФПД: 114401521131242 [10:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104238&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69878&fm=114401521131242&tin=02508201610067®Number=0000000000092638&sum=100000 [10:42:23]OFD Sender: Processing packet 69878 [packets to send 19, broken 18] [10:42:23]ProducePacketName [10:42:23]name=ofd_packets/00069878 [10:42:23]OFD Sender: To server: pG, [10:42:23]CommunicateWithHost lk.salyk.kg:30040 [10:42:23]ConnectInit lk.salyk.kg [10:42:23]written 0, free lines is 4095 [10:42:23]Connected sock=10 [10:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 B7 5A 04 01 9C B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 9E 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F6 10 01 00 35 04 06 00 68 0C 2E 07 5E EA 4A 68 CF 48 65 9B DB 3A [10:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 68 FE 47 00 F7 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F6 10 01 00 F4 03 04 00 00 0D AB 66 B6 04 01 00 00 07 53 22 D6 3D C9 DE A7 [10:42:23]CommunicateWithHost err = 0 [10:42:23]CheckOFDResponse [10:42:23]1017 (14) - 77093643461234 [10:42:23]1041 (16) - 0000000000874949 [10:42:23]1040 (4) - 69878 [10:42:23]1012 (4) - 01.08.2024 04:20 [10:42:23]1206 (1) - 0 [10:42:23]OFD Sender: Remove packet 69878 [10:42:23]ProducePacketName [10:42:23]name=ofd_packets/00069878 [10:42:23]NVStorageDeleteData [10:42:23]Write to MH i2c: 01 00 00 F9 A7 A0 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 07 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 07 00 F9 A7 00 00 00 00 00 ED 0C A0 [10:42:23]RasterBufferAndPrint [10:42:23]line [10:42:23]line [10:42:23]line [10:42:23]line [10:42:23]line [10:42:23]written 0, free lines is 3315 [10:42:23]MH_Cut [10:42:23]Write to MH i2c: D1 01 00 00 A8 01 7A [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: D1 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: D1 01 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: D1 01 00 00 A8 00 79 [10:42:23]Write to MH i2c: 01 00 00 01 A8 A9 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]OFD Sender: No OFD packet to send [10:42:24]*** Cut start [10:42:24]*** Partial cut [10:42:24]*** CUTSNS_PIN = 1 [10:42:24]*** CUTSNS_PIN = 0 [10:42:24]*** Brake cut motor [10:42:24]Read from MH i2c: 01 [10:42:24]MH_I2C_Read... [10:42:24]*** Stop cut motor [10:42:24]*** Cut end [10:42:24]Read from MH i2c: 01 07 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: 01 07 00 01 A8 00 00 00 00 00 FF 0F BE [10:42:24]process_action close_receipt done [10:42:24]requested_data is exist [10:42:24]produce_requested_data [10:42:24]requested_item fm.sn is exist - process it [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 11 00 00 [10:42:24]Write to MH i2c: E2 08 00 02 A8 80 11 00 00 00 00 00 00 24 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 17 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 17 00 02 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 80 [10:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:42:24]wFMCommunicate OK [10:42:24]requested_item fd.num is exist - process it [10:42:24]SAM_PROTO_GetFieldsCounters [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 00 00 [10:42:24]Write to MH i2c: E2 08 00 03 A8 80 13 00 00 00 00 00 00 27 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 03 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F6 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [10:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F6 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetFieldsCounters done [10:42:24]requested_item shift.num is exist - process it [10:42:24]requested_item shift.opened is exist - process it [10:42:24]req_shift_opened [10:42:24]FM_GetShiftState [10:42:24]SAM_PROTO_GetShiftState [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 01 00 [10:42:24]Write to MH i2c: E2 08 00 04 A8 80 13 01 00 00 00 00 00 29 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:25]Read from MH i2c: E2 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 0E 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 0E 00 04 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 62 [10:42:25]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:42:25]wFMCommunicate OK [10:42:25]SAM_PROTO_GetShiftState done [10:42:25]FM_GetShiftState done [10:42:25]req_shift_opened done [10:42:25]requested_item shift.open_date is exist - process it [10:42:25]req_shift_open_date [10:42:25]req_shift_open_date done [10:42:25]produce_requested_data done [10:42:25]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69878,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:42:25]process_action_free close_receipt [10:42:25]json_value_free [10:42:25]json_value_free done [10:42:25]process_json_proto returns [10:42:25]Send response to host [10:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69878,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:42:25]free response buf [10:42:25]execute_script done [10:42:25]execute_script returns [10:42:25]free content buf [10:42:25]Sock 7.Close socket [10:42:25]Sock 7.Thread stoped [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:42]accept exits with 9 [10:43:42]New connection [10:43:42]New thread 3066858852 created [10:43:42]Thread 3067002212 joined [10:43:42]Waiting for new connection... [10:43:42] Sock 9.Parse request [10:43:42]Sock 9.Check first char [10:43:42]Sock 9.First char is OK [10:43:42]request: POST /json_proto HTTP/1.0 [10:43:42]Method: POST [10:43:42]URL: /json_proto [10:43:42]Method is POST - this is cgi request [10:43:42]url: /json_proto [10:43:42]query_string will be loaded in cgi processing [10:43:42]execute_cgi json_proto POST (null) [10:43:42]execute_cgi path=json_proto method=POST [10:43:42]POST find Content-Length [10:43:42]Host: 172.17.49.132:8080 [10:43:42]Content-Length: 682 [10:43:42]Content-Type: application/json [10:43:42] [10:43:42]POST finish read [10:43:42]Found Content-Length = 682 [10:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "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" ] } } [10:43:42]execute_script... [10:43: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)874627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "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" ] } } [10:43:42]POST & json_proto [10:43:42]process_json_proto [10:43:42]json parsed OK: [10:43:42]protocol is kg_v1.0 [10:43:42]action value=close_receipt [10:43:42]process_action close_receipt [10:43:42]cmd_close_receipt [10:43:42]MH_GetDate [10:43:42]Write to MH i2c: F0 00 00 05 A8 9C [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: F0 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: F0 09 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: F0 09 00 05 A8 00 F0 66 AB 66 E7 4B C0 64 62 [10:43:42]GetLastDocTimeStamp 1722508958 [10:43:42]current date 1722509040 [10:43:42]FM_GetShiftState [10:43:42]SAM_PROTO_GetShiftState [10:43:42]wFMCommunicate request_size=4 [10:43:42]MH_SAM_APDU [10:43:42]CAPDU: 80 13 01 00 [10:43:42]Write to MH i2c: E2 08 00 06 A8 80 13 01 00 00 00 00 00 2B [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:42]Read from MH i2c: E2 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 0E 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 0E 00 06 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 64 [10:43:42]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:43:42]wFMCommunicate OK [10:43:42]SAM_PROTO_GetShiftState done [10:43:42]FM_GetShiftState done [10:43:42]opened in 1722472772 [10:43:42]opened+sec_in_day 1722559172 [10:43:42]quantity*price = 140007 [10:43:42]sum+1 = 140008 [10:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 42 01.08.2024 10:44 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69879 ФПД: 87062419323948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104400&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69879&fm=87062419323948&tin=02508201610067®Number=0000000000092638&sum=140000 [10:43:43]StoreToDocumentArchive [10:43:43]shift 433 fd 69879 [10:43:43]save to /storage/0433/doc_00069879 [10:43:43]save last doc name /storage/0433/doc_00069879 to /storage/kkm_last_doc_name [10:43:43]save OK [10:43:43]Clear old archive folders... [10:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:43]tlvbuf is 01491900 [10:43:43]SAM_PROTO_ClearQueue [10:43:43]wFMCommunicate request_size=4 [10:43:43]MH_SAM_APDU [10:43:43]CAPDU: 80 09 00 00 [10:43:43]Write to MH i2c: E2 08 00 13 A8 80 09 00 00 00 00 00 00 2D [10:43:43]Write i2c OK [10:43:43]MH_I2C_Read... [10:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:43]Read from MH i2c: E2 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 03 00 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 03 00 13 A8 00 90 00 2F [10:43:43]RAPDU: 90 00 [10:43:43]wFMCommunicate OK [10:43:43]SAM_PROTO_ClearQueue done [10:43:43]KKMCreateOFDPacket [10:43:43]OFDProtocolAddRootSTLVToBuf [10:43:43]FM_MakeSignedData [10:43:43]FM_MakeSignedData [10:43:43]SAM_PROTO_SignData [10:43:43]wFMCommunicate request_size=4 [10:43:43]MH_SAM_APDU [10:43:43]CAPDU: 80 0D 01 02 [10:43:43]Write to MH i2c: E2 08 00 14 A8 80 0D 01 02 00 00 00 00 35 [10:43:43]Write i2c OK [10:43:43]MH_I2C_Read... [10:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:43]Read from MH i2c: E2 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 03 00 [10:43:43]MH_I2C_Read... [10:43:43]Read from MH i2c: E2 03 00 14 A8 00 90 00 30 [10:43:43]RAPDU: 90 00 [10:43:43]wFMCommunicate OK [10:43:43]wFMCommunicate request_size=255 [10:43:43]MH_SAM_APDU [10:43: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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 2A 00 00 00 F4 03 04 00 F0 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F7 10 01 00 35 04 06 00 4F [10:43:43]Write to MH i2c: E2 02 01 15 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 2A 00 00 00 F4 03 04 00 F0 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F7 10 01 00 35 04 06 00 4F 00 00 B1 [10:43:43]Write i2c OK [10:43:43]MH_I2C_Read... [10:43:43]OFD Sender: No OFD packet to send [10:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 03 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 03 00 15 A8 00 90 00 31 [10:43:44]RAPDU: 90 00 [10:43:44]wFMCommunicate OK [10:43:44]wFMCommunicate request_size=10 [10:43:44]MH_SAM_APDU [10:43:44]CAPDU: 80 0D 02 02 05 2E CC 93 BC 2C [10:43:44]Write to MH i2c: E2 0D 00 16 A8 80 0D 02 02 05 00 2E CC 93 BC 2C 00 00 B7 [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 03 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 03 00 16 A8 00 90 00 32 [10:43:44]RAPDU: 90 00 [10:43:44]wFMCommunicate OK [10:43:44]wFMCommunicate request_size=4 [10:43:44]MH_SAM_APDU [10:43:44]CAPDU: 80 0D 03 02 [10:43:44]Write to MH i2c: E2 08 00 17 A8 80 0D 03 02 00 00 00 00 3A [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 0B 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 0B 00 17 A8 00 5B F5 C1 0C 46 5A F2 57 90 00 41 [10:43:44]RAPDU: 5B F5 C1 0C 46 5A F2 57 90 00 [10:43:44]wFMCommunicate OK [10:43:44]SAM_PROTO_SignData done [10:43:44]FM_MakeSignedData done [10:43:44]CreateOFDProtocolMessage [10:43:44]wFMCommunicate request_size=4 [10:43:44]MH_SAM_APDU [10:43:44]CAPDU: 80 11 00 00 [10:43:44]Write to MH i2c: E2 08 00 18 A8 80 11 00 00 00 00 00 00 3A [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 17 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 17 00 18 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [10:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:43:44]wFMCommunicate OK [10:43:44]CreateOFDProtocolMessage done [10:43:44]OFDSenderStorePacket 69879 [10:43:44]StoreOFDPacket docnum=69879 [10:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 A1 92 07 01 1B 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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 2A 00 00 00 F4 03 04 00 F0 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F7 10 01 00 35 04 06 00 4F 2E CC 93 BC 2C 5B F5 C1 0C 46 5A F2 57 [10:43:44]CheckFolder [10:43:44]dirname=/storage/ofd_packets [10:43:44]CheckFolder done [10:43:44]ProducePacketName [10:43:44]name=ofd_packets/00069879 [10:43:44]NVStorageSaveData ofd_packets/00069879 [10:43:44]File name is /storage/ofd_packets/00069879 [10:43:44]Write 301 bytes [10:43:44]NVStorageSaveData done [10:43:44]OFDSenderStorePacket done [10:43:44]KKMCreateOFDPacket done [10:43:44]NVStorageSaveData kkm_last_timestamp [10:43:44]File name is /storage/kkm_last_timestamp [10:43:44]Write 4 bytes [10:43:44]NVStorageSaveData done [10:43:44]ExternCall_PrintAddStr [10:43:44]wPrintStart [10:43:44]Write to MH i2c: 01 00 00 19 A8 C1 [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: 01 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: 01 07 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: 01 07 00 19 A8 00 00 00 00 00 FF 0F D6 [10:43:44]RasterBufferAndPrint [10:43:44]line Счет N : (1)874627 [10:43:44]line ИНН: 02508201610067 [10:43:44]line Контрольно-Кассовый Чек [10:43:44]line ПРОДАЖА [10:43:44]line ТРК (МРК, ГНК) : 52 [10:43:44]line Товар: 2710124130 [10:43:44]line Аи-92-К-5 [10:43:44]line 20.650 * 67.80 [10:43:44]line = 1400.07 [10:43:44]line НДС 12% НСП 1% [10:43:44]line > о реализуемом товаре [10:43:44]line ОКРУГЛЕНИЕ: -0.07 [10:43:44]line ИТОГО: 1400.00 [10:43:44]line Внесено: 1400.00 [10:43:44]line СДАЧА: 0.00 [10:43:44]line НСП 1% : 12.39 [10:43:44]line НДС 12% : 148.68 [10:43:44]line Наличными: 1400.00 [10:43:44]line Безнал.: 0.00 [10:43:44]line Место: АЗС № 125 "Партнер Нефть" [10:43:44]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:43:44]line СНО: Общий режим [10:43:44]line Чек 42 01.08.2024 10:44 [10:43:44]line Смена: 433 ФФД: 1.0 [10:43:44]line ЗНМ: 0300000049 [10:43:44]line РНМ: 0000000000092638 [10:43:44]line Версия ККМ: 001 [10:43:44]line ФМ: 0000000000874949 [10:43:44]line ФД: 69879 [10:43:44]line ФПД: 87062419323948 [10:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104400&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69879&fm=87062419323948&tin=02508201610067®Number=0000000000092638&sum=140000 [10:43:44]OFD Sender: Processing packet 69879 [packets to send 19, broken 18] [10:43:44]ProducePacketName [10:43:44]name=ofd_packets/00069879 [10:43:44]OFD Sender: To server: pG, [10:43:44]CommunicateWithHost lk.salyk.kg:30040 [10:43:44]ConnectInit lk.salyk.kg [10:43:44]written 0, free lines is 4095 [10:43:44]Connected sock=10 [10:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 A1 92 07 01 1B 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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 2A 00 00 00 F4 03 04 00 F0 66 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F7 10 01 00 35 04 06 00 4F 2E CC 93 BC 2C 5B F5 C1 0C 46 5A F2 57 [10:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 BC 02 47 00 56 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F7 10 01 00 F4 03 04 00 51 0D AB 66 B6 04 01 00 00 C4 13 38 A2 3A A1 76 23 [10:43:44]CommunicateWithHost err = 0 [10:43:44]CheckOFDResponse [10:43:44]1017 (14) - 77093643461234 [10:43:44]1041 (16) - 0000000000874949 [10:43:44]1040 (4) - 69879 [10:43:44]1012 (4) - 01.08.2024 04:21 [10:43:44]1206 (1) - 0 [10:43:44]OFD Sender: Remove packet 69879 [10:43:44]ProducePacketName [10:43:44]name=ofd_packets/00069879 [10:43:44]NVStorageDeleteData [10:43:45]Write to MH i2c: 01 00 00 44 A8 EC [10:43:45]Write i2c OK [10:43:45]MH_I2C_Read... [10:43:45]Read from MH i2c: 01 [10:43:45]MH_I2C_Read... [10:43:45]Read from MH i2c: 01 07 00 [10:43:45]MH_I2C_Read... [10:43:45]Read from MH i2c: 01 07 00 44 A8 00 00 00 00 00 ED 0C EC [10:43:45]RasterBufferAndPrint [10:43:45]line [10:43:45]line [10:43:45]line [10:43:45]line [10:43:45]line [10:43:45]written 0, free lines is 3318 [10:43:45]MH_Cut [10:43:45]Write to MH i2c: D1 01 00 4B A8 01 C5 [10:43:45]Write i2c OK [10:43:45]MH_I2C_Read... [10:43:45]Read from MH i2c: D1 [10:43:45]MH_I2C_Read... [10:43:45]Read from MH i2c: D1 01 00 [10:43:45]MH_I2C_Read... [10:43:45]Read from MH i2c: D1 01 00 4B A8 00 C4 [10:43:45]Write to MH i2c: 01 00 00 4C A8 F4 [10:43:45]Write i2c OK [10:43:45]MH_I2C_Read... [10:43:45]OFD Sender: No OFD packet to send [10:43:45]*** Cut start [10:43:45]*** Partial cut [10:43:45]*** CUTSNS_PIN = 1 [10:43:45]*** CUTSNS_PIN = 0 [10:43:45]*** Brake cut motor [10:43:46]Read from MH i2c: 01 [10:43:46]MH_I2C_Read... [10:43:46]*** Stop cut motor [10:43:46]*** Cut end [10:43:46]Read from MH i2c: 01 07 00 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: 01 07 00 4C A8 00 00 00 00 00 FF 0F 09 [10:43:46]process_action close_receipt done [10:43:46]requested_data is exist [10:43:46]produce_requested_data [10:43:46]requested_item fm.sn is exist - process it [10:43:46]wFMCommunicate request_size=4 [10:43:46]MH_SAM_APDU [10:43:46]CAPDU: 80 11 00 00 [10:43:46]Write to MH i2c: E2 08 00 4D A8 80 11 00 00 00 00 00 00 6F [10:43:46]Write i2c OK [10:43:46]MH_I2C_Read... [10:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:46]Read from MH i2c: E2 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 17 00 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 17 00 4D A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CB [10:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:43:46]wFMCommunicate OK [10:43:46]requested_item fd.num is exist - process it [10:43:46]SAM_PROTO_GetFieldsCounters [10:43:46]wFMCommunicate request_size=4 [10:43:46]MH_SAM_APDU [10:43:46]CAPDU: 80 13 00 00 [10:43:46]Write to MH i2c: E2 08 00 4E A8 80 13 00 00 00 00 00 00 72 [10:43:46]Write i2c OK [10:43:46]MH_I2C_Read... [10:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:46]Read from MH i2c: E2 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 62 00 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 62 00 4E A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F7 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [10:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F7 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:46]wFMCommunicate OK [10:43:46]SAM_PROTO_GetFieldsCounters done [10:43:46]requested_item shift.num is exist - process it [10:43:46]requested_item shift.opened is exist - process it [10:43:46]req_shift_opened [10:43:46]FM_GetShiftState [10:43:46]SAM_PROTO_GetShiftState [10:43:46]wFMCommunicate request_size=4 [10:43:46]MH_SAM_APDU [10:43:46]CAPDU: 80 13 01 00 [10:43:46]Write to MH i2c: E2 08 00 4F A8 80 13 01 00 00 00 00 00 74 [10:43:46]Write i2c OK [10:43:46]MH_I2C_Read... [10:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:46]Read from MH i2c: E2 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 0E 00 [10:43:46]MH_I2C_Read... [10:43:46]Read from MH i2c: E2 0E 00 4F A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 AD [10:43:46]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:43:46]wFMCommunicate OK [10:43:46]SAM_PROTO_GetShiftState done [10:43:46]FM_GetShiftState done [10:43:46]req_shift_opened done [10:43:46]requested_item shift.open_date is exist - process it [10:43:46]req_shift_open_date [10:43:46]req_shift_open_date done [10:43:46]produce_requested_data done [10:43:46]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69879,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:43:46]process_action_free close_receipt [10:43:46]json_value_free [10:43:46]json_value_free done [10:43:46]process_json_proto returns [10:43:46]Send response to host [10:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69879,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:43:46]free response buf [10:43:46]execute_script done [10:43:46]execute_script returns [10:43:46]free content buf [10:43:46]Sock 9.Close socket [10:43:46]Sock 9.Thread stoped [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:31]accept exits with 7 [10:45:31]New connection [10:45:31]New thread 3067002212 created [10:45:31]Thread 3066858852 joined [10:45:31]Waiting for new connection... [10:45:31] Sock 7.Parse request [10:45:31]Sock 7.Check first char [10:45:31]Sock 7.First char is OK [10:45:31]request: POST /json_proto HTTP/1.0 [10:45:31]Method: POST [10:45:31]URL: /json_proto [10:45:31]Method is POST - this is cgi request [10:45:31]url: /json_proto [10:45:31]query_string will be loaded in cgi processing [10:45:31]execute_cgi json_proto POST (null) [10:45:31]execute_cgi path=json_proto method=POST [10:45:31]POST find Content-Length [10:45:31]Host: 172.17.49.132:8080 [10:45:31]Content-Length: 658 [10:45:31]Content-Type: application/json [10:45:31] [10:45:31]POST finish read [10:45:31]Found Content-Length = 658 [10:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137113", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:31]execute_script... [10:45: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 : (3)137113", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:31]POST & json_proto [10:45:31]process_json_proto [10:45:31]json parsed OK: [10:45:31]protocol is kg_v1.0 [10:45:31]action value=close_receipt [10:45:31]process_action close_receipt [10:45:31]cmd_close_receipt [10:45:31]MH_GetDate [10:45:31]Write to MH i2c: F0 00 00 50 A8 E7 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: F0 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: F0 09 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: F0 09 00 50 A8 00 5D 67 AB 66 E7 4B C0 64 1B [10:45:31]GetLastDocTimeStamp 1722509040 [10:45:31]current date 1722509149 [10:45:31]FM_GetShiftState [10:45:31]SAM_PROTO_GetShiftState [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 13 01 00 [10:45:31]Write to MH i2c: E2 08 00 51 A8 80 13 01 00 00 00 00 00 76 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0E 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0E 00 51 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 AF [10:45:31]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:45:31]wFMCommunicate OK [10:45:31]SAM_PROTO_GetShiftState done [10:45:31]FM_GetShiftState done [10:45:31]opened in 1722472772 [10:45:31]opened+sec_in_day 1722559172 [10:45:31]quantity*price = 12500 [10:45:31]sum+1 = 12501 [10:45:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 43 01.08.2024 10:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69880 ФПД: 194229286308835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104549&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69880&fm=194229286308835&tin=02508201610067®Number=0000000000092638&sum=12500 0 [10:45:32]StoreToDocumentArchive [10:45:32]shift 433 fd 69880 [10:45:32]save to /storage/0433/doc_00069880 [10:45:32]save last doc name /storage/0433/doc_00069880 to /storage/kkm_last_doc_name [10:45:32]save OK [10:45:32]Clear old archive folders... [10:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:45:32]tlvbuf is 01471FC0 [10:45:32]SAM_PROTO_ClearQueue [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 09 00 00 [10:45:32]Write to MH i2c: E2 08 00 5E A8 80 09 00 00 00 00 00 00 78 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 5E A8 00 90 00 7A [10:45:32]RAPDU: 90 00 [10:45:32]wFMCommunicate OK [10:45:32]SAM_PROTO_ClearQueue done [10:45:32]KKMCreateOFDPacket [10:45:32]OFDProtocolAddRootSTLVToBuf [10:45:32]FM_MakeSignedData [10:45:32]FM_MakeSignedData [10:45:32]SAM_PROTO_SignData [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 0D 01 02 [10:45:32]Write to MH i2c: E2 08 00 5F A8 80 0D 01 02 00 00 00 00 80 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 5F A8 00 90 00 7B [10:45:32]RAPDU: 90 00 [10:45:32]wFMCommunicate OK [10:45:32]wFMCommunicate request_size=255 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 5D 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 [10:45:32]Write to MH i2c: E2 02 01 60 A8 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 5D 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 00 00 E1 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 60 A8 00 90 00 7C [10:45:33]RAPDU: 90 00 [10:45:33]wFMCommunicate OK [10:45:33]wFMCommunicate request_size=37 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F8 10 01 00 35 04 06 00 B0 A6 87 9D 8B E3 [10:45:33]Write to MH i2c: E2 28 00 61 A8 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F8 10 01 00 35 04 06 00 B0 A6 87 9D 8B E3 00 00 D4 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 61 A8 00 90 00 7D [10:45:33]RAPDU: 90 00 [10:45:33]wFMCommunicate OK [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 0D 03 02 [10:45:33]Write to MH i2c: E2 08 00 62 A8 80 0D 03 02 00 00 00 00 85 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0B 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0B 00 62 A8 00 28 CA 1D 9E 5F A6 06 17 90 00 55 [10:45:33]RAPDU: 28 CA 1D 9E 5F A6 06 17 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_SignData done [10:45:33]FM_MakeSignedData done [10:45:33]CreateOFDProtocolMessage [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 11 00 00 [10:45:33]Write to MH i2c: E2 08 00 63 A8 80 11 00 00 00 00 00 00 85 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 63 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E1 [10:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:45:33]wFMCommunicate OK [10:45:33]CreateOFDProtocolMessage done [10:45:33]OFDSenderStorePacket 69880 [10:45:33]StoreOFDPacket docnum=69880 [10:45:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2A 01 00 00 8E 4F 22 01 D5 52 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 5D 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F8 10 01 00 35 04 06 00 B0 A6 87 9D 8B E3 28 CA 1D 9E 5F A6 06 17 [10:45:33]CheckFolder [10:45:33]dirname=/storage/ofd_packets [10:45:33]CheckFolder done [10:45:33]ProducePacketName [10:45:33]name=ofd_packets/00069880 [10:45:33]NVStorageSaveData ofd_packets/00069880 [10:45:33]File name is /storage/ofd_packets/00069880 [10:45:33]Write 328 bytes [10:45:33]NVStorageSaveData done [10:45:33]OFDSenderStorePacket done [10:45:33]KKMCreateOFDPacket done [10:45:33]NVStorageSaveData kkm_last_timestamp [10:45:33]File name is /storage/kkm_last_timestamp [10:45:33]Write 4 bytes [10:45:33]NVStorageSaveData done [10:45:33]ExternCall_PrintAddStr [10:45:33]wPrintStart [10:45:33]Write to MH i2c: 01 00 00 64 A8 0C [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 07 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 07 00 64 A8 00 00 00 00 00 FF 0F 21 [10:45:33]RasterBufferAndPrint [10:45:33]line Счет N : (3)137113 [10:45:33]line ИНН: 02508201610067 [10:45:33]line Контрольно-Кассовый Чек [10:45:33]line ПРОДАЖА [10:45:33]line Товар: 5449000054227 [10:45:33]line Напиток Кока-Кола 1л [10:45:33]line 1.000 * 125.00 [10:45:33]line = 125.00 [10:45:33]line НДС 12% НСП 1% [10:45:33]line > о реализуемом товаре [10:45:33]line ИТОГО: 125.00 [10:45:33]line НСП 1% : 1.11 [10:45:33]line НДС 12% : 13.27 [10:45:33]line Наличными: 125.00 [10:45:33]line Безнал.: 0.00 [10:45:33]line Место: АЗС № 125 "Партнер Нефть" [10:45:33]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:45:33]line СНО: Общий режим [10:45:33]line Чек 43 01.08.2024 10:45 [10:45:33]line Смена: 433 ФФД: 1.0 [10:45:33]line ЗНМ: 0300000049 [10:45:33]line РНМ: 0000000000092638 [10:45:33]line Версия ККМ: 001 [10:45:33]line ФМ: 0000000000874949 [10:45:33]line ФД: 69880 [10:45:33]line ФПД: 194229286308835 [10:45:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104549&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69880&fm=194229286308835&tin=02508201610067®Number=0000000000092638&sum=12500 [10:45:33]line 0 [10:45:33]OFD Sender: Processing packet 69880 [packets to send 19, broken 18] [10:45:33]ProducePacketName [10:45:33]name=ofd_packets/00069880 [10:45:33]OFD Sender: To server: pG, [10:45:33]CommunicateWithHost lk.salyk.kg:30040 [10:45:33]ConnectInit lk.salyk.kg [10:45:33]written 0, free lines is 4095 [10:45:33]Connected sock=10 [10:45:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2A 01 00 00 8E 4F 22 01 D5 52 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 5D 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F8 10 01 00 35 04 06 00 B0 A6 87 9D 8B E3 28 CA 1D 9E 5F A6 06 17 [10:45:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 AB 37 47 00 D9 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F8 10 01 00 F4 03 04 00 BF 0D AB 66 B6 04 01 00 00 FE CC 6E 94 30 EB B1 E0 [10:45:34]CommunicateWithHost err = 0 [10:45:34]CheckOFDResponse [10:45:34]1017 (14) - 77093643461234 [10:45:34]1041 (16) - 0000000000874949 [10:45:34]1040 (4) - 69880 [10:45:34]1012 (4) - 01.08.2024 04:23 [10:45:34]1206 (1) - 0 [10:45:34]OFD Sender: Remove packet 69880 [10:45:34]ProducePacketName [10:45:34]name=ofd_packets/00069880 [10:45:34]NVStorageDeleteData [10:45:34]Write to MH i2c: 01 00 00 8C A8 34 [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 8C A8 00 00 00 00 00 15 0D 5D [10:45:34]RasterBufferAndPrint [10:45:34]line [10:45:34]line [10:45:34]line [10:45:34]line [10:45:34]line [10:45:34]written 0, free lines is 3356 [10:45:34]MH_Cut [10:45:34]Write to MH i2c: D1 01 00 93 A8 01 0D [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: D1 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: D1 01 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: D1 01 00 93 A8 00 0C [10:45:34]Write to MH i2c: 01 00 00 94 A8 3C [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]OFD Sender: No OFD packet to send [10:45:34]*** Cut start [10:45:34]*** Partial cut [10:45:34]*** CUTSNS_PIN = 1 [10:45:34]*** CUTSNS_PIN = 0 [10:45:35]*** Brake cut motor [10:45:35]Read from MH i2c: 01 [10:45:35]MH_I2C_Read... [10:45:35]*** Stop cut motor [10:45:35]*** Cut end [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 94 A8 00 00 00 00 00 FF 0F 51 [10:45:35]process_action close_receipt done [10:45:35]requested_data is exist [10:45:35]produce_requested_data [10:45:35]requested_item fm.sn is exist - process it [10:45:35]wFMCommunicate request_size=4 [10:45:35]MH_SAM_APDU [10:45:35]CAPDU: 80 11 00 00 [10:45:35]Write to MH i2c: E2 08 00 95 A8 80 11 00 00 00 00 00 00 B7 [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:35]Read from MH i2c: E2 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 17 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 17 00 95 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 13 [10:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:45:35]wFMCommunicate OK [10:45:35]requested_item fd.num is exist - process it [10:45:35]SAM_PROTO_GetFieldsCounters [10:45:35]wFMCommunicate request_size=4 [10:45:35]MH_SAM_APDU [10:45:35]CAPDU: 80 13 00 00 [10:45:35]Write to MH i2c: E2 08 00 96 A8 80 13 00 00 00 00 00 00 BA [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:35]Read from MH i2c: E2 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 62 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 62 00 96 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F8 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:45:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F8 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:35]wFMCommunicate OK [10:45:35]SAM_PROTO_GetFieldsCounters done [10:45:35]requested_item shift.num is exist - process it [10:45:35]requested_item shift.opened is exist - process it [10:45:35]req_shift_opened [10:45:35]FM_GetShiftState [10:45:35]SAM_PROTO_GetShiftState [10:45:35]wFMCommunicate request_size=4 [10:45:35]MH_SAM_APDU [10:45:35]CAPDU: 80 13 01 00 [10:45:35]Write to MH i2c: E2 08 00 97 A8 80 13 01 00 00 00 00 00 BC [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:35]Read from MH i2c: E2 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 0E 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 0E 00 97 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F5 [10:45:35]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:45:35]wFMCommunicate OK [10:45:35]SAM_PROTO_GetShiftState done [10:45:35]FM_GetShiftState done [10:45:35]req_shift_opened done [10:45:35]requested_item shift.open_date is exist - process it [10:45:35]req_shift_open_date [10:45:35]req_shift_open_date done [10:45:35]produce_requested_data done [10:45:35]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69880,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:45:35]process_action_free close_receipt [10:45:35]json_value_free [10:45:35]json_value_free done [10:45:35]process_json_proto returns [10:45:35]Send response to host [10:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69880,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:45:35]free response buf [10:45:35]execute_script done [10:45:35]execute_script returns [10:45:35]free content buf [10:45:35]Sock 7.Close socket [10:45:35]Sock 7.Thread stoped [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:27]accept exits with 9 [10:46:27]New connection [10:46:27]New thread 3066858852 created [10:46:27]Thread 3067002212 joined [10:46:27]Waiting for new connection... [10:46:27] Sock 9.Parse request [10:46:27]Sock 9.Check first char [10:46:27]Sock 9.First char is OK [10:46:27]request: POST /json_proto HTTP/1.0 [10:46:27]Method: POST [10:46:27]URL: /json_proto [10:46:27]Method is POST - this is cgi request [10:46:27]url: /json_proto [10:46:27]query_string will be loaded in cgi processing [10:46:27]execute_cgi json_proto POST (null) [10:46:27]execute_cgi path=json_proto method=POST [10:46:27]POST find Content-Length [10:46:27]Host: 172.17.49.132:8080 [10:46:27]Content-Length: 674 [10:46:27]Content-Type: application/json [10:46:27] [10:46:27]POST finish read [10:46:27]Found Content-Length = 674 [10:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 11.640, "sum" : 875.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:27]execute_script... [10:46: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)874633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 11.640, "sum" : 875.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:27]POST & json_proto [10:46:27]process_json_proto [10:46:27]json parsed OK: [10:46:27]protocol is kg_v1.0 [10:46:27]action value=close_receipt [10:46:27]process_action close_receipt [10:46:27]cmd_close_receipt [10:46:27]MH_GetDate [10:46:27]Write to MH i2c: F0 00 00 98 A8 2F [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: F0 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: F0 09 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: F0 09 00 98 A8 00 95 67 AB 66 E7 4B C0 64 9B [10:46:27]GetLastDocTimeStamp 1722509149 [10:46:27]current date 1722509205 [10:46:27]FM_GetShiftState [10:46:27]SAM_PROTO_GetShiftState [10:46:27]wFMCommunicate request_size=4 [10:46:27]MH_SAM_APDU [10:46:27]CAPDU: 80 13 01 00 [10:46:27]Write to MH i2c: E2 08 00 99 A8 80 13 01 00 00 00 00 00 BE [10:46:27]Write i2c OK [10:46:27]MH_I2C_Read... [10:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:27]Read from MH i2c: E2 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 0E 00 [10:46:27]MH_I2C_Read... [10:46:27]Read from MH i2c: E2 0E 00 99 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F7 [10:46:27]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:46:27]wFMCommunicate OK [10:46:27]SAM_PROTO_GetShiftState done [10:46:27]FM_GetShiftState done [10:46:27]opened in 1722472772 [10:46:27]opened+sec_in_day 1722559172 [10:46:27]quantity*price = 87532 [10:46:27]sum+1 = 87534 [10:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 875.00 Внесено: 875.00 СДАЧА: 0.00 НСП 1% : 7.75 НДС 12% : 92.95 Наличными: 875.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 44 01.08.2024 10:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69881 ФПД: 88437204084689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104645&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69881&fm=88437204084689&tin=02508201610067®Number=0000000000092638&sum=87500 [10:46:28]StoreToDocumentArchive [10:46:28]shift 433 fd 69881 [10:46:28]save to /storage/0433/doc_00069881 [10:46:28]save last doc name /storage/0433/doc_00069881 to /storage/kkm_last_doc_name [10:46:28]save OK [10:46:28]Clear old archive folders... [10:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:46:28]tlvbuf is 012231C0 [10:46:28]SAM_PROTO_ClearQueue [10:46:28]wFMCommunicate request_size=4 [10:46:28]MH_SAM_APDU [10:46:28]CAPDU: 80 09 00 00 [10:46:28]Write to MH i2c: E2 08 00 A6 A8 80 09 00 00 00 00 00 00 C0 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:28]Read from MH i2c: E2 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: E2 03 00 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: E2 03 00 A6 A8 00 90 00 C2 [10:46:28]RAPDU: 90 00 [10:46:28]wFMCommunicate OK [10:46:28]SAM_PROTO_ClearQueue done [10:46:28]KKMCreateOFDPacket [10:46:28]OFDProtocolAddRootSTLVToBuf [10:46:28]FM_MakeSignedData [10:46:28]FM_MakeSignedData [10:46:28]SAM_PROTO_SignData [10:46:28]wFMCommunicate request_size=4 [10:46:28]MH_SAM_APDU [10:46:28]CAPDU: 80 0D 01 02 [10:46:28]Write to MH i2c: E2 08 00 A7 A8 80 0D 01 02 00 00 00 00 C8 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:28]Read from MH i2c: E2 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: E2 03 00 [10:46:28]MH_I2C_Read... [10:46:28]Read from MH i2c: E2 03 00 A7 A8 00 90 00 C3 [10:46:28]RAPDU: 90 00 [10:46:28]wFMCommunicate OK [10:46:28]wFMCommunicate request_size=255 [10:46:28]MH_SAM_APDU [10:46:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 ED 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F9 10 01 00 35 04 06 00 50 6E E4 22 [10:46:28]Write to MH i2c: E2 02 01 A8 A8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 ED 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F9 10 01 00 35 04 06 00 50 6E E4 22 00 00 10 [10:46:28]Write i2c OK [10:46:28]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 A8 A8 00 90 00 C4 [10:46:29]RAPDU: 90 00 [10:46:29]wFMCommunicate OK [10:46:29]wFMCommunicate request_size=7 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 0D 02 02 02 67 D1 [10:46:29]Write to MH i2c: E2 0A 00 A9 A8 80 0D 02 02 02 00 67 D1 00 00 07 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 03 00 A9 A8 00 90 00 C5 [10:46:29]RAPDU: 90 00 [10:46:29]wFMCommunicate OK [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 0D 03 02 [10:46:29]Write to MH i2c: E2 08 00 AA A8 80 0D 03 02 00 00 00 00 CD [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 0B 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 0B 00 AA A8 00 41 E4 6F 2D B5 1F 5D 6B 90 00 2B [10:46:29]RAPDU: 41 E4 6F 2D B5 1F 5D 6B 90 00 [10:46:29]wFMCommunicate OK [10:46:29]SAM_PROTO_SignData done [10:46:29]FM_MakeSignedData done [10:46:29]CreateOFDProtocolMessage [10:46:29]wFMCommunicate request_size=4 [10:46:29]MH_SAM_APDU [10:46:29]CAPDU: 80 11 00 00 [10:46:29]Write to MH i2c: E2 08 00 AB A8 80 11 00 00 00 00 00 00 CD [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:29]Read from MH i2c: E2 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 17 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: E2 17 00 AB A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 29 [10:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:46:29]wFMCommunicate OK [10:46:29]CreateOFDProtocolMessage done [10:46:29]OFDSenderStorePacket 69881 [10:46:29]StoreOFDPacket docnum=69881 [10:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 7E A9 04 01 21 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 ED 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F9 10 01 00 35 04 06 00 50 6E E4 22 67 D1 41 E4 6F 2D B5 1F 5D 6B [10:46:29]CheckFolder [10:46:29]dirname=/storage/ofd_packets [10:46:29]CheckFolder done [10:46:29]ProducePacketName [10:46:29]name=ofd_packets/00069881 [10:46:29]NVStorageSaveData ofd_packets/00069881 [10:46:29]File name is /storage/ofd_packets/00069881 [10:46:29]Write 298 bytes [10:46:29]NVStorageSaveData done [10:46:29]OFDSenderStorePacket done [10:46:29]KKMCreateOFDPacket done [10:46:29]NVStorageSaveData kkm_last_timestamp [10:46:29]File name is /storage/kkm_last_timestamp [10:46:29]Write 4 bytes [10:46:29]NVStorageSaveData done [10:46:29]ExternCall_PrintAddStr [10:46:29]wPrintStart [10:46:29]Write to MH i2c: 01 00 00 AC A8 54 [10:46:29]Write i2c OK [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: 01 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: 01 07 00 [10:46:29]MH_I2C_Read... [10:46:29]Read from MH i2c: 01 07 00 AC A8 00 00 00 00 00 FF 0F 69 [10:46:29]RasterBufferAndPrint [10:46:29]line Счет N : (1)874633 [10:46:29]line ИНН: 02508201610067 [10:46:29]line Контрольно-Кассовый Чек [10:46:29]line ПРОДАЖА [10:46:29]line ТРК (МРК, ГНК) : 1 [10:46:29]line Товар: 2710194210 [10:46:29]line ДТ-К-5 [10:46:29]line 11.640 * 75.20 [10:46:29]line = 875.33 [10:46:29]line НДС 12% НСП 1% [10:46:29]line > о реализуемом товаре [10:46:29]line ОКРУГЛЕНИЕ: -0.33 [10:46:29]line ИТОГО: 875.00 [10:46:29]line Внесено: 875.00 [10:46:29]line СДАЧА: 0.00 [10:46:29]line НСП 1% : 7.75 [10:46:29]line НДС 12% : 92.95 [10:46:29]line Наличными: 875.00 [10:46:29]line Безнал.: 0.00 [10:46:29]line Место: АЗС № 125 "Партнер Нефть" [10:46:29]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:46:29]line СНО: Общий режим [10:46:29]line Чек 44 01.08.2024 10:46 [10:46:29]line Смена: 433 ФФД: 1.0 [10:46:29]line ЗНМ: 0300000049 [10:46:29]line РНМ: 0000000000092638 [10:46:29]line Версия ККМ: 001 [10:46:29]line ФМ: 0000000000874949 [10:46:29]line ФД: 69881 [10:46:29]line ФПД: 88437204084689 [10:46:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T104645&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69881&fm=88437204084689&tin=02508201610067®Number=0000000000092638&sum=87500 [10:46:29]OFD Sender: Processing packet 69881 [packets to send 19, broken 18] [10:46:29]ProducePacketName [10:46:29]name=ofd_packets/00069881 [10:46:29]OFD Sender: To server: pG, [10:46:29]CommunicateWithHost lk.salyk.kg:30040 [10:46:29]ConnectInit lk.salyk.kg [10:46:29]written 0, free lines is 4095 [10:46:29]Connected sock=10 [10:46:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 7E A9 04 01 21 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 ED 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 95 67 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F9 10 01 00 35 04 06 00 50 6E E4 22 67 D1 41 E4 6F 2D B5 1F 5D 6B [10:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 ED 30 47 00 1D 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 F9 10 01 00 F4 03 04 00 F6 0D AB 66 B6 04 01 00 00 8E 71 8E 98 91 95 67 ED [10:46:29]CommunicateWithHost err = 0 [10:46:29]CheckOFDResponse [10:46:29]1017 (14) - 77093643461234 [10:46:29]1041 (16) - 0000000000874949 [10:46:29]1040 (4) - 69881 [10:46:29]1012 (4) - 01.08.2024 04:24 [10:46:29]1206 (1) - 0 [10:46:29]OFD Sender: Remove packet 69881 [10:46:29]ProducePacketName [10:46:29]name=ofd_packets/00069881 [10:46:29]NVStorageDeleteData [10:46:30]Write to MH i2c: 01 00 00 D7 A8 7F [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 07 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: 01 07 00 D7 A8 00 00 00 00 00 F4 0C 86 [10:46:30]RasterBufferAndPrint [10:46:30]line [10:46:30]line [10:46:30]line [10:46:30]line [10:46:30]line [10:46:30]written 0, free lines is 3322 [10:46:30]MH_Cut [10:46:30]Write to MH i2c: D1 01 00 DE A8 01 58 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: D1 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: D1 01 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: D1 01 00 DE A8 00 57 [10:46:30]Write to MH i2c: 01 00 00 DF A8 87 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]OFD Sender: No OFD packet to send [10:46:30]*** Cut start [10:46:30]*** Partial cut [10:46:30]*** CUTSNS_PIN = 1 [10:46:30]*** CUTSNS_PIN = 0 [10:46:30]*** Brake cut motor [10:46:31]Read from MH i2c: 01 [10:46:31]MH_I2C_Read... [10:46:31]*** Stop cut motor [10:46:31]*** Cut end [10:46:31]Read from MH i2c: 01 07 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: 01 07 00 DF A8 00 00 00 00 00 FF 0F 9C [10:46:31]process_action close_receipt done [10:46:31]requested_data is exist [10:46:31]produce_requested_data [10:46:31]requested_item fm.sn is exist - process it [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 11 00 00 [10:46:31]Write to MH i2c: E2 08 00 E0 A8 80 11 00 00 00 00 00 00 02 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 17 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 17 00 E0 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5E [10:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:46:31]wFMCommunicate OK [10:46:31]requested_item fd.num is exist - process it [10:46:31]SAM_PROTO_GetFieldsCounters [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 13 00 00 [10:46:31]Write to MH i2c: E2 08 00 E1 A8 80 13 00 00 00 00 00 00 05 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 62 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 62 00 E1 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [10:46:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 F9 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:31]wFMCommunicate OK [10:46:31]SAM_PROTO_GetFieldsCounters done [10:46:31]requested_item shift.num is exist - process it [10:46:31]requested_item shift.opened is exist - process it [10:46:31]req_shift_opened [10:46:31]FM_GetShiftState [10:46:31]SAM_PROTO_GetShiftState [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 13 01 00 [10:46:31]Write to MH i2c: E2 08 00 E2 A8 80 13 01 00 00 00 00 00 07 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 0E 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 0E 00 E2 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 40 [10:46:31]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:46:31]wFMCommunicate OK [10:46:31]SAM_PROTO_GetShiftState done [10:46:31]FM_GetShiftState done [10:46:31]req_shift_opened done [10:46:31]requested_item shift.open_date is exist - process it [10:46:31]req_shift_open_date [10:46:31]req_shift_open_date done [10:46:31]produce_requested_data done [10:46:31]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69881,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:46:31]process_action_free close_receipt [10:46:31]json_value_free [10:46:31]json_value_free done [10:46:31]process_json_proto returns [10:46:31]Send response to host [10:46:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69881,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:46:31]free response buf [10:46:31]execute_script done [10:46:31]execute_script returns [10:46:31]free content buf [10:46:31]Sock 9.Close socket [10:46:31]Sock 9.Thread stoped [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:34]accept exits with 7 [10:53:34]New connection [10:53:34]New thread 3067002212 created [10:53:34]Thread 3066858852 joined [10:53:34]Waiting for new connection... [10:53:34] Sock 7.Parse request [10:53:34]Sock 7.Check first char [10:53:34]Sock 7.First char is OK [10:53:34]request: POST /json_proto HTTP/1.0 [10:53:34]Method: POST [10:53:34]URL: /json_proto [10:53:34]Method is POST - this is cgi request [10:53:34]url: /json_proto [10:53:34]query_string will be loaded in cgi processing [10:53:34]execute_cgi json_proto POST (null) [10:53:34]execute_cgi path=json_proto method=POST [10:53:34]POST find Content-Length [10:53:34]Host: 172.17.49.132:8080 [10:53:34]Content-Length: 682 [10:53:34]Content-Type: application/json [10:53:34] [10:53:34]POST finish read [10:53:34]Found Content-Length = 682 [10:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.70, "quantity" : 32.120, "sum" : 2399.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2399.00, "payments": [ { "type": 0, "sum" : 2399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:34]execute_script... [10:53:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.70, "quantity" : 32.120, "sum" : 2399.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2399.00, "payments": [ { "type": 0, "sum" : 2399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:34]POST & json_proto [10:53:34]process_json_proto [10:53:34]json parsed OK: [10:53:34]protocol is kg_v1.0 [10:53:34]action value=close_receipt [10:53:34]process_action close_receipt [10:53:34]cmd_close_receipt [10:53:34]MH_GetDate [10:53:34]Write to MH i2c: F0 00 00 E3 A8 7A [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: F0 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: F0 09 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: F0 09 00 E3 A8 00 40 69 AB 66 E7 4B C0 64 93 [10:53:34]GetLastDocTimeStamp 1722509205 [10:53:34]current date 1722509632 [10:53:34]FM_GetShiftState [10:53:34]SAM_PROTO_GetShiftState [10:53:34]wFMCommunicate request_size=4 [10:53:34]MH_SAM_APDU [10:53:34]CAPDU: 80 13 01 00 [10:53:34]Write to MH i2c: E2 08 00 E4 A8 80 13 01 00 00 00 00 00 09 [10:53:34]Write i2c OK [10:53:34]MH_I2C_Read... [10:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:34]Read from MH i2c: E2 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 0E 00 [10:53:34]MH_I2C_Read... [10:53:34]Read from MH i2c: E2 0E 00 E4 A8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 42 [10:53:34]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:53:34]wFMCommunicate OK [10:53:34]SAM_PROTO_GetShiftState done [10:53:34]FM_GetShiftState done [10:53:34]opened in 1722472772 [10:53:34]opened+sec_in_day 1722559172 [10:53:34]quantity*price = 239936 [10:53:34]sum+1 = 239937 [10:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 2399.00 Внесено: 3000.00 СДАЧА: 601.00 НСП 1% : 21.23 НДС 12% : 254.80 Наличными: 2399.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 45 01.08.2024 10:53 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69882 ФПД: 56257431897952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105352&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69882&fm=56257431897952&tin=02508201610067®Number=0000000000092638&sum=239900 [10:53:35]StoreToDocumentArchive [10:53:35]shift 433 fd 69882 [10:53:35]save to /storage/0433/doc_00069882 [10:53:35]save last doc name /storage/0433/doc_00069882 to /storage/kkm_last_doc_name [10:53:35]save OK [10:53:35]Clear old archive folders... [10:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:35]tlvbuf is 01491870 [10:53:35]SAM_PROTO_ClearQueue [10:53:35]wFMCommunicate request_size=4 [10:53:35]MH_SAM_APDU [10:53:35]CAPDU: 80 09 00 00 [10:53:35]Write to MH i2c: E2 08 00 F1 A8 80 09 00 00 00 00 00 00 0B [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:35]Read from MH i2c: E2 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 F1 A8 00 90 00 0D [10:53:35]RAPDU: 90 00 [10:53:35]wFMCommunicate OK [10:53:35]SAM_PROTO_ClearQueue done [10:53:35]KKMCreateOFDPacket [10:53:35]OFDProtocolAddRootSTLVToBuf [10:53:35]FM_MakeSignedData [10:53:35]FM_MakeSignedData [10:53:35]SAM_PROTO_SignData [10:53:35]wFMCommunicate request_size=4 [10:53:35]MH_SAM_APDU [10:53:35]CAPDU: 80 0D 01 02 [10:53:35]Write to MH i2c: E2 08 00 F2 A8 80 0D 01 02 00 00 00 00 13 [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:35]Read from MH i2c: E2 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 F2 A8 00 90 00 0E [10:53:35]RAPDU: 90 00 [10:53:35]wFMCommunicate OK [10:53:35]wFMCommunicate request_size=255 [10:53:35]MH_SAM_APDU [10:53:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 78 7D 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 40 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 63 00 00 00 00 07 04 06 00 1C A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FA 10 01 00 35 04 06 00 33 [10:53:35]Write to MH i2c: E2 02 01 F3 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 78 7D 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 40 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 63 00 00 00 00 07 04 06 00 1C A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FA 10 01 00 35 04 06 00 33 00 00 FE [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]OFD Sender: No OFD packet to send [10:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:35]Read from MH i2c: E2 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 F3 A8 00 90 00 0F [10:53:35]RAPDU: 90 00 [10:53:35]wFMCommunicate OK [10:53:35]wFMCommunicate request_size=10 [10:53:35]MH_SAM_APDU [10:53:35]CAPDU: 80 0D 02 02 05 2A 74 3E 87 60 [10:53:35]Write to MH i2c: E2 0D 00 F4 A8 80 0D 02 02 05 00 2A 74 3E 87 60 00 00 E3 [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:35]Read from MH i2c: E2 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 03 00 F4 A8 00 90 00 10 [10:53:35]RAPDU: 90 00 [10:53:35]wFMCommunicate OK [10:53:35]wFMCommunicate request_size=4 [10:53:35]MH_SAM_APDU [10:53:35]CAPDU: 80 0D 03 02 [10:53:35]Write to MH i2c: E2 08 00 F5 A8 80 0D 03 02 00 00 00 00 18 [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:35]Read from MH i2c: E2 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 0B 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 0B 00 F5 A8 00 5F 31 1D 3E FF 72 4B 71 90 00 31 [10:53:35]RAPDU: 5F 31 1D 3E FF 72 4B 71 90 00 [10:53:35]wFMCommunicate OK [10:53:35]SAM_PROTO_SignData done [10:53:35]FM_MakeSignedData done [10:53:35]CreateOFDProtocolMessage [10:53:35]wFMCommunicate request_size=4 [10:53:35]MH_SAM_APDU [10:53:35]CAPDU: 80 11 00 00 [10:53:35]Write to MH i2c: E2 08 00 F6 A8 80 11 00 00 00 00 00 00 18 [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:35]Read from MH i2c: E2 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 17 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: E2 17 00 F6 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 74 [10:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:53:35]wFMCommunicate OK [10:53:35]CreateOFDProtocolMessage done [10:53:35]OFDSenderStorePacket 69882 [10:53:35]StoreOFDPacket docnum=69882 [10:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B9 68 07 01 C6 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 78 7D 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 40 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 63 00 00 00 00 07 04 06 00 1C A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FA 10 01 00 35 04 06 00 33 2A 74 3E 87 60 5F 31 1D 3E FF 72 4B 71 [10:53:35]CheckFolder [10:53:35]dirname=/storage/ofd_packets [10:53:35]CheckFolder done [10:53:35]ProducePacketName [10:53:35]name=ofd_packets/00069882 [10:53:35]NVStorageSaveData ofd_packets/00069882 [10:53:35]File name is /storage/ofd_packets/00069882 [10:53:35]Write 301 bytes [10:53:35]NVStorageSaveData done [10:53:35]OFDSenderStorePacket done [10:53:35]KKMCreateOFDPacket done [10:53:35]NVStorageSaveData kkm_last_timestamp [10:53:35]File name is /storage/kkm_last_timestamp [10:53:35]Write 4 bytes [10:53:35]NVStorageSaveData done [10:53:35]ExternCall_PrintAddStr [10:53:35]wPrintStart [10:53:35]Write to MH i2c: 01 00 00 F7 A8 9F [10:53:35]Write i2c OK [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: 01 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: 01 07 00 [10:53:35]MH_I2C_Read... [10:53:35]Read from MH i2c: 01 07 00 F7 A8 00 00 00 00 00 FF 0F B4 [10:53:35]RasterBufferAndPrint [10:53:35]line Счет N : (1)874637 [10:53:35]line ИНН: 02508201610067 [10:53:35]line Контрольно-Кассовый Чек [10:53:35]line ПРОДАЖА [10:53:35]line ТРК (МРК, ГНК) : 61 [10:53:35]line Товар: 2710124500 [10:53:35]line Аи-95-К-5 [10:53:35]line 32.120 * 74.70 [10:53:35]line = 2399.36 [10:53:35]line НДС 12% НСП 1% [10:53:35]line > о реализуемом товаре [10:53:35]line ОКРУГЛЕНИЕ: -0.36 [10:53:35]line ИТОГО: 2399.00 [10:53:35]line Внесено: 3000.00 [10:53:35]line СДАЧА: 601.00 [10:53:35]line НСП 1% : 21.23 [10:53:35]line НДС 12% : 254.80 [10:53:35]line Наличными: 2399.00 [10:53:35]line Безнал.: 0.00 [10:53:35]line Место: АЗС № 125 "Партнер Нефть" [10:53:35]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:53:35]line СНО: Общий режим [10:53:35]line Чек 45 01.08.2024 10:53 [10:53:35]line Смена: 433 ФФД: 1.0 [10:53:35]line ЗНМ: 0300000049 [10:53:35]line РНМ: 0000000000092638 [10:53:35]line Версия ККМ: 001 [10:53:35]line ФМ: 0000000000874949 [10:53:35]line ФД: 69882 [10:53:35]line ФПД: 56257431897952 [10:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105352&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69882&fm=56257431897952&tin=02508201610067®Number=0000000000092638&sum=239900 [10:53:35]written 0, free lines is 4095 [10:53:35]OFD Sender: Processing packet 69882 [packets to send 19, broken 18] [10:53:35]ProducePacketName [10:53:35]name=ofd_packets/00069882 [10:53:35]OFD Sender: To server: pG, [10:53:36]CommunicateWithHost lk.salyk.kg:30040 [10:53:36]ConnectInit lk.salyk.kg [10:53:36]Connected sock=10 [10:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 B9 68 07 01 C6 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 78 7D 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 40 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 63 00 00 00 00 07 04 06 00 1C A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FA 10 01 00 35 04 06 00 33 2A 74 3E 87 60 5F 31 1D 3E FF 72 4B 71 [10:53:36]Write to MH i2c: 01 00 00 22 A9 CB [10:53:36]Write i2c OK [10:53:36]MH_I2C_Read... [10:53:36]Read from MH i2c: 01 [10:53:36]MH_I2C_Read... [10:53:36]Read from MH i2c: 01 07 00 [10:53:36]MH_I2C_Read... [10:53:36]Read from MH i2c: 01 07 00 22 A9 00 00 00 00 00 FD 0C DB [10:53:36]RasterBufferAndPrint [10:53:36]line [10:53:36]line [10:53:36]line [10:53:36]line [10:53:36]line [10:53:36]written 0, free lines is 3331 [10:53:36]MH_Cut [10:53:36]Write to MH i2c: D1 01 00 29 A9 01 A4 [10:53:36]Write i2c OK [10:53:36]MH_I2C_Read... [10:53:36]Read from MH i2c: D1 [10:53:36]MH_I2C_Read... [10:53:36]Read from MH i2c: D1 01 00 [10:53:36]MH_I2C_Read... [10:53:36]Read from MH i2c: D1 01 00 29 A9 00 A3 [10:53:36]Write to MH i2c: 01 00 00 2A A9 D3 [10:53:36]Write i2c OK [10:53:36]MH_I2C_Read... [10:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C6 E7 47 00 02 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FA 10 01 00 F4 03 04 00 A1 0F AB 66 B6 04 01 00 00 BE 42 6D 32 3E 4D 82 81 [10:53:36]CommunicateWithHost err = 0 [10:53:36]CheckOFDResponse [10:53:36]1017 (14) - 77093643461234 [10:53:36]1041 (16) - 0000000000874949 [10:53:36]1040 (4) - 69882 [10:53:36]1012 (4) - 01.08.2024 04:31 [10:53:36]1206 (1) - 0 [10:53:36]OFD Sender: Remove packet 69882 [10:53:36]ProducePacketName [10:53:36]name=ofd_packets/00069882 [10:53:36]NVStorageDeleteData [10:53:37]*** Cut start [10:53:37]*** Partial cut [10:53:37]*** CUTSNS_PIN = 1 [10:53:37]OFD Sender: No OFD packet to send [10:53:37]*** CUTSNS_PIN = 0 [10:53:37]*** Brake cut motor [10:53:37]Read from MH i2c: 01 [10:53:37]MH_I2C_Read... [10:53:37]*** Stop cut motor [10:53:37]*** Cut end [10:53:37]Read from MH i2c: 01 07 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: 01 07 00 2A A9 00 00 00 00 00 FF 0F E8 [10:53:37]process_action close_receipt done [10:53:37]requested_data is exist [10:53:37]produce_requested_data [10:53:37]requested_item fm.sn is exist - process it [10:53:37]wFMCommunicate request_size=4 [10:53:37]MH_SAM_APDU [10:53:37]CAPDU: 80 11 00 00 [10:53:37]Write to MH i2c: E2 08 00 2B A9 80 11 00 00 00 00 00 00 4E [10:53:37]Write i2c OK [10:53:37]MH_I2C_Read... [10:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:37]Read from MH i2c: E2 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 17 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 17 00 2B A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [10:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:53:37]wFMCommunicate OK [10:53:37]requested_item fd.num is exist - process it [10:53:37]SAM_PROTO_GetFieldsCounters [10:53:37]wFMCommunicate request_size=4 [10:53:37]MH_SAM_APDU [10:53:37]CAPDU: 80 13 00 00 [10:53:37]Write to MH i2c: E2 08 00 2C A9 80 13 00 00 00 00 00 00 51 [10:53:37]Write i2c OK [10:53:37]MH_I2C_Read... [10:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:37]Read from MH i2c: E2 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 62 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 62 00 2C A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FA 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:37]wFMCommunicate OK [10:53:37]SAM_PROTO_GetFieldsCounters done [10:53:37]requested_item shift.num is exist - process it [10:53:37]requested_item shift.opened is exist - process it [10:53:37]req_shift_opened [10:53:37]FM_GetShiftState [10:53:37]SAM_PROTO_GetShiftState [10:53:37]wFMCommunicate request_size=4 [10:53:37]MH_SAM_APDU [10:53:37]CAPDU: 80 13 01 00 [10:53:37]Write to MH i2c: E2 08 00 2D A9 80 13 01 00 00 00 00 00 53 [10:53:37]Write i2c OK [10:53:37]MH_I2C_Read... [10:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:37]Read from MH i2c: E2 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 0E 00 [10:53:37]MH_I2C_Read... [10:53:37]Read from MH i2c: E2 0E 00 2D A9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8C [10:53:37]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:53:37]wFMCommunicate OK [10:53:37]SAM_PROTO_GetShiftState done [10:53:37]FM_GetShiftState done [10:53:37]req_shift_opened done [10:53:37]requested_item shift.open_date is exist - process it [10:53:37]req_shift_open_date [10:53:37]req_shift_open_date done [10:53:37]produce_requested_data done [10:53:37]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69882,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:53:37]process_action_free close_receipt [10:53:37]json_value_free [10:53:37]json_value_free done [10:53:37]process_json_proto returns [10:53:37]Send response to host [10:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69882,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:53:37]free response buf [10:53:37]execute_script done [10:53:37]execute_script returns [10:53:37]free content buf [10:53:37]Sock 7.Close socket [10:53:37]Sock 7.Thread stoped [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:50]accept exits with 9 [10:53:50]New connection [10:53:50]New thread 3066858852 created [10:53:50]Thread 3067002212 joined [10:53:50]Waiting for new connection... [10:53:50] Sock 9.Parse request [10:53:50]Sock 9.Check first char [10:53:50]Sock 9.First char is OK [10:53:50]request: POST /json_proto HTTP/1.0 [10:53:50]Method: POST [10:53:50]URL: /json_proto [10:53:50]Method is POST - this is cgi request [10:53:50]url: /json_proto [10:53:50]query_string will be loaded in cgi processing [10:53:50]execute_cgi json_proto POST (null) [10:53:50]execute_cgi path=json_proto method=POST [10:53:50]POST find Content-Length [10:53:50]Host: 172.17.49.132:8080 [10:53:50]Content-Length: 674 [10:53:50]Content-Type: application/json [10:53:50] [10:53:50]POST finish read [10:53:50]Found Content-Length = 674 [10:53:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 12.640, "sum" : 950.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:50]execute_script... [10:53:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 12.640, "sum" : 950.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:50]POST & json_proto [10:53:50]process_json_proto [10:53:50]json parsed OK: [10:53:50]protocol is kg_v1.0 [10:53:50]action value=close_receipt [10:53:50]process_action close_receipt [10:53:50]cmd_close_receipt [10:53:50]MH_GetDate [10:53:50]Write to MH i2c: F0 00 00 2E A9 C6 [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: F0 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: F0 09 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: F0 09 00 2E A9 00 50 69 AB 66 E7 4B C0 64 EF [10:53:50]GetLastDocTimeStamp 1722509632 [10:53:50]current date 1722509648 [10:53:50]FM_GetShiftState [10:53:50]SAM_PROTO_GetShiftState [10:53:50]wFMCommunicate request_size=4 [10:53:50]MH_SAM_APDU [10:53:50]CAPDU: 80 13 01 00 [10:53:50]Write to MH i2c: E2 08 00 2F A9 80 13 01 00 00 00 00 00 55 [10:53:50]Write i2c OK [10:53:50]MH_I2C_Read... [10:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:50]Read from MH i2c: E2 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 0E 00 [10:53:50]MH_I2C_Read... [10:53:50]Read from MH i2c: E2 0E 00 2F A9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8E [10:53:50]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:53:50]wFMCommunicate OK [10:53:50]SAM_PROTO_GetShiftState done [10:53:50]FM_GetShiftState done [10:53:50]opened in 1722472772 [10:53:50]opened+sec_in_day 1722559172 [10:53:50]quantity*price = 95052 [10:53:50]sum+1 = 95054 [10:53:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.94 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 46 01.08.2024 10:54 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69883 ФПД: 58841721650478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105408&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69883&fm=58841721650478&tin=02508201610067®Number=0000000000092638&sum=95000 [10:53:51]StoreToDocumentArchive [10:53:51]shift 433 fd 69883 [10:53:51]save to /storage/0433/doc_00069883 [10:53:51]save last doc name /storage/0433/doc_00069883 to /storage/kkm_last_doc_name [10:53:51]save OK [10:53:51]Clear old archive folders... [10:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:53:51]tlvbuf is 014D1D40 [10:53:51]SAM_PROTO_ClearQueue [10:53:51]wFMCommunicate request_size=4 [10:53:51]MH_SAM_APDU [10:53:51]CAPDU: 80 09 00 00 [10:53:51]Write to MH i2c: E2 08 00 3C A9 80 09 00 00 00 00 00 00 57 [10:53:51]Write i2c OK [10:53:51]MH_I2C_Read... [10:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:51]Read from MH i2c: E2 [10:53:51]MH_I2C_Read... [10:53:51]Read from MH i2c: E2 03 00 [10:53:51]MH_I2C_Read... [10:53:51]Read from MH i2c: E2 03 00 3C A9 00 90 00 59 [10:53:51]RAPDU: 90 00 [10:53:51]wFMCommunicate OK [10:53:51]SAM_PROTO_ClearQueue done [10:53:51]KKMCreateOFDPacket [10:53:51]OFDProtocolAddRootSTLVToBuf [10:53:51]FM_MakeSignedData [10:53:51]FM_MakeSignedData [10:53:51]SAM_PROTO_SignData [10:53:51]wFMCommunicate request_size=4 [10:53:51]MH_SAM_APDU [10:53:51]CAPDU: 80 0D 01 02 [10:53:51]Write to MH i2c: E2 08 00 3D A9 80 0D 01 02 00 00 00 00 5F [10:53:51]Write i2c OK [10:53:51]MH_I2C_Read... [10:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:51]Read from MH i2c: E2 [10:53:51]MH_I2C_Read... [10:53:51]Read from MH i2c: E2 03 00 [10:53:51]MH_I2C_Read... [10:53:51]Read from MH i2c: E2 03 00 3D A9 00 90 00 5A [10:53:51]RAPDU: 90 00 [10:53:51]wFMCommunicate OK [10:53:51]wFMCommunicate request_size=255 [10:53:51]MH_SAM_APDU [10:53:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 31 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 50 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FB 10 01 00 35 04 06 00 35 84 27 EA [10:53:51]Write to MH i2c: E2 02 01 3E A9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 31 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 50 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FB 10 01 00 35 04 06 00 35 84 27 EA 00 00 10 [10:53:51]Write i2c OK [10:53:51]MH_I2C_Read... [10:53:52]OFD Sender: No OFD packet to send [10:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:52]Read from MH i2c: E2 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 03 00 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 03 00 3E A9 00 90 00 5B [10:53:52]RAPDU: 90 00 [10:53:52]wFMCommunicate OK [10:53:52]wFMCommunicate request_size=7 [10:53:52]MH_SAM_APDU [10:53:52]CAPDU: 80 0D 02 02 02 BD 2E [10:53:52]Write to MH i2c: E2 0A 00 3F A9 80 0D 02 02 02 00 BD 2E 00 00 51 [10:53:52]Write i2c OK [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 [10:53:52]MH_I2C_Read... [10:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:52]Read from MH i2c: E2 03 00 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 03 00 3F A9 00 90 00 5C [10:53:52]RAPDU: 90 00 [10:53:52]wFMCommunicate OK [10:53:52]wFMCommunicate request_size=4 [10:53:52]MH_SAM_APDU [10:53:52]CAPDU: 80 0D 03 02 [10:53:52]Write to MH i2c: E2 08 00 40 A9 80 0D 03 02 00 00 00 00 64 [10:53:52]Write i2c OK [10:53:52]MH_I2C_Read... [10:53:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:52]Read from MH i2c: E2 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 0B 00 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 0B 00 40 A9 00 94 67 09 DE 20 90 89 7C 90 00 FC [10:53:52]RAPDU: 94 67 09 DE 20 90 89 7C 90 00 [10:53:52]wFMCommunicate OK [10:53:52]SAM_PROTO_SignData done [10:53:52]FM_MakeSignedData done [10:53:52]CreateOFDProtocolMessage [10:53:52]wFMCommunicate request_size=4 [10:53:52]MH_SAM_APDU [10:53:52]CAPDU: 80 11 00 00 [10:53:52]Write to MH i2c: E2 08 00 41 A9 80 11 00 00 00 00 00 00 64 [10:53:52]Write i2c OK [10:53:52]MH_I2C_Read... [10:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:52]Read from MH i2c: E2 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 17 00 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: E2 17 00 41 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C0 [10:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:53:52]wFMCommunicate OK [10:53:52]CreateOFDProtocolMessage done [10:53:52]OFDSenderStorePacket 69883 [10:53:52]StoreOFDPacket docnum=69883 [10:53:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 F8 EA 04 01 30 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 31 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 50 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FB 10 01 00 35 04 06 00 35 84 27 EA BD 2E 94 67 09 DE 20 90 89 7C [10:53:52]CheckFolder [10:53:52]dirname=/storage/ofd_packets [10:53:52]CheckFolder done [10:53:52]ProducePacketName [10:53:52]name=ofd_packets/00069883 [10:53:52]NVStorageSaveData ofd_packets/00069883 [10:53:52]File name is /storage/ofd_packets/00069883 [10:53:52]Write 298 bytes [10:53:52]NVStorageSaveData done [10:53:52]OFDSenderStorePacket done [10:53:52]KKMCreateOFDPacket done [10:53:52]NVStorageSaveData kkm_last_timestamp [10:53:52]File name is /storage/kkm_last_timestamp [10:53:52]Write 4 bytes [10:53:52]NVStorageSaveData done [10:53:52]ExternCall_PrintAddStr [10:53:52]wPrintStart [10:53:52]Write to MH i2c: 01 00 00 42 A9 EB [10:53:52]Write i2c OK [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: 01 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: 01 07 00 [10:53:52]MH_I2C_Read... [10:53:52]Read from MH i2c: 01 07 00 42 A9 00 00 00 00 00 FF 0F 00 [10:53:52]RasterBufferAndPrint [10:53:52]line Счет N : (1)874639 [10:53:52]line ИНН: 02508201610067 [10:53:52]line Контрольно-Кассовый Чек [10:53:52]line ПРОДАЖА [10:53:52]line ТРК (МРК, ГНК) : 1 [10:53:52]line Товар: 2710194210 [10:53:52]line ДТ-К-5 [10:53:52]line 12.640 * 75.20 [10:53:52]line = 950.53 [10:53:52]line НДС 12% НСП 1% [10:53:52]line > о реализуемом товаре [10:53:52]line ОКРУГЛЕНИЕ: -0.53 [10:53:52]line ИТОГО: 950.00 [10:53:52]line Внесено: 950.00 [10:53:52]line СДАЧА: 0.00 [10:53:52]line НСП 1% : 8.41 [10:53:52]line НДС 12% : 100.94 [10:53:52]line Наличными: 950.00 [10:53:52]line Безнал.: 0.00 [10:53:52]line Место: АЗС № 125 "Партнер Нефть" [10:53:52]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:53:52]line СНО: Общий режим [10:53:52]line Чек 46 01.08.2024 10:54 [10:53:52]line Смена: 433 ФФД: 1.0 [10:53:52]line ЗНМ: 0300000049 [10:53:52]line РНМ: 0000000000092638 [10:53:52]line Версия ККМ: 001 [10:53:52]line ФМ: 0000000000874949 [10:53:52]line ФД: 69883 [10:53:52]line ФПД: 58841721650478 [10:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105408&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69883&fm=58841721650478&tin=02508201610067®Number=0000000000092638&sum=95000 [10:53:52]OFD Sender: Processing packet 69883 [packets to send 19, broken 18] [10:53:52]ProducePacketName [10:53:52]name=ofd_packets/00069883 [10:53:52]OFD Sender: To server: pG, [10:53:52]CommunicateWithHost lk.salyk.kg:30040 [10:53:52]ConnectInit lk.salyk.kg [10:53:52]written 0, free lines is 4095 [10:53:52]Connected sock=10 [10:53:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 F8 EA 04 01 30 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 31 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4D 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 50 69 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FB 10 01 00 35 04 06 00 35 84 27 EA BD 2E 94 67 09 DE 20 90 89 7C [10:53:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 86 FD 47 00 C1 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FB 10 01 00 F4 03 04 00 B2 0F AB 66 B6 04 01 00 00 50 44 56 4A DE CD A6 8B [10:53:52]CommunicateWithHost err = 0 [10:53:52]CheckOFDResponse [10:53:52]1017 (14) - 77093643461234 [10:53:52]1041 (16) - 0000000000874949 [10:53:52]1040 (4) - 69883 [10:53:52]1012 (4) - 01.08.2024 04:31 [10:53:52]1206 (1) - 0 [10:53:52]OFD Sender: Remove packet 69883 [10:53:52]ProducePacketName [10:53:52]name=ofd_packets/00069883 [10:53:52]NVStorageDeleteData [10:53:53]Write to MH i2c: 01 00 00 6D A9 16 [10:53:53]Write i2c OK [10:53:53]MH_I2C_Read... [10:53:53]Read from MH i2c: 01 [10:53:53]MH_I2C_Read... [10:53:53]Read from MH i2c: 01 07 00 [10:53:53]MH_I2C_Read... [10:53:53]Read from MH i2c: 01 07 00 6D A9 00 00 00 00 00 EE 0C 17 [10:53:53]RasterBufferAndPrint [10:53:53]line [10:53:53]line [10:53:53]line [10:53:53]line [10:53:53]line [10:53:53]written 0, free lines is 3319 [10:53:53]MH_Cut [10:53:53]Write to MH i2c: D1 01 00 74 A9 01 EF [10:53:53]Write i2c OK [10:53:53]MH_I2C_Read... [10:53:53]Read from MH i2c: D1 [10:53:53]MH_I2C_Read... [10:53:53]Read from MH i2c: D1 01 00 [10:53:53]MH_I2C_Read... [10:53:53]Read from MH i2c: D1 01 00 74 A9 00 EE [10:53:53]Write to MH i2c: 01 00 00 75 A9 1E [10:53:53]Write i2c OK [10:53:53]MH_I2C_Read... [10:53:53]OFD Sender: No OFD packet to send [10:53:53]*** Cut start [10:53:53]*** Partial cut [10:53:53]*** CUTSNS_PIN = 1 [10:53:53]*** CUTSNS_PIN = 0 [10:53:54]*** Brake cut motor [10:53:54]Read from MH i2c: 01 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: 01 07 00 [10:53:54]MH_I2C_Read... [10:53:54]*** Stop cut motor [10:53:54]*** Cut end [10:53:54]Read from MH i2c: 01 07 00 75 A9 00 00 00 00 00 FF 0F 33 [10:53:54]process_action close_receipt done [10:53:54]requested_data is exist [10:53:54]produce_requested_data [10:53:54]requested_item fm.sn is exist - process it [10:53:54]wFMCommunicate request_size=4 [10:53:54]MH_SAM_APDU [10:53:54]CAPDU: 80 11 00 00 [10:53:54]Write to MH i2c: E2 08 00 76 A9 80 11 00 00 00 00 00 00 99 [10:53:54]Write i2c OK [10:53:54]MH_I2C_Read... [10:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:54]Read from MH i2c: E2 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 17 00 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 17 00 76 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F5 [10:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:53:54]wFMCommunicate OK [10:53:54]requested_item fd.num is exist - process it [10:53:54]SAM_PROTO_GetFieldsCounters [10:53:54]wFMCommunicate request_size=4 [10:53:54]MH_SAM_APDU [10:53:54]CAPDU: 80 13 00 00 [10:53:54]Write to MH i2c: E2 08 00 77 A9 80 13 00 00 00 00 00 00 9C [10:53:54]Write i2c OK [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 62 00 [10:53:54]MH_I2C_Read... [10:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:54]Read from MH i2c: E2 62 00 77 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FB 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FB 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:54]wFMCommunicate OK [10:53:54]SAM_PROTO_GetFieldsCounters done [10:53:54]requested_item shift.num is exist - process it [10:53:54]requested_item shift.opened is exist - process it [10:53:54]req_shift_opened [10:53:54]FM_GetShiftState [10:53:54]SAM_PROTO_GetShiftState [10:53:54]wFMCommunicate request_size=4 [10:53:54]MH_SAM_APDU [10:53:54]CAPDU: 80 13 01 00 [10:53:54]Write to MH i2c: E2 08 00 78 A9 80 13 01 00 00 00 00 00 9E [10:53:54]Write i2c OK [10:53:54]MH_I2C_Read... [10:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:54]Read from MH i2c: E2 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 0E 00 [10:53:54]MH_I2C_Read... [10:53:54]Read from MH i2c: E2 0E 00 78 A9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D7 [10:53:54]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:53:54]wFMCommunicate OK [10:53:54]SAM_PROTO_GetShiftState done [10:53:54]FM_GetShiftState done [10:53:54]req_shift_opened done [10:53:54]requested_item shift.open_date is exist - process it [10:53:54]req_shift_open_date [10:53:54]req_shift_open_date done [10:53:54]produce_requested_data done [10:53:54]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69883,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:53:54]process_action_free close_receipt [10:53:54]json_value_free [10:53:54]json_value_free done [10:53:54]process_json_proto returns [10:53:54]Send response to host [10:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69883,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:53:54]free response buf [10:53:54]execute_script done [10:53:54]execute_script returns [10:53:54]free content buf [10:53:54]Sock 9.Close socket [10:53:54]Sock 9.Thread stoped [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:53]accept exits with 7 [10:57:53]New connection [10:57:53]New thread 3067002212 created [10:57:53]Thread 3066858852 joined [10:57:53]Waiting for new connection... [10:57:53] Sock 7.Parse request [10:57:53]Sock 7.Check first char [10:57:53]Sock 7.First char is OK [10:57:53]request: POST /json_proto HTTP/1.0 [10:57:53]Method: POST [10:57:53]URL: /json_proto [10:57:53]Method is POST - this is cgi request [10:57:53]url: /json_proto [10:57:53]query_string will be loaded in cgi processing [10:57:53]execute_cgi json_proto POST (null) [10:57:53]execute_cgi path=json_proto method=POST [10:57:53]POST find Content-Length [10:57:53]Host: 172.17.49.132:8080 [10:57:53]Content-Length: 1138 [10:57:53]Content-Type: application/json [10:57:53] [10:57:53]POST finish read [10:57:53]Found Content-Length = 1138 [10:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137114", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004289", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:53]execute_script... [10:57: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 : (3)137114", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004289", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0436/\u0431", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:53]POST & json_proto [10:57:53]process_json_proto [10:57:53]json parsed OK: [10:57:53]protocol is kg_v1.0 [10:57:53]action value=close_receipt [10:57:53]process_action close_receipt [10:57:53]cmd_close_receipt [10:57:53]MH_GetDate [10:57:53]Write to MH i2c: F0 00 00 79 A9 11 [10:57:53]Write i2c OK [10:57:53]MH_I2C_Read... [10:57:53]Read from MH i2c: F0 [10:57:53]MH_I2C_Read... [10:57:53]Read from MH i2c: F0 09 00 [10:57:53]MH_I2C_Read... [10:57:53]Read from MH i2c: F0 09 00 79 A9 00 43 6A AB 66 E7 4B C0 64 2E [10:57:53]GetLastDocTimeStamp 1722509648 [10:57:53]current date 1722509891 [10:57:53]FM_GetShiftState [10:57:53]SAM_PROTO_GetShiftState [10:57:53]wFMCommunicate request_size=4 [10:57:53]MH_SAM_APDU [10:57:53]CAPDU: 80 13 01 00 [10:57:53]Write to MH i2c: E2 08 00 7A A9 80 13 01 00 00 00 00 00 A0 [10:57:53]Write i2c OK [10:57:53]MH_I2C_Read... [10:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:53]Read from MH i2c: E2 [10:57:53]MH_I2C_Read... [10:57:53]Read from MH i2c: E2 0E 00 [10:57:53]MH_I2C_Read... [10:57:53]Read from MH i2c: E2 0E 00 7A A9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D9 [10:57:53]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:57:53]wFMCommunicate OK [10:57:53]SAM_PROTO_GetShiftState done [10:57:53]FM_GetShiftState done [10:57:53]opened in 1722472772 [10:57:53]opened+sec_in_day 1722559172 [10:57:53]quantity*price = 5000 [10:57:53]sum+1 = 5001 [10:57:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004289 Пиво Балтика 9 креп 0,5л ж/б 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 47 01.08.2024 10:58 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69884 ФПД: 121272797524198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105811&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69884&fm=121272797524198&tin=02508201610067®Number=0000000000092638&sum=17000 0 [10:57:54]StoreToDocumentArchive [10:57:54]shift 433 fd 69884 [10:57:54]save to /storage/0433/doc_00069884 [10:57:54]save last doc name /storage/0433/doc_00069884 to /storage/kkm_last_doc_name [10:57:54]save OK [10:57:54]Clear old archive folders... [10:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=393 [10:57:54]tlvbuf is 01462350 [10:57:54]SAM_PROTO_ClearQueue [10:57:54]wFMCommunicate request_size=4 [10:57:54]MH_SAM_APDU [10:57:54]CAPDU: 80 09 00 00 [10:57:54]Write to MH i2c: E2 08 00 87 A9 80 09 00 00 00 00 00 00 A2 [10:57:54]Write i2c OK [10:57:54]MH_I2C_Read... [10:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:55]Read from MH i2c: E2 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 87 A9 00 90 00 A4 [10:57:55]RAPDU: 90 00 [10:57:55]wFMCommunicate OK [10:57:55]SAM_PROTO_ClearQueue done [10:57:55]KKMCreateOFDPacket [10:57:55]OFDProtocolAddRootSTLVToBuf [10:57:55]FM_MakeSignedData [10:57:55]FM_MakeSignedData [10:57:55]SAM_PROTO_SignData [10:57:55]wFMCommunicate request_size=4 [10:57:55]MH_SAM_APDU [10:57:55]CAPDU: 80 0D 01 02 [10:57:55]Write to MH i2c: E2 08 00 88 A9 80 0D 01 02 00 00 00 00 AA [10:57:55]Write i2c OK [10:57:55]MH_I2C_Read... [10:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:55]Read from MH i2c: E2 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 88 A9 00 90 00 A5 [10:57:55]RAPDU: 90 00 [10:57:55]wFMCommunicate OK [10:57:55]wFMCommunicate request_size=255 [10:57:55]MH_SAM_APDU [10:57:55]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 [10:57:55]Write to MH i2c: E2 02 01 89 A9 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 BB [10:57:55]Write i2c OK [10:57:55]MH_I2C_Read... [10:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:55]Read from MH i2c: E2 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 89 A9 00 90 00 A6 [10:57:55]RAPDU: 90 00 [10:57:55]wFMCommunicate OK [10:57:55]wFMCommunicate request_size=152 [10:57:55]MH_SAM_APDU [10:57:55]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 43 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FC 10 01 00 35 04 06 00 6E 4C 06 04 70 E6 [10:57:55]Write to MH i2c: E2 9B 00 8A A9 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 43 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FC 10 01 00 35 04 06 00 6E 4C 06 04 70 E6 00 00 21 [10:57:55]Write i2c OK [10:57:55]MH_I2C_Read... [10:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:55]Read from MH i2c: E2 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 03 00 8A A9 00 90 00 A7 [10:57:55]RAPDU: 90 00 [10:57:55]wFMCommunicate OK [10:57:55]wFMCommunicate request_size=4 [10:57:55]MH_SAM_APDU [10:57:55]CAPDU: 80 0D 03 02 [10:57:55]Write to MH i2c: E2 08 00 8B A9 80 0D 03 02 00 00 00 00 AF [10:57:55]Write i2c OK [10:57:55]MH_I2C_Read... [10:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:55]Read from MH i2c: E2 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 0B 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 0B 00 8B A9 00 DC C1 CC 34 0F C1 52 5D 90 00 CC [10:57:55]RAPDU: DC C1 CC 34 0F C1 52 5D 90 00 [10:57:55]wFMCommunicate OK [10:57:55]SAM_PROTO_SignData done [10:57:55]FM_MakeSignedData done [10:57:55]CreateOFDProtocolMessage [10:57:55]wFMCommunicate request_size=4 [10:57:55]MH_SAM_APDU [10:57:55]CAPDU: 80 11 00 00 [10:57:55]Write to MH i2c: E2 08 00 8C A9 80 11 00 00 00 00 00 00 AF [10:57:55]Write i2c OK [10:57:55]MH_I2C_Read... [10:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:55]Read from MH i2c: E2 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 17 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: E2 17 00 8C A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0B [10:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:57:55]wFMCommunicate OK [10:57:55]CreateOFDProtocolMessage done [10:57:55]OFDSenderStorePacket 69884 [10:57:55]StoreOFDPacket docnum=69884 [10:57:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 9D 01 00 00 92 1E 95 01 E3 AA 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 43 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FC 10 01 00 35 04 06 00 6E 4C 06 04 70 E6 DC C1 CC 34 0F C1 52 5D [10:57:55]CheckFolder [10:57:55]dirname=/storage/ofd_packets [10:57:55]CheckFolder done [10:57:55]ProducePacketName [10:57:55]name=ofd_packets/00069884 [10:57:55]NVStorageSaveData ofd_packets/00069884 [10:57:55]File name is /storage/ofd_packets/00069884 [10:57:55]Write 443 bytes [10:57:55]NVStorageSaveData done [10:57:55]OFDSenderStorePacket done [10:57:55]KKMCreateOFDPacket done [10:57:55]NVStorageSaveData kkm_last_timestamp [10:57:55]File name is /storage/kkm_last_timestamp [10:57:55]Write 4 bytes [10:57:55]NVStorageSaveData done [10:57:55]ExternCall_PrintAddStr [10:57:55]wPrintStart [10:57:55]Write to MH i2c: 01 00 00 8D A9 36 [10:57:55]Write i2c OK [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: 01 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: 01 07 00 [10:57:55]MH_I2C_Read... [10:57:55]Read from MH i2c: 01 07 00 8D A9 00 00 00 00 00 FF 0F 4B [10:57:55]RasterBufferAndPrint [10:57:55]line Счет N : (3)137114 [10:57:55]line ИНН: 02508201610067 [10:57:55]line Контрольно-Кассовый Чек [10:57:55]line ПРОДАЖА [10:57:55]line Товар: 5449000005489 [10:57:55]line Вода Бонаква 1л б/г [10:57:55]line 1.000 * 50.00 [10:57:55]line = 50.00 [10:57:55]line НДС 12% НСП 1% [10:57:55]line > о реализуемом товаре [10:57:55]line Товар: 4870145004289 [10:57:55]line Пиво Балтика 9 креп 0,5л ж/б [10:57:55]line 1.000 * 120.00 [10:57:55]line = 120.00 [10:57:55]line НДС 12% НСП 1% [10:57:55]line > о реализуемом товаре [10:57:55]line ИТОГО: 170.00 [10:57:55]line НСП 1% : 1.50 [10:57:55]line НДС 12% : 18.05 [10:57:55]line Наличными: 0.00 [10:57:55]line Безнал.: 170.00 [10:57:55]line Место: АЗС № 125 "Партнер Нефть" [10:57:55]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:57:55]line СНО: Общий режим [10:57:55]line Чек 47 01.08.2024 10:58 [10:57:55]line Смена: 433 ФФД: 1.0 [10:57:55]line ЗНМ: 0300000049 [10:57:55]line РНМ: 0000000000092638 [10:57:55]line Версия ККМ: 001 [10:57:55]line Платежная система: АКБ Кыргызстан [10:57:55]line ФМ: 0000000000874949 [10:57:55]line ФД: 69884 [10:57:55]line ФПД: 121272797524198 [10:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105811&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69884&fm=121272797524198&tin=02508201610067®Number=0000000000092638&sum=17000 [10:57:55]OFD Sender: Processing packet 69884 [packets to send 19, broken 18] [10:57:55]ProducePacketName [10:57:55]name=ofd_packets/00069884 [10:57:55]OFD Sender: To server: pG, [10:57:55]CommunicateWithHost lk.salyk.kg:30040 [10:57:55]ConnectInit lk.salyk.kg [10:57:55]line 0 [10:57:55]written 0, free lines is 4095 [10:57:56]Connected sock=10 [10:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 9D 01 00 00 92 1E 95 01 E3 AA 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 32 38 39 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 43 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FC 10 01 00 35 04 06 00 6E 4C 06 04 70 E6 DC C1 CC 34 0F C1 52 5D [10:57:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 32 B6 47 00 2A 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 34 39 34 39 10 04 04 00 FC 10 01 00 F4 03 04 00 A5 10 AB 66 B6 04 01 00 00 88 1C E3 37 FC 3D 2C C5 [10:57:56]CommunicateWithHost err = 0 [10:57:56]CheckOFDResponse [10:57:56]1017 (14) - 77093643461234 [10:57:56]1041 (16) - 0000000000874949 [10:57:56]1040 (4) - 69884 [10:57:56]1012 (4) - 01.08.2024 04:35 [10:57:56]1206 (1) - 0 [10:57:56]OFD Sender: Remove packet 69884 [10:57:56]ProducePacketName [10:57:56]name=ofd_packets/00069884 [10:57:56]NVStorageDeleteData [10:57:56]Write to MH i2c: 01 00 00 BD A9 66 [10:57:56]Write i2c OK [10:57:56]MH_I2C_Read... [10:57:56]Read from MH i2c: 01 [10:57:56]MH_I2C_Read... [10:57:56]Read from MH i2c: 01 07 00 [10:57:56]MH_I2C_Read... [10:57:56]Read from MH i2c: 01 07 00 BD A9 00 00 00 00 00 C6 0C 3F [10:57:56]RasterBufferAndPrint [10:57:56]line [10:57:56]line [10:57:56]line [10:57:56]line [10:57:56]line [10:57:56]written 0, free lines is 3276 [10:57:56]MH_Cut [10:57:56]Write to MH i2c: D1 01 00 C4 A9 01 3F [10:57:56]Write i2c OK [10:57:56]MH_I2C_Read... [10:57:56]Read from MH i2c: D1 [10:57:56]MH_I2C_Read... [10:57:56]Read from MH i2c: D1 01 00 [10:57:56]MH_I2C_Read... [10:57:56]Read from MH i2c: D1 01 00 C4 A9 00 3E [10:57:56]Write to MH i2c: 01 00 00 C5 A9 6E [10:57:56]Write i2c OK [10:57:56]MH_I2C_Read... [10:57:56]OFD Sender: No OFD packet to send [10:57:57]*** Cut start [10:57:57]*** Partial cut [10:57:57]*** CUTSNS_PIN = 1 [10:57:57]*** CUTSNS_PIN = 0 [10:57:57]*** Brake cut motor [10:57:57]Read from MH i2c: 01 [10:57:57]MH_I2C_Read... [10:57:57]*** Stop cut motor [10:57:57]*** Cut end [10:57:57]Read from MH i2c: 01 07 00 [10:57:57]MH_I2C_Read... [10:57:57]Read from MH i2c: 01 07 00 C5 A9 00 00 00 00 00 FF 0F 83 [10:57:57]process_action close_receipt done [10:57:57]requested_data is exist [10:57:57]produce_requested_data [10:57:57]requested_item fm.sn is exist - process it [10:57:57]wFMCommunicate request_size=4 [10:57:57]MH_SAM_APDU [10:57:57]CAPDU: 80 11 00 00 [10:57:57]Write to MH i2c: E2 08 00 C6 A9 80 11 00 00 00 00 00 00 E9 [10:57:57]Write i2c OK [10:57:57]MH_I2C_Read... [10:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:57]Read from MH i2c: E2 [10:57:57]MH_I2C_Read... [10:57:57]Read from MH i2c: E2 17 00 [10:57:57]MH_I2C_Read... [10:57:57]Read from MH i2c: E2 17 00 C6 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 45 [10:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:57:57]wFMCommunicate OK [10:57:57]requested_item fd.num is exist - process it [10:57:57]SAM_PROTO_GetFieldsCounters [10:57:57]wFMCommunicate request_size=4 [10:57:57]MH_SAM_APDU [10:57:57]CAPDU: 80 13 00 00 [10:57:57]Write to MH i2c: E2 08 00 C7 A9 80 13 00 00 00 00 00 00 EC [10:57:57]Write i2c OK [10:57:57]MH_I2C_Read... [10:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:57]Read from MH i2c: E2 [10:57:57]MH_I2C_Read... [10:57:57]Read from MH i2c: E2 62 00 [10:57:57]MH_I2C_Read... [10:57:57]Read from MH i2c: E2 62 00 C7 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FC 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FC 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:57]wFMCommunicate OK [10:57:57]SAM_PROTO_GetFieldsCounters done [10:57:57]requested_item shift.num is exist - process it [10:57:57]requested_item shift.opened is exist - process it [10:57:57]req_shift_opened [10:57:57]FM_GetShiftState [10:57:57]SAM_PROTO_GetShiftState [10:57:57]wFMCommunicate request_size=4 [10:57:57]MH_SAM_APDU [10:57:57]CAPDU: 80 13 01 00 [10:57:57]Write to MH i2c: E2 08 00 C8 A9 80 13 01 00 00 00 00 00 EE [10:57:57]Write i2c OK [10:57:57]MH_I2C_Read... [10:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:58]Read from MH i2c: E2 [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: E2 0E 00 [10:57:58]MH_I2C_Read... [10:57:58]Read from MH i2c: E2 0E 00 C8 A9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 27 [10:57:58]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:57:58]wFMCommunicate OK [10:57:58]SAM_PROTO_GetShiftState done [10:57:58]FM_GetShiftState done [10:57:58]req_shift_opened done [10:57:58]requested_item shift.open_date is exist - process it [10:57:58]req_shift_open_date [10:57:58]req_shift_open_date done [10:57:58]produce_requested_data done [10:57:58]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69884,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:57:58]process_action_free close_receipt [10:57:58]json_value_free [10:57:58]json_value_free done [10:57:58]process_json_proto returns [10:57:58]Send response to host [10:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69884,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:57:58]free response buf [10:57:58]execute_script done [10:57:58]execute_script returns [10:57:58]free content buf [10:57:58]Sock 7.Close socket [10:57:58]Sock 7.Thread stoped [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]accept exits with 9 [10:58:41]New connection [10:58:41]New thread 3066858852 created [10:58:41]Thread 3067002212 joined [10:58:41]Waiting for new connection... [10:58:41] Sock 9.Parse request [10:58:41]Sock 9.Check first char [10:58:41]Sock 9.First char is OK [10:58:41]request: POST /json_proto HTTP/1.0 [10:58:41]Method: POST [10:58:41]URL: /json_proto [10:58:41]Method is POST - this is cgi request [10:58:41]url: /json_proto [10:58:41]query_string will be loaded in cgi processing [10:58:41]execute_cgi json_proto POST (null) [10:58:41]execute_cgi path=json_proto method=POST [10:58:41]POST find Content-Length [10:58:41]Host: 172.17.49.132:8080 [10:58:41]Content-Length: 646 [10:58:41]Content-Type: application/json [10:58:41] [10:58:41]POST finish read [10:58:41]Found Content-Length = 646 [10:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137115", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:41]execute_script... [10:58: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 : (3)137115", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:41]POST & json_proto [10:58:41]process_json_proto [10:58:41]json parsed OK: [10:58:41]protocol is kg_v1.0 [10:58:41]action value=close_receipt [10:58:41]process_action close_receipt [10:58:41]cmd_close_receipt [10:58:41]MH_GetDate [10:58:41]Write to MH i2c: F0 00 00 C9 A9 61 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: F0 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: F0 09 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: F0 09 00 C9 A9 00 73 6A AB 66 E7 4B C0 64 AE [10:58:41]GetLastDocTimeStamp 1722509891 [10:58:41]current date 1722509939 [10:58:41]FM_GetShiftState [10:58:41]SAM_PROTO_GetShiftState [10:58:41]wFMCommunicate request_size=4 [10:58:41]MH_SAM_APDU [10:58:41]CAPDU: 80 13 01 00 [10:58:41]Write to MH i2c: E2 08 00 CA A9 80 13 01 00 00 00 00 00 F0 [10:58:41]Write i2c OK [10:58:41]MH_I2C_Read... [10:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:41]Read from MH i2c: E2 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 0E 00 [10:58:41]MH_I2C_Read... [10:58:41]Read from MH i2c: E2 0E 00 CA A9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 29 [10:58:41]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:58:41]wFMCommunicate OK [10:58:41]SAM_PROTO_GetShiftState done [10:58:41]FM_GetShiftState done [10:58:41]opened in 1722472772 [10:58:41]opened+sec_in_day 1722559172 [10:58:41]quantity*price = 26000 [10:58:41]sum+1 = 26001 [10:58:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 48 01.08.2024 10:58 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69885 ФПД: 149418469761458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105859&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69885&fm=149418469761458&tin=02508201610067®Number=0000000000092638&sum=26000 0 [10:58:42]StoreToDocumentArchive [10:58:42]shift 433 fd 69885 [10:58:42]save to /storage/0433/doc_00069885 [10:58:42]save last doc name /storage/0433/doc_00069885 to /storage/kkm_last_doc_name [10:58:42]save OK [10:58:42]Clear old archive folders... [10:58:42]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:58:42]tlvbuf is 011967B0 [10:58:42]SAM_PROTO_ClearQueue [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 09 00 00 [10:58:42]Write to MH i2c: E2 08 00 D7 A9 80 09 00 00 00 00 00 00 F2 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 D7 A9 00 90 00 F4 [10:58:42]RAPDU: 90 00 [10:58:42]wFMCommunicate OK [10:58:42]SAM_PROTO_ClearQueue done [10:58:42]KKMCreateOFDPacket [10:58:42]OFDProtocolAddRootSTLVToBuf [10:58:42]FM_MakeSignedData [10:58:42]FM_MakeSignedData [10:58:42]SAM_PROTO_SignData [10:58:42]wFMCommunicate request_size=4 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 0D 01 02 [10:58:42]Write to MH i2c: E2 08 00 D8 A9 80 0D 01 02 00 00 00 00 FA [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:42]Read from MH i2c: E2 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 [10:58:42]MH_I2C_Read... [10:58:42]Read from MH i2c: E2 03 00 D8 A9 00 90 00 F5 [10:58:42]RAPDU: 90 00 [10:58:42]wFMCommunicate OK [10:58:42]wFMCommunicate request_size=255 [10:58:42]MH_SAM_APDU [10:58:42]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 30 00 00 00 F4 03 04 00 73 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 [10:58:42]Write to MH i2c: E2 02 01 D9 A9 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 30 00 00 00 F4 03 04 00 73 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 00 00 96 [10:58:42]Write i2c OK [10:58:42]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 D9 A9 00 90 00 F6 [10:58:43]RAPDU: 90 00 [10:58:43]wFMCommunicate OK [10:58:43]wFMCommunicate request_size=41 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FD 10 01 00 35 04 06 00 87 E5 32 D0 21 B2 [10:58:43]Write to MH i2c: E2 2C 00 DA A9 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FD 10 01 00 35 04 06 00 87 E5 32 D0 21 B2 00 00 24 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 03 00 DA A9 00 90 00 F7 [10:58:43]RAPDU: 90 00 [10:58:43]wFMCommunicate OK [10:58:43]wFMCommunicate request_size=4 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 0D 03 02 [10:58:43]Write to MH i2c: E2 08 00 DB A9 80 0D 03 02 00 00 00 00 FF [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0B 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0B 00 DB A9 00 A1 AA F1 31 BE FB E3 02 90 00 0B [10:58:43]RAPDU: A1 AA F1 31 BE FB E3 02 90 00 [10:58:43]wFMCommunicate OK [10:58:43]SAM_PROTO_SignData done [10:58:43]FM_MakeSignedData done [10:58:43]CreateOFDProtocolMessage [10:58:43]wFMCommunicate request_size=4 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 11 00 00 [10:58:43]Write to MH i2c: E2 08 00 DC A9 80 11 00 00 00 00 00 00 FF [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 17 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 17 00 DC A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5B [10:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:58:43]wFMCommunicate OK [10:58:43]CreateOFDProtocolMessage done [10:58:43]OFDSenderStorePacket 69885 [10:58:43]StoreOFDPacket docnum=69885 [10:58:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 53 EB 26 01 44 0F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 30 00 00 00 F4 03 04 00 73 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FD 10 01 00 35 04 06 00 87 E5 32 D0 21 B2 A1 AA F1 31 BE FB E3 02 [10:58:43]CheckFolder [10:58:43]dirname=/storage/ofd_packets [10:58:43]CheckFolder done [10:58:43]ProducePacketName [10:58:43]name=ofd_packets/00069885 [10:58:43]NVStorageSaveData ofd_packets/00069885 [10:58:43]File name is /storage/ofd_packets/00069885 [10:58:43]Write 332 bytes [10:58:43]NVStorageSaveData done [10:58:43]OFDSenderStorePacket done [10:58:43]KKMCreateOFDPacket done [10:58:43]NVStorageSaveData kkm_last_timestamp [10:58:43]File name is /storage/kkm_last_timestamp [10:58:43]Write 4 bytes [10:58:43]NVStorageSaveData done [10:58:43]ExternCall_PrintAddStr [10:58:43]wPrintStart [10:58:43]Write to MH i2c: 01 00 00 DD A9 86 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: 01 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: 01 07 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: 01 07 00 DD A9 00 00 00 00 00 FF 0F 9B [10:58:43]RasterBufferAndPrint [10:58:43]line Счет N : (3)137115 [10:58:43]line ИНН: 02508201610067 [10:58:43]line Контрольно-Кассовый Чек [10:58:43]line ПРОДАЖА [10:58:43]line Товар: 2000036220012 [10:58:43]line Кофе Капучино XL(GABB TRADE) [10:58:43]line 2.000 * 130.00 [10:58:43]line = 260.00 [10:58:43]line НДС 12% НСП 1% [10:58:43]line > о реализуемом товаре [10:58:43]line ИТОГО: 260.00 [10:58:43]line НСП 1% : 2.30 [10:58:43]line НДС 12% : 27.61 [10:58:43]line Наличными: 260.00 [10:58:43]line Безнал.: 0.00 [10:58:43]line Место: АЗС № 125 "Партнер Нефть" [10:58:43]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [10:58:43]line СНО: Общий режим [10:58:43]line Чек 48 01.08.2024 10:58 [10:58:43]line Смена: 433 ФФД: 1.0 [10:58:43]line ЗНМ: 0300000049 [10:58:43]line РНМ: 0000000000092638 [10:58:43]line Версия ККМ: 001 [10:58:43]line ФМ: 0000000000874949 [10:58:43]line ФД: 69885 [10:58:43]line ФПД: 149418469761458 [10:58:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T105859&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69885&fm=149418469761458&tin=02508201610067®Number=0000000000092638&sum=26000 [10:58:43]line 0 [10:58:43]OFD Sender: Processing packet 69885 [packets to send 19, broken 18] [10:58:43]ProducePacketName [10:58:43]name=ofd_packets/00069885 [10:58:43]OFD Sender: To server: pG, [10:58:43]CommunicateWithHost lk.salyk.kg:30040 [10:58:43]ConnectInit lk.salyk.kg [10:58:43]written 0, free lines is 4095 [10:58:43]Connected sock=10 [10:58:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2E 01 00 00 53 EB 26 01 44 0F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 30 00 00 00 F4 03 04 00 73 6A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FD 10 01 00 35 04 06 00 87 E5 32 D0 21 B2 A1 AA F1 31 BE FB E3 02 [10:58:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 2F C8 47 00 29 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 34 39 34 39 10 04 04 00 FD 10 01 00 F4 03 04 00 D5 10 AB 66 B6 04 01 00 00 B8 42 00 5F 78 EB DD 79 [10:58:44]CommunicateWithHost err = 0 [10:58:44]CheckOFDResponse [10:58:44]1017 (14) - 77093643461234 [10:58:44]1041 (16) - 0000000000874949 [10:58:44]1040 (4) - 69885 [10:58:44]1012 (4) - 01.08.2024 04:36 [10:58:44]1206 (1) - 0 [10:58:44]OFD Sender: Remove packet 69885 [10:58:44]ProducePacketName [10:58:44]name=ofd_packets/00069885 [10:58:44]NVStorageDeleteData [10:58:44]Write to MH i2c: 01 00 00 06 AA B0 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 07 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: 01 07 00 06 AA 00 00 00 00 00 0A 0D CE [10:58:44]RasterBufferAndPrint [10:58:44]line [10:58:44]line [10:58:44]line [10:58:44]line [10:58:44]line [10:58:44]written 0, free lines is 3344 [10:58:44]MH_Cut [10:58:44]Write to MH i2c: D1 01 00 0D AA 01 89 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: D1 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: D1 01 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: D1 01 00 0D AA 00 88 [10:58:44]Write to MH i2c: 01 00 00 0E AA B8 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]OFD Sender: No OFD packet to send [10:58:44]*** Cut start [10:58:44]*** Partial cut [10:58:44]*** CUTSNS_PIN = 1 [10:58:44]*** CUTSNS_PIN = 0 [10:58:45]*** Brake cut motor [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]*** Stop cut motor [10:58:45]*** Cut end [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 0E AA 00 00 00 00 00 FF 0F CD [10:58:45]process_action close_receipt done [10:58:45]requested_data is exist [10:58:45]produce_requested_data [10:58:45]requested_item fm.sn is exist - process it [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 11 00 00 [10:58:45]Write to MH i2c: E2 08 00 0F AA 80 11 00 00 00 00 00 00 33 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 0F AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 8F [10:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [10:58:45]wFMCommunicate OK [10:58:45]requested_item fd.num is exist - process it [10:58:45]SAM_PROTO_GetFieldsCounters [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 13 00 00 [10:58:45]Write to MH i2c: E2 08 00 10 AA 80 13 00 00 00 00 00 00 36 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 62 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 62 00 10 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FD 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [10:58:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FD 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_GetFieldsCounters done [10:58:45]requested_item shift.num is exist - process it [10:58:45]requested_item shift.opened is exist - process it [10:58:45]req_shift_opened [10:58:45]FM_GetShiftState [10:58:45]SAM_PROTO_GetShiftState [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 13 01 00 [10:58:45]Write to MH i2c: E2 08 00 11 AA 80 13 01 00 00 00 00 00 38 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0E 00 11 AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 71 [10:58:45]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_GetShiftState done [10:58:45]FM_GetShiftState done [10:58:45]req_shift_opened done [10:58:45]requested_item shift.open_date is exist - process it [10:58:45]req_shift_open_date [10:58:45]req_shift_open_date done [10:58:45]produce_requested_data done [10:58:45]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69885,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [10:58:45]process_action_free close_receipt [10:58:45]json_value_free [10:58:45]json_value_free done [10:58:45]process_json_proto returns [10:58:45]Send response to host [10:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69885,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [10:58:45]free response buf [10:58:45]execute_script done [10:58:45]execute_script returns [10:58:45]free content buf [10:58:45]Sock 9.Close socket [10:58:45]Sock 9.Thread stoped [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13: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]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:21:56]accept exits with 7 [11:21:56]New connection [11:21:56]New thread 3067002212 created [11:21:56]Thread 3066858852 joined [11:21:56]Waiting for new connection... [11:21:56] Sock 7.Parse request [11:21:56]Sock 7.Check first char [11:21:56]Sock 7.First char is OK [11:21:56]request: POST /json_proto HTTP/1.0 [11:21:56]Method: POST [11:21:56]URL: /json_proto [11:21:56]Method is POST - this is cgi request [11:21:56]url: /json_proto [11:21:56]query_string will be loaded in cgi processing [11:21:56]execute_cgi json_proto POST (null) [11:21:56]execute_cgi path=json_proto method=POST [11:21:56]POST find Content-Length [11:21:56]Host: 172.17.49.132:8080 [11:21:56]Content-Length: 647 [11:21:56]Content-Type: application/json [11:21:56] [11:21:56]POST finish read [11:21:56]Found Content-Length = 647 [11:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137116", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:56]execute_script... [11:21:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137116", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:56]POST & json_proto [11:21:56]process_json_proto [11:21:56]json parsed OK: [11:21:56]protocol is kg_v1.0 [11:21:56]action value=close_receipt [11:21:56]process_action close_receipt [11:21:56]cmd_close_receipt [11:21:56]MH_GetDate [11:21:56]Write to MH i2c: F0 00 00 12 AA AB [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: F0 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: F0 09 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: F0 09 00 12 AA 00 E6 6F AB 66 E7 4B C0 64 70 [11:21:56]GetLastDocTimeStamp 1722509939 [11:21:56]current date 1722511334 [11:21:56]FM_GetShiftState [11:21:56]SAM_PROTO_GetShiftState [11:21:56]wFMCommunicate request_size=4 [11:21:56]MH_SAM_APDU [11:21:56]CAPDU: 80 13 01 00 [11:21:56]Write to MH i2c: E2 08 00 13 AA 80 13 01 00 00 00 00 00 3A [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:56]Read from MH i2c: E2 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: E2 0E 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: E2 0E 00 13 AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 73 [11:21:56]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [11:21:56]wFMCommunicate OK [11:21:56]SAM_PROTO_GetShiftState done [11:21:56]FM_GetShiftState done [11:21:56]opened in 1722472772 [11:21:56]opened+sec_in_day 1722559172 [11:21:56]quantity*price = 12000 [11:21:56]sum+1 = 12001 [11:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 49 01.08.2024 11:22 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69886 ФПД: 119609976127174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T112214&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69886&fm=119609976127174&tin=02508201610067®Number=0000000000092638&sum=12000 0 [11:21:57]StoreToDocumentArchive [11:21:57]shift 433 fd 69886 [11:21:57]save to /storage/0433/doc_00069886 [11:21:57]save last doc name /storage/0433/doc_00069886 to /storage/kkm_last_doc_name [11:21:57]save OK [11:21:57]Clear old archive folders... [11:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:21:57]tlvbuf is 013FB8F0 [11:21:57]SAM_PROTO_ClearQueue [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 09 00 00 [11:21:57]Write to MH i2c: E2 08 00 20 AA 80 09 00 00 00 00 00 00 3C [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 20 AA 00 90 00 3E [11:21:57]RAPDU: 90 00 [11:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_ClearQueue done [11:21:57]KKMCreateOFDPacket [11:21:57]OFDProtocolAddRootSTLVToBuf [11:21:57]FM_MakeSignedData [11:21:57]FM_MakeSignedData [11:21:57]SAM_PROTO_SignData [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 0D 01 02 [11:21:57]Write to MH i2c: E2 08 00 21 AA 80 0D 01 02 00 00 00 00 44 [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 21 AA 00 90 00 3F [11:21:57]RAPDU: 90 00 [11:21:57]wFMCommunicate OK [11:21:57]wFMCommunicate request_size=255 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E6 6F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 [11:21:57]Write to MH i2c: E2 02 01 22 AA 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E6 6F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 00 00 00 [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 22 AA 00 90 00 40 [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]wFMCommunicate request_size=35 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FE 10 01 00 35 04 06 00 6C C8 DE 23 7E C6 [11:21:58]Write to MH i2c: E2 26 00 23 AA 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FE 10 01 00 35 04 06 00 6C C8 DE 23 7E C6 00 00 CB [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 23 AA 00 90 00 41 [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 03 02 [11:21:58]Write to MH i2c: E2 08 00 24 AA 80 0D 03 02 00 00 00 00 49 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0B 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0B 00 24 AA 00 FF 4E D1 C0 AC 28 C0 92 90 00 4E [11:21:58]RAPDU: FF 4E D1 C0 AC 28 C0 92 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_SignData done [11:21:58]FM_MakeSignedData done [11:21:58]CreateOFDProtocolMessage [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 11 00 00 [11:21:58]Write to MH i2c: E2 08 00 25 AA 80 11 00 00 00 00 00 00 49 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 17 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 17 00 25 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A5 [11:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:21:58]wFMCommunicate OK [11:21:58]CreateOFDProtocolMessage done [11:21:58]OFDSenderStorePacket 69886 [11:21:58]StoreOFDPacket docnum=69886 [11:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 E4 56 20 01 EE 39 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E6 6F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FE 10 01 00 35 04 06 00 6C C8 DE 23 7E C6 FF 4E D1 C0 AC 28 C0 92 [11:21:58]CheckFolder [11:21:58]dirname=/storage/ofd_packets [11:21:58]CheckFolder done [11:21:58]ProducePacketName [11:21:58]name=ofd_packets/00069886 [11:21:58]NVStorageSaveData ofd_packets/00069886 [11:21:58]File name is /storage/ofd_packets/00069886 [11:21:58]Write 326 bytes [11:21:58]NVStorageSaveData done [11:21:58]OFDSenderStorePacket done [11:21:58]KKMCreateOFDPacket done [11:21:58]NVStorageSaveData kkm_last_timestamp [11:21:58]File name is /storage/kkm_last_timestamp [11:21:58]Write 4 bytes [11:21:58]NVStorageSaveData done [11:21:58]ExternCall_PrintAddStr [11:21:58]wPrintStart [11:21:58]Write to MH i2c: 01 00 00 26 AA D0 [11:21:58]OFD Sender: Processing packet 69886 [packets to send 19, broken 18] [11:21:58]ProducePacketName [11:21:58]name=ofd_packets/00069886 [11:21:58]OFD Sender: To server: pG, [11:21:58]CommunicateWithHost lk.salyk.kg:30040 [11:21:58]ConnectInit lk.salyk.kg [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 26 AA 00 00 00 00 00 FF 0F E5 [11:21:58]RasterBufferAndPrint [11:21:58]line Счет N : (3)137116 [11:21:58]line ИНН: 02508201610067 [11:21:58]line Контрольно-Кассовый Чек [11:21:58]line ПРОДАЖА [11:21:58]line Товар: 4700000310043 [11:21:58]line Вода Жалалабат 27 1л [11:21:58]line 2.000 * 60.00 [11:21:58]line = 120.00 [11:21:58]line НДС 12% НСП 1% [11:21:58]line > о реализуемом товаре [11:21:58]line ИТОГО: 120.00 [11:21:58]line НСП 1% : 1.06 [11:21:58]line НДС 12% : 12.74 [11:21:58]line Наличными: 120.00 [11:21:58]line Безнал.: 0.00 [11:21:58]line Место: АЗС № 125 "Партнер Нефть" [11:21:58]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:21:58]line СНО: Общий режим [11:21:58]line Чек 49 01.08.2024 11:22 [11:21:58]line Смена: 433 ФФД: 1.0 [11:21:58]line ЗНМ: 0300000049 [11:21:58]line РНМ: 0000000000092638 [11:21:58]line Версия ККМ: 001 [11:21:58]line ФМ: 0000000000874949 [11:21:58]line ФД: 69886 [11:21:58]line ФПД: 119609976127174 [11:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T112214&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69886&fm=119609976127174&tin=02508201610067®Number=0000000000092638&sum=12000 [11:21:58]line 0 [11:21:58]written 0, free lines is 4095 [11:21:58]Connected sock=10 [11:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 28 01 00 00 E4 56 20 01 EE 39 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E6 6F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FE 10 01 00 35 04 06 00 6C C8 DE 23 7E C6 FF 4E D1 C0 AC 28 C0 92 [11:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 BB CF 47 00 C3 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FE 10 01 00 F4 03 04 00 47 16 AB 66 B6 04 01 00 00 B2 CB 89 F9 AB 6C 6D 0C [11:21:58]CommunicateWithHost err = 0 [11:21:58]CheckOFDResponse [11:21:58]1017 (14) - 77093643461234 [11:21:58]1041 (16) - 0000000000874949 [11:21:58]1040 (4) - 69886 [11:21:58]1012 (4) - 01.08.2024 04:59 [11:21:58]1206 (1) - 0 [11:21:58]OFD Sender: Remove packet 69886 [11:21:58]ProducePacketName [11:21:58]name=ofd_packets/00069886 [11:21:58]NVStorageDeleteData [11:21:58]Write to MH i2c: 01 00 00 4E AA F8 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 4E AA 00 00 00 00 00 22 0D 2E [11:21:58]RasterBufferAndPrint [11:21:58]line [11:21:58]line [11:21:58]line [11:21:58]line [11:21:58]line [11:21:58]written 0, free lines is 3371 [11:21:58]MH_Cut [11:21:58]Write to MH i2c: D1 01 00 55 AA 01 D1 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: D1 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: D1 01 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: D1 01 00 55 AA 00 D0 [11:21:58]Write to MH i2c: 01 00 00 56 AA 00 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:59]OFD Sender: No OFD packet to send [11:21:59]*** Cut start [11:21:59]*** Partial cut [11:21:59]*** CUTSNS_PIN = 1 [11:21:59]*** CUTSNS_PIN = 0 [11:21:59]*** Brake cut motor [11:22:00]Read from MH i2c: 01 [11:22:00]MH_I2C_Read... [11:22:00]*** Stop cut motor [11:22:00]*** Cut end [11:22:00]Read from MH i2c: 01 07 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 07 00 56 AA 00 00 00 00 00 FF 0F 15 [11:22:00]process_action close_receipt done [11:22:00]requested_data is exist [11:22:00]produce_requested_data [11:22:00]requested_item fm.sn is exist - process it [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 11 00 00 [11:22:00]Write to MH i2c: E2 08 00 57 AA 80 11 00 00 00 00 00 00 7B [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 17 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 17 00 57 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D7 [11:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:22:00]wFMCommunicate OK [11:22:00]requested_item fd.num is exist - process it [11:22:00]SAM_PROTO_GetFieldsCounters [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 13 00 00 [11:22:00]Write to MH i2c: E2 08 00 58 AA 80 13 00 00 00 00 00 00 7E [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 62 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 62 00 58 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FE 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FE 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_GetFieldsCounters done [11:22:00]requested_item shift.num is exist - process it [11:22:00]requested_item shift.opened is exist - process it [11:22:00]req_shift_opened [11:22:00]FM_GetShiftState [11:22:00]SAM_PROTO_GetShiftState [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 13 01 00 [11:22:00]Write to MH i2c: E2 08 00 59 AA 80 13 01 00 00 00 00 00 80 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 59 AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 B9 [11:22:00]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_GetShiftState done [11:22:00]FM_GetShiftState done [11:22:00]req_shift_opened done [11:22:00]requested_item shift.open_date is exist - process it [11:22:00]req_shift_open_date [11:22:00]req_shift_open_date done [11:22:00]produce_requested_data done [11:22:00]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69886,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [11:22:00]process_action_free close_receipt [11:22:00]json_value_free [11:22:00]json_value_free done [11:22:00]process_json_proto returns [11:22:00]Send response to host [11:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69886,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [11:22:00]free response buf [11:22:00]execute_script done [11:22:00]execute_script returns [11:22:00]free content buf [11:22:00]Sock 7.Close socket [11:22:00]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:43]accept exits with 9 [11:34:43]New connection [11:34:43]New thread 3066858852 created [11:34:43]Thread 3067002212 joined [11:34:43]Waiting for new connection... [11:34:43] Sock 9.Parse request [11:34:43]Sock 9.Check first char [11:34:43]Sock 9.First char is OK [11:34:43]request: POST /json_proto HTTP/1.0 [11:34:43]Method: POST [11:34:43]URL: /json_proto [11:34:43]Method is POST - this is cgi request [11:34:43]url: /json_proto [11:34:43]query_string will be loaded in cgi processing [11:34:43]execute_cgi json_proto POST (null) [11:34:43]execute_cgi path=json_proto method=POST [11:34:43]POST find Content-Length [11:34:43]Host: 172.17.49.132:8080 [11:34:43]Content-Length: 621 [11:34:43]Content-Type: application/json [11:34:43] [11:34:43]POST finish read [11:34:43]Found Content-Length = 621 [11:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137117", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:43]execute_script... [11:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137117", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:43]POST & json_proto [11:34:43]process_json_proto [11:34:43]json parsed OK: [11:34:43]protocol is kg_v1.0 [11:34:43]action value=close_receipt [11:34:43]process_action close_receipt [11:34:43]cmd_close_receipt [11:34:43]MH_GetDate [11:34:43]Write to MH i2c: F0 00 00 5A AA F3 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: F0 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: F0 09 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: F0 09 00 5A AA 00 E5 72 AB 66 E7 4B C0 64 BA [11:34:43]GetLastDocTimeStamp 1722511334 [11:34:43]current date 1722512101 [11:34:43]FM_GetShiftState [11:34:43]SAM_PROTO_GetShiftState [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 13 01 00 [11:34:43]Write to MH i2c: E2 08 00 5B AA 80 13 01 00 00 00 00 00 82 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0E 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0E 00 5B AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BB [11:34:43]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [11:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_GetShiftState done [11:34:43]FM_GetShiftState done [11:34:43]opened in 1722472772 [11:34:43]opened+sec_in_day 1722559172 [11:34:43]quantity*price = 14000 [11:34:43]sum+1 = 14001 [11:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 50 01.08.2024 11:35 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69887 ФПД: 270950828153830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T113501&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69887&fm=270950828153830&tin=02508201610067®Number=0000000000092638&sum=14000 0 [11:34:44]StoreToDocumentArchive [11:34:44]shift 433 fd 69887 [11:34:44]save to /storage/0433/doc_00069887 [11:34:44]save last doc name /storage/0433/doc_00069887 to /storage/kkm_last_doc_name [11:34:44]save OK [11:34:44]Clear old archive folders... [11:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:34:44]tlvbuf is 01461F40 [11:34:44]SAM_PROTO_ClearQueue [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 09 00 00 [11:34:44]Write to MH i2c: E2 08 00 68 AA 80 09 00 00 00 00 00 00 84 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 03 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 03 00 68 AA 00 90 00 86 [11:34:44]RAPDU: 90 00 [11:34:44]wFMCommunicate OK [11:34:44]SAM_PROTO_ClearQueue done [11:34:44]KKMCreateOFDPacket [11:34:44]OFDProtocolAddRootSTLVToBuf [11:34:44]FM_MakeSignedData [11:34:44]FM_MakeSignedData [11:34:44]SAM_PROTO_SignData [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 0D 01 02 [11:34:44]Write to MH i2c: E2 08 00 69 AA 80 0D 01 02 00 00 00 00 8C [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 03 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 03 00 69 AA 00 90 00 87 [11:34:44]RAPDU: 90 00 [11:34:44]wFMCommunicate OK [11:34:44]wFMCommunicate request_size=255 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E5 72 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [11:34:44]Write to MH i2c: E2 02 01 6A AA 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E5 72 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 D0 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 6A AA 00 90 00 88 [11:34:45]RAPDU: 90 00 [11:34:45]wFMCommunicate OK [11:34:45]wFMCommunicate request_size=32 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 FF 10 01 00 35 04 06 00 F6 6D A7 DD 1B E6 [11:34:45]Write to MH i2c: E2 23 00 6B AA 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 FF 10 01 00 35 04 06 00 F6 6D A7 DD 1B E6 00 00 ED [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 03 00 6B AA 00 90 00 89 [11:34:45]RAPDU: 90 00 [11:34:45]wFMCommunicate OK [11:34:45]wFMCommunicate request_size=4 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 0D 03 02 [11:34:45]Write to MH i2c: E2 08 00 6C AA 80 0D 03 02 00 00 00 00 91 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 0B 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 0B 00 6C AA 00 64 5A 9F 0A CC 27 9B 98 90 00 1F [11:34:45]RAPDU: 64 5A 9F 0A CC 27 9B 98 90 00 [11:34:45]wFMCommunicate OK [11:34:45]SAM_PROTO_SignData done [11:34:45]FM_MakeSignedData done [11:34:45]CreateOFDProtocolMessage [11:34:45]wFMCommunicate request_size=4 [11:34:45]MH_SAM_APDU [11:34:45]CAPDU: 80 11 00 00 [11:34:45]Write to MH i2c: E2 08 00 6D AA 80 11 00 00 00 00 00 00 91 [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:45]Read from MH i2c: E2 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 17 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: E2 17 00 6D AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 ED [11:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:34:45]wFMCommunicate OK [11:34:45]CreateOFDProtocolMessage done [11:34:45]OFDSenderStorePacket 69887 [11:34:45]StoreOFDPacket docnum=69887 [11:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 6B E1 1D 01 66 A7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E5 72 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 FF 10 01 00 35 04 06 00 F6 6D A7 DD 1B E6 64 5A 9F 0A CC 27 9B 98 [11:34:45]CheckFolder [11:34:45]dirname=/storage/ofd_packets [11:34:45]CheckFolder done [11:34:45]ProducePacketName [11:34:45]name=ofd_packets/00069887 [11:34:45]NVStorageSaveData ofd_packets/00069887 [11:34:45]File name is /storage/ofd_packets/00069887 [11:34:45]Write 323 bytes [11:34:45]NVStorageSaveData done [11:34:45]OFDSenderStorePacket done [11:34:45]KKMCreateOFDPacket done [11:34:45]NVStorageSaveData kkm_last_timestamp [11:34:45]File name is /storage/kkm_last_timestamp [11:34:45]Write 4 bytes [11:34:45]NVStorageSaveData done [11:34:45]ExternCall_PrintAddStr [11:34:45]wPrintStart [11:34:45]Write to MH i2c: 01 00 00 6E AA 18 [11:34:45]OFD Sender: Processing packet 69887 [packets to send 19, broken 18] [11:34:45]ProducePacketName [11:34:45]name=ofd_packets/00069887 [11:34:45]OFD Sender: To server: pG, [11:34:45]CommunicateWithHost lk.salyk.kg:30040 [11:34:45]ConnectInit lk.salyk.kg [11:34:45]Write i2c OK [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: 01 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: 01 07 00 [11:34:45]MH_I2C_Read... [11:34:45]Read from MH i2c: 01 07 00 6E AA 00 00 00 00 00 FF 0F 2D [11:34:45]RasterBufferAndPrint [11:34:45]line Счет N : (3)137117 [11:34:45]line ИНН: 02508201610067 [11:34:45]line Контрольно-Кассовый Чек [11:34:45]line ПРОДАЖА [11:34:45]line Товар: 48743570 [11:34:45]line Сигареты Winston XStyle Blue [11:34:45]line 1.000 * 140.00 [11:34:45]line = 140.00 [11:34:45]line НДС 12% НСП 1% [11:34:45]line > о реализуемом товаре [11:34:45]line ИТОГО: 140.00 [11:34:45]line НСП 1% : 1.24 [11:34:45]line НДС 12% : 14.87 [11:34:45]line Наличными: 140.00 [11:34:45]line Безнал.: 0.00 [11:34:45]line Место: АЗС № 125 "Партнер Нефть" [11:34:45]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:34:45]line СНО: Общий режим [11:34:45]line Чек 50 01.08.2024 11:35 [11:34:45]line Смена: 433 ФФД: 1.0 [11:34:45]line ЗНМ: 0300000049 [11:34:45]line РНМ: 0000000000092638 [11:34:45]line Версия ККМ: 001 [11:34:45]line ФМ: 0000000000874949 [11:34:45]line ФД: 69887 [11:34:45]line ФПД: 270950828153830 [11:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T113501&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69887&fm=270950828153830&tin=02508201610067®Number=0000000000092638&sum=14000 [11:34:45]Connected sock=10 [11:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 6B E1 1D 01 66 A7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 E5 72 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 line 0 [11:34:45]30 30 30 38 37 34 39 34 39 10 04 04 00 FF 10 01 00 35 04 06 00 F6 6D A7 DD 1B E6 64 5A 9F 0A CC 27 9B 98 [11:34:45]written 0, free lines is 4095 [11:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 82 1B 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 34 39 34 39 10 04 04 00 FF 10 01 00 F4 03 04 00 47 19 AB 66 B6 04 01 00 00 AB 83 66 10 8F F9 90 42 [11:34:45]CommunicateWithHost err = 0 [11:34:45]CheckOFDResponse [11:34:45]1017 (14) - 77093643461234 [11:34:45]1041 (16) - 0000000000874949 [11:34:45]1040 (4) - 69887 [11:34:45]1012 (4) - 01.08.2024 05:12 [11:34:45]1206 (1) - 0 [11:34:45]OFD Sender: Remove packet 69887 [11:34:45]ProducePacketName [11:34:45]name=ofd_packets/00069887 [11:34:45]NVStorageDeleteData [11:34:46]Write to MH i2c: 01 00 00 96 AA 40 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 07 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: 01 07 00 96 AA 00 00 00 00 00 10 0D 64 [11:34:46]RasterBufferAndPrint [11:34:46]line [11:34:46]line [11:34:46]line [11:34:46]line [11:34:46]line [11:34:46]written 0, free lines is 3353 [11:34:46]MH_Cut [11:34:46]Write to MH i2c: D1 01 00 9D AA 01 19 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: D1 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: D1 01 00 [11:34:46]MH_I2C_Read... [11:34:46]Read from MH i2c: D1 01 00 9D AA 00 18 [11:34:46]Write to MH i2c: 01 00 00 9E AA 48 [11:34:46]Write i2c OK [11:34:46]MH_I2C_Read... [11:34:46]OFD Sender: No OFD packet to send [11:34:46]*** Cut start [11:34:46]*** Partial cut [11:34:46]*** CUTSNS_PIN = 1 [11:34:46]*** CUTSNS_PIN = 0 [11:34:47]*** Brake cut motor [11:34:47]Read from MH i2c: 01 [11:34:47]MH_I2C_Read... [11:34:47]*** Stop cut motor [11:34:47]*** Cut end [11:34:47]Read from MH i2c: 01 07 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 07 00 9E AA 00 00 00 00 00 FF 0F 5D [11:34:47]process_action close_receipt done [11:34:47]requested_data is exist [11:34:47]produce_requested_data [11:34:47]requested_item fm.sn is exist - process it [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 11 00 00 [11:34:47]Write to MH i2c: E2 08 00 9F AA 80 11 00 00 00 00 00 00 C3 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 17 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 17 00 9F AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1F [11:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:34:47]wFMCommunicate OK [11:34:47]requested_item fd.num is exist - process it [11:34:47]SAM_PROTO_GetFieldsCounters [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 13 00 00 [11:34:47]Write to MH i2c: E2 08 00 A0 AA 80 13 00 00 00 00 00 00 C6 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 62 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 62 00 A0 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FF 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [11:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 FF 10 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:47]wFMCommunicate OK [11:34:47]SAM_PROTO_GetFieldsCounters done [11:34:47]requested_item shift.num is exist - process it [11:34:47]requested_item shift.opened is exist - process it [11:34:47]req_shift_opened [11:34:47]FM_GetShiftState [11:34:47]SAM_PROTO_GetShiftState [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 13 01 00 [11:34:47]Write to MH i2c: E2 08 00 A1 AA 80 13 01 00 00 00 00 00 C8 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 0E 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 0E 00 A1 AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 01 [11:34:47]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [11:34:47]wFMCommunicate OK [11:34:47]SAM_PROTO_GetShiftState done [11:34:47]FM_GetShiftState done [11:34:47]req_shift_opened done [11:34:47]requested_item shift.open_date is exist - process it [11:34:47]req_shift_open_date [11:34:47]req_shift_open_date done [11:34:47]produce_requested_data done [11:34:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69887,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [11:34:47]process_action_free close_receipt [11:34:47]json_value_free [11:34:47]json_value_free done [11:34:47]process_json_proto returns [11:34:47]Send response to host [11:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69887,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [11:34:47]free response buf [11:34:47]execute_script done [11:34:47]execute_script returns [11:34:47]free content buf [11:34:47]Sock 9.Close socket [11:34:47]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:50]accept exits with 7 [11:51:50]New connection [11:51:50]New thread 3067002212 created [11:51:50]Thread 3066858852 joined [11:51:50]Waiting for new connection... [11:51:50] Sock 7.Parse request [11:51:50]Sock 7.Check first char [11:51:50]Sock 7.First char is OK [11:51:50]request: POST /json_proto HTTP/1.0 [11:51:50]Method: POST [11:51:50]URL: /json_proto [11:51:50]Method is POST - this is cgi request [11:51:50]url: /json_proto [11:51:50]query_string will be loaded in cgi processing [11:51:50]execute_cgi json_proto POST (null) [11:51:50]execute_cgi path=json_proto method=POST [11:51:50]POST find Content-Length [11:51:50]Host: 172.17.49.132:8080 [11:51:50]Content-Length: 644 [11:51:50]Content-Type: application/json [11:51:50] [11:51:50]POST finish read [11:51:50]Found Content-Length = 644 [11:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137118", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:50]execute_script... [11:51: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 : (3)137118", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:50]POST & json_proto [11:51:50]process_json_proto [11:51:50]json parsed OK: [11:51:50]protocol is kg_v1.0 [11:51:50]action value=close_receipt [11:51:50]process_action close_receipt [11:51:50]cmd_close_receipt [11:51:50]MH_GetDate [11:51:50]Write to MH i2c: F0 00 00 A2 AA 3B [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: F0 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: F0 09 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: F0 09 00 A2 AA 00 E8 76 AB 66 E7 4B C0 64 09 [11:51:50]GetLastDocTimeStamp 1722512101 [11:51:50]current date 1722513128 [11:51:50]FM_GetShiftState [11:51:50]SAM_PROTO_GetShiftState [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 13 01 00 [11:51:50]Write to MH i2c: E2 08 00 A3 AA 80 13 01 00 00 00 00 00 CA [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 0E 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 0E 00 A3 AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 03 [11:51:50]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [11:51:50]wFMCommunicate OK [11:51:50]SAM_PROTO_GetShiftState done [11:51:50]FM_GetShiftState done [11:51:50]opened in 1722472772 [11:51:50]opened+sec_in_day 1722559172 [11:51:50]quantity*price = 5000 [11:51:50]sum+1 = 5001 [11:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 51 01.08.2024 11:52 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69888 ФПД: 152305737356799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T115208&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69888&fm=152305737356799&tin=02508201610067®Number=0000000000092638&sum=5000 0 [11:51:51]StoreToDocumentArchive [11:51:51]shift 433 fd 69888 [11:51:51]save to /storage/0433/doc_00069888 [11:51:51]save last doc name /storage/0433/doc_00069888 to /storage/kkm_last_doc_name [11:51:51]save OK [11:51:51]Clear old archive folders... [11:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:51:51]tlvbuf is 013DCC10 [11:51:51]SAM_PROTO_ClearQueue [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 09 00 00 [11:51:51]Write to MH i2c: E2 08 00 B0 AA 80 09 00 00 00 00 00 00 CC [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 09 00 00... 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 B0 AA 00 90 00 CE [11:51:51]RAPDU: 90 00 [11:51:51]wFMCommunicate OK [11:51:51]SAM_PROTO_ClearQueue done [11:51:51]KKMCreateOFDPacket [11:51:51]OFDProtocolAddRootSTLVToBuf [11:51:51]FM_MakeSignedData [11:51:51]FM_MakeSignedData [11:51:51]SAM_PROTO_SignData [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 0D 01 02 [11:51:51]Write to MH i2c: E2 08 00 B1 AA 80 0D 01 02 00 00 00 00 D4 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 01 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 B1 AA 00 90 00 CF [11:51:51]RAPDU: 90 00 [11:51:51]wFMCommunicate OK [11:51:51]wFMCommunicate request_size=255 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 E8 76 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [11:51:51]Write to MH i2c: E2 02 01 B2 AA 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 E8 76 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 8C [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 B2 AA 00 90 00 D0 [11:51:52]RAPDU: 90 00 [11:51:52]wFMCommunicate OK [11:51:52]wFMCommunicate request_size=34 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 00 11 01 00 35 04 06 00 8A 85 71 5F 55 FF [11:51:52]Write to MH i2c: E2 25 00 B3 AA 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 00 11 01 00 35 04 06 00 8A 85 71 5F 55 FF 00 00 E6 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 03 00 B3 AA 00 90 00 D1 [11:51:52]RAPDU: 90 00 [11:51:52]wFMCommunicate OK [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 0D 03 02 [11:51:52]Write to MH i2c: E2 08 00 B4 AA 80 0D 03 02 00 00 00 00 D9 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 0B 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 0B 00 B4 AA 00 C5 3E 61 2F D7 DF DF ED 90 00 EF [11:51:52]RAPDU: C5 3E 61 2F D7 DF DF ED 90 00 [11:51:52]wFMCommunicate OK [11:51:52]SAM_PROTO_SignData done [11:51:52]FM_MakeSignedData done [11:51:52]CreateOFDProtocolMessage [11:51:52]wFMCommunicate request_size=4 [11:51:52]MH_SAM_APDU [11:51:52]CAPDU: 80 11 00 00 [11:51:52]Write to MH i2c: E2 08 00 B5 AA 80 11 00 00 00 00 00 00 D9 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:52]Read from MH i2c: E2 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 17 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: E2 17 00 B5 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 35 [11:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:51:52]wFMCommunicate OK [11:51:52]CreateOFDProtocolMessage done [11:51:52]OFDSenderStorePacket 69888 [11:51:52]StoreOFDPacket docnum=69888 [11:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 C1 B3 1F 01 D4 D5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 E8 76 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 00 11 01 00 35 04 06 00 8A 85 71 5F 55 FF C5 3E 61 2F D7 DF DF ED [11:51:52]CheckFolder [11:51:52]dirname=/storage/ofd_packets [11:51:52]CheckFolder done [11:51:52]ProducePacketName [11:51:52]name=ofd_packets/00069888 [11:51:52]NVStorageSaveData ofd_packets/00069888 [11:51:52]File name is /storage/ofd_packets/00069888 [11:51:52]Write 325 bytes [11:51:52]NVStorageSaveData done [11:51:52]OFDSenderStorePacket done [11:51:52]KKMCreateOFDPacket done [11:51:52]NVStorageSaveData kkm_last_timestamp [11:51:52]File name is /storage/kkm_last_timestamp [11:51:52]Write 4 bytes [11:51:52]NVStorageSaveData done [11:51:52]ExternCall_PrintAddStr [11:51:52]wPrintStart [11:51:52]Write to MH i2c: 01 00 00 B6 AA 60 [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 B6 AA 00 00 00 00 00 FF 0F 75 [11:51:52]RasterBufferAndPrint [11:51:52]line Счет N : (3)137118 [11:51:52]line ИНН: 02508201610067 [11:51:52]line Контрольно-Кассовый Чек [11:51:52]line ПРОДАЖА [11:51:52]line Товар: 5449000005489 [11:51:52]line Вода Бонаква 1л б/г [11:51:52]line 1.000 * 50.00 [11:51:52]line = 50.00 [11:51:52]line НДС 12% НСП 1% [11:51:52]line > о реализуемом товаре [11:51:52]line ИТОГО: 50.00 [11:51:52]line НСП 1% : 0.44 [11:51:52]line НДС 12% : 5.31 [11:51:52]line Наличными: 50.00 [11:51:52]line Безнал.: 0.00 [11:51:52]line Место: АЗС № 125 "Партнер Нефть" [11:51:52]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [11:51:52]line СНО: Общий режим [11:51:52]line Чек 51 01.08.2024 11:52 [11:51:52]line Смена: 433 ФФД: 1.0 [11:51:52]line ЗНМ: 0300000049 [11:51:52]line РНМ: 0000000000092638 [11:51:52]line Версия ККМ: 001 [11:51:52]line ФМ: 0000000000874949 [11:51:52]line ФД: 69888 [11:51:52]line ФПД: 152305737356799 [11:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T115208&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69888&fm=152305737356799&tin=02508201610067®Number=0000000000092638&sum=5000 [11:51:52]line 0 [11:51:52]written 0, free lines is 4095 [11:51:52]OFD Sender: Processing packet 69888 [packets to send 19, broken 18] [11:51:52]ProducePacketName [11:51:52]name=ofd_packets/00069888 [11:51:52]OFD Sender: To server: pG, [11:51:52]CommunicateWithHost lk.salyk.kg:30040 [11:51:52]ConnectInit lk.salyk.kg [11:51:52]Connected sock=10 [11:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 C1 B3 1F 01 D4 D5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 E8 76 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 00 11 01 00 35 04 06 00 8A 85 71 5F 55 FF C5 3E 61 2F D7 DF DF ED [11:51:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 5B EF 47 00 59 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 00 11 01 00 F4 03 04 00 4A 1D AB 66 B6 04 01 00 00 F4 C7 AB 4C 9E 60 C2 F3 [11:51:53]CommunicateWithHost err = 0 [11:51:53]CheckOFDResponse [11:51:53]1017 (14) - 77093643461234 [11:51:53]1041 (16) - 0000000000874949 [11:51:53]1040 (4) - 69888 [11:51:53]1012 (4) - 01.08.2024 05:29 [11:51:53]1206 (1) - 0 [11:51:53]OFD Sender: Remove packet 69888 [11:51:53]ProducePacketName [11:51:53]name=ofd_packets/00069888 [11:51:53]NVStorageDeleteData [11:51:53]Write to MH i2c: 01 00 00 DE AA 88 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 [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 DE AA 00 00 00 00 00 10 0D AC [11:51:53]RasterBufferAndPrint [11:51:53]line [11:51:53]line [11:51:53]line [11:51:53]line [11:51:53]line [11:51:53]written 0, free lines is 3351 [11:51:53]MH_Cut [11:51:53]Write to MH i2c: D1 01 00 E5 AA 01 61 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: D1 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: D1 01 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: D1 01 00 E5 AA 00 60 [11:51:53]Write to MH i2c: 01 00 00 E6 AA 90 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]OFD Sender: No OFD packet to send [11:51:53]*** Cut start [11:51:53]*** Partial cut [11:51:53]*** CUTSNS_PIN = 1 [11:51:53]*** CUTSNS_PIN = 0 [11:51:53]*** Brake cut motor [11:51:54]Read from MH i2c: 01 [11:51:54]MH_I2C_Read... [11:51:54]*** Stop cut motor [11:51:54]*** Cut end [11:51:54]Read from MH i2c: 01 07 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: 01 07 00 E6 AA 00 00 00 00 00 FF 0F A5 [11:51:54]process_action close_receipt done [11:51:54]requested_data is exist [11:51:54]produce_requested_data [11:51:54]requested_item fm.sn is exist - process it [11:51:54]wFMCommunicate request_size=4 [11:51:54]MH_SAM_APDU [11:51:54]CAPDU: 80 11 00 00 [11:51:54]Write to MH i2c: E2 08 00 E7 AA 80 11 00 00 00 00 00 00 0B [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 17 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 17 00 E7 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 67 [11:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [11:51:54]wFMCommunicate OK [11:51:54]requested_item fd.num is exist - process it [11:51:54]SAM_PROTO_GetFieldsCounters [11:51:54]wFMCommunicate request_size=4 [11:51:54]MH_SAM_APDU [11:51:54]CAPDU: 80 13 00 00 [11:51:54]Write to MH i2c: E2 08 00 E8 AA 80 13 00 00 00 00 00 00 0E [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 62 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 62 00 E8 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 00 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 00 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:54]wFMCommunicate OK [11:51:54]SAM_PROTO_GetFieldsCounters done [11:51:54]requested_item shift.num is exist - process it [11:51:54]requested_item shift.opened is exist - process it [11:51:54]req_shift_opened [11:51:54]FM_GetShiftState [11:51:54]SAM_PROTO_GetShiftState [11:51:54]wFMCommunicate request_size=4 [11:51:54]MH_SAM_APDU [11:51:54]CAPDU: 80 13 01 00 [11:51:54]Write to MH i2c: E2 08 00 E9 AA 80 13 01 00 00 00 00 00 10 [11:51:54]Write i2c OK [11:51:54]MH_I2C_Read... [11:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:54]Read from MH i2c: E2 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 0E 00 [11:51:54]MH_I2C_Read... [11:51:54]Read from MH i2c: E2 0E 00 E9 AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 49 [11:51:54]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [11:51:54]wFMCommunicate OK [11:51:54]SAM_PROTO_GetShiftState done [11:51:54]FM_GetShiftState done [11:51:54]req_shift_opened done [11:51:54]requested_item shift.open_date is exist - process it [11:51:54]req_shift_open_date [11:51:54]req_shift_open_date done [11:51:54]produce_requested_data done [11:51:54]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69888,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [11:51:54]process_action_free close_receipt [11:51:54]json_value_free [11:51:54]json_value_free done [11:51:54]process_json_proto returns [11:51:54]Send response to host [11:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69888,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [11:51:54]free response buf [11:51:54]execute_script done [11:51:54]execute_script returns [11:51:54]free content buf [11:51:54]Sock 7.Close socket [11:51:54]Sock 7.Thread stoped [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:02]accept exits with 9 [12:02:02]New connection [12:02:02]New thread 3066858852 created [12:02:02]Thread 3067002212 joined [12:02:02]Waiting for new connection... [12:02:02] Sock 9.Parse request [12:02:02]Sock 9.Check first char [12:02:02]Sock 9.First char is OK [12:02:02]request: POST /json_proto HTTP/1.0 [12:02:02]Method: POST [12:02:02]URL: /json_proto [12:02:02]Method is POST - this is cgi request [12:02:02]url: /json_proto [12:02:02]query_string will be loaded in cgi processing [12:02:02]execute_cgi json_proto POST (null) [12:02:02]execute_cgi path=json_proto method=POST [12:02:02]POST find Content-Length [12:02:02]Host: 172.17.49.132:8080 [12:02:02]Content-Length: 634 [12:02:02]Content-Type: application/json [12:02:02] [12:02:02]POST finish read [12:02:02]Found Content-Length = 634 [12:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137119", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:02]execute_script... [12:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137119", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:02]POST & json_proto [12:02:02]process_json_proto [12:02:02]json parsed OK: [12:02:02]protocol is kg_v1.0 [12:02:02]action value=close_receipt [12:02:02]process_action close_receipt [12:02:02]cmd_close_receipt [12:02:02]MH_GetDate [12:02:02]Write to MH i2c: F0 00 00 EA AA 83 [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: F0 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: F0 09 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: F0 09 00 EA AA 00 4C 79 AB 66 E7 4B C0 64 B8 [12:02:02]GetLastDocTimeStamp 1722513128 [12:02:02]current date 1722513740 [12:02:02]FM_GetShiftState [12:02:02]SAM_PROTO_GetShiftState [12:02:02]wFMCommunicate request_size=4 [12:02:02]MH_SAM_APDU [12:02:02]CAPDU: 80 13 01 00 [12:02:02]Write to MH i2c: E2 08 00 EB AA 80 13 01 00 00 00 00 00 12 [12:02:02]Write i2c OK [12:02:02]MH_I2C_Read... [12:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:02]Read from MH i2c: E2 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 0E 00 [12:02:02]MH_I2C_Read... [12:02:02]Read from MH i2c: E2 0E 00 EB AA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 4B [12:02:02]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:02:02]wFMCommunicate OK [12:02:02]SAM_PROTO_GetShiftState done [12:02:02]FM_GetShiftState done [12:02:02]opened in 1722472772 [12:02:02]opened+sec_in_day 1722559172 [12:02:02]quantity*price = 12000 [12:02:02]sum+1 = 12001 [12:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 52 01.08.2024 12:02 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69889 ФПД: 244159747704328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T120220&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69889&fm=244159747704328&tin=02508201610067®Number=0000000000092638&sum=12000 0 [12:02:03]StoreToDocumentArchive [12:02:03]shift 433 fd 69889 [12:02:03]save to /storage/0433/doc_00069889 [12:02:03]save last doc name /storage/0433/doc_00069889 to /storage/kkm_last_doc_name [12:02:03]save OK [12:02:03]Clear old archive folders... [12:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:02:03]tlvbuf is 012847B0 [12:02:03]SAM_PROTO_ClearQueue [12:02:03]wFMCommunicate request_size=4 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 09 00 00 [12:02:03]Write to MH i2c: E2 08 00 F8 AA 80 09 00 00 00 00 00 00 14 [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:03]Read from MH i2c: E2 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 [12:02:03]MH_I2C_Read... [12:02:03]Read from MH i2c: E2 03 00 F8 AA 00 90 00 16 [12:02:03]RAPDU: 90 00 [12:02:03]wFMCommunicate OK [12:02:03]SAM_PROTO_ClearQueue done [12:02:03]KKMCreateOFDPacket [12:02:03]OFDProtocolAddRootSTLVToBuf [12:02:03]FM_MakeSignedData [12:02:03]FM_MakeSignedData [12:02:03]SAM_PROTO_SignData [12:02:03]wFMCommunicate request_size=4 [12:02:03]MH_SAM_APDU [12:02:03]CAPDU: 80 0D 01 02 [12:02:03]Write to MH i2c: E2 08 00 F9 AA 80 0D 01 02 00 00 00 00 1C [12:02:03]Write i2c OK [12:02:03]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 03 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 03 00 F9 AA 00 90 00 17 [12:02:04]RAPDU: 90 00 [12:02:04]wFMCommunicate OK [12:02:04]wFMCommunicate request_size=255 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4C 79 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:02:04]Write to MH i2c: E2 02 01 FA AA 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4C 79 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 50 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]OFD Sender: No OFD packet to send [12:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 03 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 03 00 FA AA 00 90 00 18 [12:02:04]RAPDU: 90 00 [12:02:04]wFMCommunicate OK [12:02:04]wFMCommunicate request_size=30 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 0D 02 02 19 30 38 37 34 39 34 39 10 04 04 00 01 11 01 00 35 04 06 00 DE 0F DF 07 C6 08 [12:02:04]Write to MH i2c: E2 21 00 FB AA 80 0D 02 02 19 00 30 38 37 34 39 34 39 10 04 04 00 01 11 01 00 35 04 06 00 DE 0F DF 07 C6 08 00 00 D5 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 03 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 03 00 FB AA 00 90 00 19 [12:02:04]RAPDU: 90 00 [12:02:04]wFMCommunicate OK [12:02:04]wFMCommunicate request_size=4 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 0D 03 02 [12:02:04]Write to MH i2c: E2 08 00 FC AA 80 0D 03 02 00 00 00 00 21 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0B 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 0B 00 FC AA 00 7C 4E 1C 31 44 24 28 1C 90 00 E5 [12:02:04]RAPDU: 7C 4E 1C 31 44 24 28 1C 90 00 [12:02:04]wFMCommunicate OK [12:02:04]SAM_PROTO_SignData done [12:02:04]FM_MakeSignedData done [12:02:04]CreateOFDProtocolMessage [12:02:04]wFMCommunicate request_size=4 [12:02:04]MH_SAM_APDU [12:02:04]CAPDU: 80 11 00 00 [12:02:04]Write to MH i2c: E2 08 00 FD AA 80 11 00 00 00 00 00 00 21 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:04]Read from MH i2c: E2 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 17 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: E2 17 00 FD AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7D [12:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:02:04]wFMCommunicate OK [12:02:04]CreateOFDProtocolMessage done [12:02:04]OFDSenderStorePacket 69889 [12:02:04]StoreOFDPacket docnum=69889 [12:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 23 01 00 00 CC 02 1B 01 40 95 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4C 79 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 01 11 01 00 35 04 06 00 DE 0F DF 07 C6 08 7C 4E 1C 31 44 24 28 1C [12:02:04]CheckFolder [12:02:04]dirname=/storage/ofd_packets [12:02:04]CheckFolder done [12:02:04]ProducePacketName [12:02:04]name=ofd_packets/00069889 [12:02:04]NVStorageSaveData ofd_packets/00069889 [12:02:04]File name is /storage/ofd_packets/00069889 [12:02:04]Write 321 bytes [12:02:04]NVStorageSaveData done [12:02:04]OFDSenderStorePacket done [12:02:04]KKMCreateOFDPacket done [12:02:04]NVStorageSaveData kkm_last_timestamp [12:02:04]File name is /storage/kkm_last_timestamp [12:02:04]Write 4 bytes [12:02:04]NVStorageSaveData done [12:02:04]ExternCall_PrintAddStr [12:02:04]wPrintStart [12:02:04]Write to MH i2c: 01 00 00 FE AA A8 [12:02:04]Write i2c OK [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: 01 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: 01 07 00 [12:02:04]MH_I2C_Read... [12:02:04]Read from MH i2c: 01 07 00 FE AA 00 00 00 00 00 FF 0F BD [12:02:04]RasterBufferAndPrint [12:02:04]line Счет N : (3)137119 [12:02:04]line ИНН: 02508201610067 [12:02:04]line Контрольно-Кассовый Чек [12:02:04]line ПРОДАЖА [12:02:04]line Товар: 4700000160211 [12:02:04]line Вода Легенда 0,5л [12:02:04]line 3.000 * 40.00 [12:02:04]line = 120.00 [12:02:04]line НДС 12% НСП 1% [12:02:04]line > о реализуемом товаре [12:02:04]line ИТОГО: 120.00 [12:02:04]line НСП 1% : 1.06 [12:02:04]line НДС 12% : 12.74 [12:02:04]line Наличными: 120.00 [12:02:04]line Безнал.: 0.00 [12:02:04]line Место: АЗС № 125 "Партнер Нефть" [12:02:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:02:04]line СНО: Общий режим [12:02:04]line Чек 52 01.08.2024 12:02 [12:02:04]line Смена: 433 ФФД: 1.0 [12:02:04]line ЗНМ: 0300000049 [12:02:04]line РНМ: 0000000000092638 [12:02:04]line Версия ККМ: 001 [12:02:04]line ФМ: 0000000000874949 [12:02:04]line ФД: 69889 [12:02:04]line ФПД: 244159747704328 [12:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T120220&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69889&fm=244159747704328&tin=02508201610067®Number=0000000000092638&sum=12000 [12:02:04]line 0 [12:02:04]written 0, free lines is 4095 [12:02:04]OFD Sender: Processing packet 69889 [packets to send 19, broken 18] [12:02:04]ProducePacketName [12:02:04]name=ofd_packets/00069889 [12:02:04]OFD Sender: To server: pG, [12:02:04]CommunicateWithHost lk.salyk.kg:30040 [12:02:04]ConnectInit lk.salyk.kg [12:02:04]Connected sock=10 [12:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 23 01 00 00 CC 02 1B 01 40 95 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4C 79 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 01 11 01 00 35 04 06 00 DE 0F DF 07 C6 08 7C 4E 1C 31 44 24 28 1C [12:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 F6 DD 47 00 A6 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 34 39 34 39 10 04 04 00 01 11 01 00 F4 03 04 00 AE 1F AB 66 B6 04 01 00 00 0E B8 67 A4 40 F1 83 3D [12:02:05]CommunicateWithHost err = 0 [12:02:05]CheckOFDResponse [12:02:05]1017 (14) - 77093643461234 [12:02:05]1041 (16) - 0000000000874949 [12:02:05]1040 (4) - 69889 [12:02:05]1012 (4) - 01.08.2024 05:39 [12:02:05]1206 (1) - 0 [12:02:05]OFD Sender: Remove packet 69889 [12:02:05]ProducePacketName [12:02:05]name=ofd_packets/00069889 [12:02:05]NVStorageDeleteData [12:02:05]Write to MH i2c: 01 00 00 26 AB D1 [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: 01 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: 01 07 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: 01 07 00 26 AB 00 00 00 00 00 24 0D 09 [12:02:05]RasterBufferAndPrint [12:02:05]line [12:02:05]line [12:02:05]line [12:02:05]line [12:02:05]line [12:02:05]written 0, free lines is 3370 [12:02:05]MH_Cut [12:02:05]Write to MH i2c: D1 01 00 2D AB 01 AA [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: D1 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: D1 01 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: D1 01 00 2D AB 00 A9 [12:02:05]Write to MH i2c: 01 00 00 2E AB D9 [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]*** Cut start [12:02:05]*** Partial cut [12:02:05]*** CUTSNS_PIN = 1 [12:02:05]*** CUTSNS_PIN = 0 [12:02:06]*** Brake cut motor [12:02:06]Read from MH i2c: 01 [12:02:06]MH_I2C_Read... [12:02:06]*** Stop cut motor [12:02:06]*** Cut end [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 2E AB 00 00 00 00 00 FF 0F EE [12:02:06]process_action close_receipt done [12:02:06]requested_data is exist [12:02:06]produce_requested_data [12:02:06]requested_item fm.sn is exist - process it [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 2F AB 80 11 00 00 00 00 00 00 54 [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 2F AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B0 [12:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:02:06]wFMCommunicate OK [12:02:06]requested_item fd.num is exist - process it [12:02:06]SAM_PROTO_GetFieldsCounters [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 13 00 00 [12:02:06]Write to MH i2c: E2 08 00 30 AB 80 13 00 00 00 00 00 00 57 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 62 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 62 00 30 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 01 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 01 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_GetFieldsCounters done [12:02:06]requested_item shift.num is exist - process it [12:02:06]requested_item shift.opened is exist - process it [12:02:06]req_shift_opened [12:02:06]FM_GetShiftState [12:02:06]SAM_PROTO_GetShiftState [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 13 01 00 [12:02:06]Write to MH i2c: E2 08 00 31 AB 80 13 01 00 00 00 00 00 59 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0E 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 0E 00 31 AB 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 92 [12:02:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_GetShiftState done [12:02:06]FM_GetShiftState done [12:02:06]req_shift_opened done [12:02:06]requested_item shift.open_date is exist - process it [12:02:06]req_shift_open_date [12:02:06]req_shift_open_date done [12:02:06]produce_requested_data done [12:02:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69889,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:02:06]process_action_free close_receipt [12:02:06]json_value_free [12:02:06]json_value_free done [12:02:06]process_json_proto returns [12:02:06]Send response to host [12:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69889,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:02:06]free response buf [12:02:06]execute_script done [12:02:06]execute_script returns [12:02:06]free content buf [12:02:06]Sock 9.Close socket [12:02:06]Sock 9.Thread stoped [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:07:57]accept exits with 7 [12:07:57]New connection [12:07:57]New thread 3067002212 created [12:07:57]Thread 3066858852 joined [12:07:57]Waiting for new connection... [12:07:57] Sock 7.Parse request [12:07:57]Sock 7.Check first char [12:07:57]Sock 7.First char is OK [12:07:57]request: POST /json_proto HTTP/1.0 [12:07:57]Method: POST [12:07:57]URL: /json_proto [12:07:57]Method is POST - this is cgi request [12:07:57]url: /json_proto [12:07:57]query_string will be loaded in cgi processing [12:07:57]execute_cgi json_proto POST (null) [12:07:57]execute_cgi path=json_proto method=POST [12:07:57]POST find Content-Length [12:07:57]Host: 172.17.49.132:8080 [12:07:57]Content-Length: 621 [12:07:57]Content-Type: application/json [12:07:57] [12:07:57]POST finish read [12:07:57]Found Content-Length = 621 [12:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137120", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:57]execute_script... [12:07:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137120", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:57]POST & json_proto [12:07:57]process_json_proto [12:07:57]json parsed OK: [12:07:57]protocol is kg_v1.0 [12:07:57]action value=close_receipt [12:07:57]process_action close_receipt [12:07:57]cmd_close_receipt [12:07:57]MH_GetDate [12:07:57]Write to MH i2c: F0 00 00 32 AB CC [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 09 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 09 00 32 AB 00 AF 7A AB 66 E7 4B C0 64 65 [12:07:57]GetLastDocTimeStamp 1722513740 [12:07:57]current date 1722514095 [12:07:57]FM_GetShiftState [12:07:57]SAM_PROTO_GetShiftState [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 13 01 00 [12:07:57]Write to MH i2c: E2 08 00 33 AB 80 13 01 00 00 00 00 00 5B [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 33 AB 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 94 [12:07:57]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_GetShiftState done [12:07:57]FM_GetShiftState done [12:07:57]opened in 1722472772 [12:07:57]opened+sec_in_day 1722559172 [12:07:57]quantity*price = 14000 [12:07:57]sum+1 = 14001 [12:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 53 01.08.2024 12:08 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69890 ФПД: 145648246208528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T120815&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69890&fm=145648246208528&tin=02508201610067®Number=0000000000092638&sum=14000 0 [12:07:58]StoreToDocumentArchive [12:07:58]shift 433 fd 69890 [12:07:58]save to /storage/0433/doc_00069890 [12:07:58]save last doc name /storage/0433/doc_00069890 to /storage/kkm_last_doc_name [12:07:58]save OK [12:07:58]Clear old archive folders... [12:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:07:58]tlvbuf is 014A0610 [12:07:58]SAM_PROTO_ClearQueue [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 09 00 00 [12:07:58]Write to MH i2c: E2 08 00 40 AB 80 09 00 00 00 00 00 00 5D [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 40 AB 00 90 00 5F [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_ClearQueue done [12:07:58]KKMCreateOFDPacket [12:07:58]OFDProtocolAddRootSTLVToBuf [12:07:58]FM_MakeSignedData [12:07:58]FM_MakeSignedData [12:07:59]SAM_PROTO_SignData [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 01 02 [12:07:59]Write to MH i2c: E2 08 00 41 AB 80 0D 01 02 00 00 00 00 65 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 41 AB 00 90 00 60 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=255 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AF 7A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [12:07:59]Write to MH i2c: E2 02 01 42 AB 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AF 7A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 7E [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 42 AB 00 90 00 61 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=32 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 02 11 01 00 35 04 06 00 84 77 5F FA 38 10 [12:07:59]Write to MH i2c: E2 23 00 43 AB 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 02 11 01 00 35 04 06 00 84 77 5F FA 38 10 00 00 7E [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 43 AB 00 90 00 62 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 03 02 [12:07:59]Write to MH i2c: E2 08 00 44 AB 80 0D 03 02 00 00 00 00 6A [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 44 AB 00 0D 55 D3 A5 79 F4 98 6C 90 00 B6 [12:07:59]RAPDU: 0D 55 D3 A5 79 F4 98 6C 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_SignData done [12:07:59]FM_MakeSignedData done [12:07:59]CreateOFDProtocolMessage [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 11 00 00 [12:07:59]Write to MH i2c: E2 08 00 45 AB 80 11 00 00 00 00 00 00 6A [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 45 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C6 [12:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:07:59]wFMCommunicate OK [12:07:59]CreateOFDProtocolMessage done [12:07:59]OFDSenderStorePacket 69890 [12:07:59]StoreOFDPacket docnum=69890 [12:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 AA B5 1D 01 70 05 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AF 7A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 02 11 01 00 35 04 06 00 84 77 5F FA 38 10 0D 55 D3 A5 79 F4 98 6C [12:07:59]CheckFolder [12:07:59]dirname=/storage/ofd_packets [12:07:59]CheckFolder done [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00069890 [12:07:59]NVStorageSaveData ofd_packets/00069890 [12:07:59]File name is /storage/ofd_packets/00069890 [12:07:59]Write 323 bytes [12:07:59]NVStorageSaveData done [12:07:59]OFDSenderStorePacket done [12:07:59]KKMCreateOFDPacket done [12:07:59]NVStorageSaveData kkm_last_timestamp [12:07:59]File name is /storage/kkm_last_timestamp [12:07:59]Write 4 bytes [12:07:59]NVStorageSaveData done [12:07:59]ExternCall_PrintAddStr [12:07:59]wPrintStart [12:07:59]Write to MH i2c: 01 00 00 46 AB F1 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 46 AB 00 00 00 00 00 FF 0F 06 [12:07:59]RasterBufferAndPrint [12:07:59]line Счет N : (3)137120 [12:07:59]line ИНН: 02508201610067 [12:07:59]line Контрольно-Кассовый Чек [12:07:59]line ПРОДАЖА [12:07:59]line Товар: 48743570 [12:07:59]line Сигареты Winston XStyle Blue [12:07:59]line 1.000 * 140.00 [12:07:59]line = 140.00 [12:07:59]line НДС 12% НСП 1% [12:07:59]line > о реализуемом товаре [12:07:59]line ИТОГО: 140.00 [12:07:59]line НСП 1% : 1.24 [12:07:59]line НДС 12% : 14.87 [12:07:59]line Наличными: 140.00 [12:07:59]line Безнал.: 0.00 [12:07:59]line Место: АЗС № 125 "Партнер Нефть" [12:07:59]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:07:59]line СНО: Общий режим [12:07:59]line Чек 53 01.08.2024 12:08 [12:07:59]line Смена: 433 ФФД: 1.0 [12:07:59]line ЗНМ: 0300000049 [12:07:59]line РНМ: 0000000000092638 [12:07:59]line Версия ККМ: 001 [12:07:59]line ФМ: 0000000000874949 [12:07:59]line ФД: 69890 [12:07:59]line ФПД: 145648246208528 [12:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T120815&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69890&fm=145648246208528&tin=02508201610067®Number=0000000000092638&sum=14000 [12:07:59]line 0 [12:07:59]written 0, free lines is 4095 [12:07:59]OFD Sender: Processing packet 69890 [packets to send 19, broken 18] [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00069890 [12:07:59]OFD Sender: To server: pG, [12:07:59]CommunicateWithHost lk.salyk.kg:30040 [12:07:59]ConnectInit lk.salyk.kg [12:07:59]Connected sock=10 [12:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 AA B5 1D 01 70 05 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AF 7A AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 02 11 01 00 35 04 06 00 84 77 5F FA 38 10 0D 55 D3 A5 79 F4 98 6C [12:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 51 9B 47 00 75 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 02 11 01 00 F4 03 04 00 11 21 AB 66 B6 04 01 00 00 8E 2D CD 76 97 02 94 21 [12:08:00]CommunicateWithHost err = 0 [12:08:00]CheckOFDResponse [12:08:00]1017 (14) - 77093643461234 [12:08:00]1041 (16) - 0000000000874949 [12:08:00]1040 (4) - 69890 [12:08:00]1012 (4) - 01.08.2024 05:45 [12:08:00]1206 (1) - 0 [12:08:00]OFD Sender: Remove packet 69890 [12:08:00]ProducePacketName [12:08:00]name=ofd_packets/00069890 [12:08:00]NVStorageDeleteData [12:08:00]Write to MH i2c: 01 00 00 6E AB 19 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 6E AB 00 00 00 00 00 0F 0D 3C [12:08:00]RasterBufferAndPrint [12:08:00]line [12:08:00]line [12:08:00]line [12:08:00]line [12:08:00]line [12:08:00]written 0, free lines is 3353 [12:08:00]MH_Cut [12:08:00]Write to MH i2c: D1 01 00 75 AB 01 F2 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: D1 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: D1 01 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: D1 01 00 75 AB 00 F1 [12:08:00]Write to MH i2c: 01 00 00 76 AB 21 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]OFD Sender: No OFD packet to send [12:08:00]*** Cut start [12:08:00]*** Partial cut [12:08:00]*** CUTSNS_PIN = 1 [12:08:00]*** CUTSNS_PIN = 0 [12:08:01]*** Brake cut motor [12:08:01]Read from MH i2c: 01 [12:08:01]MH_I2C_Read... [12:08:01]*** Stop cut motor [12:08:01]*** Cut end [12:08:01]Read from MH i2c: 01 07 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: 01 07 00 76 AB 00 00 00 00 00 FF 0F 36 [12:08:01]process_action close_receipt done [12:08:01]requested_data is exist [12:08:01]produce_requested_data [12:08:01]requested_item fm.sn is exist - process it [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 11 00 00 [12:08:01]Write to MH i2c: E2 08 00 77 AB 80 11 00 00 00 00 00 00 9C [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 17 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 17 00 77 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F8 [12:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:08:01]wFMCommunicate OK [12:08:01]requested_item fd.num is exist - process it [12:08:01]SAM_PROTO_GetFieldsCounters [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 13 00 00 [12:08:01]Write to MH i2c: E2 08 00 78 AB 80 13 00 00 00 00 00 00 9F [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 62 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 62 00 78 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 02 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [12:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 02 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:01]wFMCommunicate OK [12:08:01]SAM_PROTO_GetFieldsCounters done [12:08:01]requested_item shift.num is exist - process it [12:08:01]requested_item shift.opened is exist - process it [12:08:01]req_shift_opened [12:08:01]FM_GetShiftState [12:08:01]SAM_PROTO_GetShiftState [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 13 01 00 [12:08:01]Write to MH i2c: E2 08 00 79 AB 80 13 01 00 00 00 00 00 A1 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 0E 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 0E 00 79 AB 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 DA [12:08:01]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:08:01]wFMCommunicate OK [12:08:01]SAM_PROTO_GetShiftState done [12:08:01]FM_GetShiftState done [12:08:01]req_shift_opened done [12:08:01]requested_item shift.open_date is exist - process it [12:08:01]req_shift_open_date [12:08:01]req_shift_open_date done [12:08:01]produce_requested_data done [12:08:01]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69890,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:08:01]process_action_free close_receipt [12:08:01]json_value_free [12:08:01]json_value_free done [12:08:01]process_json_proto returns [12:08:01]Send response to host [12:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69890,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:08:01]free response buf [12:08:01]execute_script done [12:08:01]execute_script returns [12:08:01]free content buf [12:08:01]Sock 7.Close socket [12:08:01]Sock 7.Thread stoped [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:21]accept exits with 9 [12:08:21]New connection [12:08:21]New thread 3066858852 created [12:08:21]Thread 3067002212 joined [12:08:21]Waiting for new connection... [12:08:21] Sock 9.Parse request [12:08:21]Sock 9.Check first char [12:08:21]Sock 9.First char is OK [12:08:21]request: POST /json_proto HTTP/1.0 [12:08:21]Method: POST [12:08:21]URL: /json_proto [12:08:21]Method is POST - this is cgi request [12:08:21]url: /json_proto [12:08:21]query_string will be loaded in cgi processing [12:08:21]execute_cgi json_proto POST (null) [12:08:21]execute_cgi path=json_proto method=POST [12:08:21]POST find Content-Length [12:08:21]Host: 172.17.49.132:8080 [12:08:21]Content-Length: 1168 [12:08:21]Content-Type: application/json [12:08:21] [12:08:21]POST finish read [12:08:21]Found Content-Length = 1168 [12:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874707\u000A01.08.2024 11:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2712.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116950\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:21]execute_script... [12:08:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874707\u000A01.08.2024 11:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2712.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116950\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:21]POST & json_proto [12:08:21]process_json_proto [12:08:21]json parsed OK: [12:08:21]protocol is kg_v1.0 [12:08:21]action value=print_text [12:08:21]process_action print_text [12:08:21]cmd_print_text [12:08:21]ExternCall_PrintAddStr [12:08:21]wPrintStart [12:08:21]Write to MH i2c: 01 00 00 7A AB 25 [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: 01 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: 01 07 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: 01 07 00 7A AB 00 00 00 00 00 FF 0F 3A [12:08:21]RasterBufferAndPrint [12:08:21]line *****ТОВАРНЫЙ ЧЕК***** [12:08:21]line АЗС 125 [12:08:21]line Партнер нефть [12:08:21]line 02508201610067 [12:08:21]line Кассир : Мадаминова Б. [12:08:21]line Счет N : (1)874707 [12:08:21]line 01.08.2024 11:29 [12:08:21]line ПРОДАЖА [12:08:21]line ТРК (МРК, ГНК): 32 [12:08:21]line Вид ГСМ : 2710124130 [12:08:21]line Аи-92-К-5 [12:08:21]line 40.000 x 67.80 [12:08:21]line ИТОГ: 2712.00 [12:08:21]line Тип оплаты: Талоны: ТК ГПНА Online [12:08:21]line 30116950 [12:08:21]line ______________________ [12:08:21]line (подпись) [12:08:21]written 0, free lines is 4095 [12:08:22]Write to MH i2c: 01 00 00 8E AB 39 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: 01 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: 01 07 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: 01 07 00 8E AB 00 00 00 00 00 10 0E 5E [12:08:22]RasterBufferAndPrint [12:08:22]line [12:08:22]line [12:08:22]line [12:08:22]line [12:08:22]line [12:08:22]written 0, free lines is 3601 [12:08:22]MH_Cut [12:08:22]Write to MH i2c: D1 01 00 95 AB 01 12 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: D1 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: D1 01 00 [12:08:22]MH_I2C_Read... [12:08:22]Read from MH i2c: D1 01 00 95 AB 00 11 [12:08:22]Write to MH i2c: 01 00 00 96 AB 41 [12:08:22]Write i2c OK [12:08:22]MH_I2C_Read... [12:08:22]*** Cut start [12:08:22]*** Partial cut [12:08:22]*** CUTSNS_PIN = 1 [12:08:22]*** CUTSNS_PIN = 0 [12:08:22]*** Brake cut motor [12:08:23]Read from MH i2c: 01 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: 01 07 00 [12:08:23]MH_I2C_Read... [12:08:23]*** Stop cut motor [12:08:23]*** Cut end [12:08:23]Read from MH i2c: 01 07 00 96 AB 00 00 00 00 00 FF 0F 56 [12:08:23]process_action print_text done [12:08:23]requested_data is exist [12:08:23]produce_requested_data [12:08:23]requested_item fm.sn is exist - process it [12:08:23]wFMCommunicate request_size=4 [12:08:23]MH_SAM_APDU [12:08:23]CAPDU: 80 11 00 00 [12:08:23]Write to MH i2c: E2 08 00 97 AB 80 11 00 00 00 00 00 00 BC [12:08:23]Write i2c OK [12:08:23]MH_I2C_Read... [12:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:23]Read from MH i2c: E2 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 17 00 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 17 00 97 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 18 [12:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:08:23]wFMCommunicate OK [12:08:23]requested_item fd.num is exist - process it [12:08:23]SAM_PROTO_GetFieldsCounters [12:08:23]wFMCommunicate request_size=4 [12:08:23]MH_SAM_APDU [12:08:23]CAPDU: 80 13 00 00 [12:08:23]Write to MH i2c: E2 08 00 98 AB 80 13 00 00 00 00 00 00 BF [12:08:23]Write i2c OK [12:08:23]MH_I2C_Read... [12:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:23]Read from MH i2c: E2 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 62 00 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 62 00 98 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 02 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 02 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:23]wFMCommunicate OK [12:08:23]SAM_PROTO_GetFieldsCounters done [12:08:23]requested_item shift.num is exist - process it [12:08:23]requested_item shift.opened is exist - process it [12:08:23]req_shift_opened [12:08:23]FM_GetShiftState [12:08:23]SAM_PROTO_GetShiftState [12:08:23]wFMCommunicate request_size=4 [12:08:23]MH_SAM_APDU [12:08:23]CAPDU: 80 13 01 00 [12:08:23]Write to MH i2c: E2 08 00 99 AB 80 13 01 00 00 00 00 00 C1 [12:08:23]Write i2c OK [12:08:23]MH_I2C_Read... [12:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:23]Read from MH i2c: E2 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 0E 00 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 0E 00 99 AB 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 FA [12:08:23]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:08:23]wFMCommunicate OK [12:08:23]SAM_PROTO_GetShiftState done [12:08:23]FM_GetShiftState done [12:08:23]req_shift_opened done [12:08:23]requested_item shift.open_date is exist - process it [12:08:23]req_shift_open_date [12:08:23]req_shift_open_date done [12:08:23]produce_requested_data done [12:08:23]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69890,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:08:23]process_action_free print_text [12:08:23]json_value_free [12:08:23]json_value_free done [12:08:23]process_json_proto returns [12:08:23]Send response to host [12:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69890,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:08:23]free response buf [12:08:23]execute_script done [12:08:23]execute_script returns [12:08:23]free content buf [12:08:23]Sock 9.Close socket [12:08:23]Sock 9.Thread stoped [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:34]accept exits with 7 [12:16:34]New connection [12:16:34]New thread 3067002212 created [12:16:34]Thread 3066858852 joined [12:16:34]Waiting for new connection... [12:16:34] Sock 7.Parse request [12:16:34]Sock 7.Check first char [12:16:34]Sock 7.First char is OK [12:16:34]request: POST /json_proto HTTP/1.0 [12:16:34]Method: POST [12:16:34]URL: /json_proto [12:16:34]Method is POST - this is cgi request [12:16:34]url: /json_proto [12:16:34]query_string will be loaded in cgi processing [12:16:34]execute_cgi json_proto POST (null) [12:16:34]execute_cgi path=json_proto method=POST [12:16:34]POST find Content-Length [12:16:34]Host: 172.17.49.132:8080 [12:16:34]Content-Length: 714 [12:16:34]Content-Type: application/json [12:16:34] [12:16:34]POST finish read [12:16:34]Found Content-Length = 714 [12:16:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137121", "tax_sys" : 0, "items" : [ { "code": "4700041420169", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST \u0411\u0415\u0417 \u0417\u0410\u041F\u0410\u0425\u0410 72 \u0448\u0442", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:34]execute_script... [12:16: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 : (3)137121", "tax_sys" : 0, "items" : [ { "code": "4700041420169", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST \u0411\u0415\u0417 \u0417\u0410\u041F\u0410\u0425\u0410 72 \u0448\u0442", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:34]POST & json_proto [12:16:34]process_json_proto [12:16:34]json parsed OK: [12:16:34]protocol is kg_v1.0 [12:16:34]action value=close_receipt [12:16:34]process_action close_receipt [12:16:34]cmd_close_receipt [12:16:34]MH_GetDate [12:16:34]Write to MH i2c: F0 00 00 9A AB 34 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: F0 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: F0 09 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: F0 09 00 9A AB 00 B4 7C AB 66 E7 4B C0 64 D4 [12:16:34]GetLastDocTimeStamp 1722514095 [12:16:34]current date 1722514612 [12:16:34]FM_GetShiftState [12:16:34]SAM_PROTO_GetShiftState [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 13 01 00 [12:16:34]Write to MH i2c: E2 08 00 9B AB 80 13 01 00 00 00 00 00 C3 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 9B AB 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 FC [12:16:34]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetShiftState done [12:16:34]FM_GetShiftState done [12:16:34]opened in 1722472772 [12:16:34]opened+sec_in_day 1722559172 [12:16:34]quantity*price = 11300 [12:16:34]sum+1 = 11301 [12:16:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 54 01.08.2024 12:16 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69891 ФПД: 125843260602674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T121652&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69891&fm=125843260602674&tin=02508201610067®Number=0000000000092638&sum=11300 0 [12:16:35]StoreToDocumentArchive [12:16:35]shift 433 fd 69891 [12:16:35]save to /storage/0433/doc_00069891 [12:16:35]save last doc name /storage/0433/doc_00069891 to /storage/kkm_last_doc_name [12:16:35]save OK [12:16:35]Clear old archive folders... [12:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=302 [12:16:35]tlvbuf is 0151EDC0 [12:16:35]SAM_PROTO_ClearQueue [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 09 00 00 [12:16:35]Write to MH i2c: E2 08 00 A8 AB 80 09 00 00 00 00 00 00 C5 [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:35]Read from MH i2c: E2 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 [12:16:35]MH_I2C_Read... [12:16:35]Read from MH i2c: E2 03 00 A8 AB 00 90 00 C7 [12:16:35]RAPDU: 90 00 [12:16:35]wFMCommunicate OK [12:16:35]SAM_PROTO_ClearQueue done [12:16:35]KKMCreateOFDPacket [12:16:35]OFDProtocolAddRootSTLVToBuf [12:16:35]FM_MakeSignedData [12:16:35]FM_MakeSignedData [12:16:35]SAM_PROTO_SignData [12:16:35]wFMCommunicate request_size=4 [12:16:35]MH_SAM_APDU [12:16:35]CAPDU: 80 0D 01 02 [12:16:35]Write to MH i2c: E2 08 00 A9 AB 80 0D 01 02 00 00 00 00 CD [12:16:35]Write i2c OK [12:16:35]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 A9 AB 00 90 00 C8 [12:16:36]RAPDU: 90 00 [12:16:36]wFMCommunicate OK [12:16:36]wFMCommunicate request_size=255 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B4 7C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 [12:16:36]Write to MH i2c: E2 02 01 AA AB 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B4 7C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 00 00 36 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]OFD Sender: No OFD packet to send [12:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 AA AB 00 90 00 C9 [12:16:36]RAPDU: 90 00 [12:16:36]wFMCommunicate OK [12:16:36]wFMCommunicate request_size=61 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 03 11 01 00 35 04 06 00 72 74 2A D8 79 32 [12:16:36]Write to MH i2c: E2 40 00 AB AB 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 03 11 01 00 35 04 06 00 72 74 2A D8 79 32 00 00 B9 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 03 00 AB AB 00 90 00 CA [12:16:36]RAPDU: 90 00 [12:16:36]wFMCommunicate OK [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 0D 03 02 [12:16:36]Write to MH i2c: E2 08 00 AC AB 80 0D 03 02 00 00 00 00 D2 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 0B 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 0B 00 AC AB 00 6F 28 36 E0 8B 97 E0 DE 90 00 60 [12:16:36]RAPDU: 6F 28 36 E0 8B 97 E0 DE 90 00 [12:16:36]wFMCommunicate OK [12:16:36]SAM_PROTO_SignData done [12:16:36]FM_MakeSignedData done [12:16:36]CreateOFDProtocolMessage [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 11 00 00 [12:16:36]Write to MH i2c: E2 08 00 AD AB 80 11 00 00 00 00 00 00 D2 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 17 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 17 00 AD AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 2E [12:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:16:36]wFMCommunicate OK [12:16:36]CreateOFDProtocolMessage done [12:16:36]OFDSenderStorePacket 69891 [12:16:36]StoreOFDPacket docnum=69891 [12:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 42 01 00 00 9D 76 3A 01 30 3E 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B4 7C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 03 11 01 00 35 04 06 00 72 74 2A D8 79 32 6F 28 36 E0 8B 97 E0 DE [12:16:36]CheckFolder [12:16:36]dirname=/storage/ofd_packets [12:16:36]CheckFolder done [12:16:36]ProducePacketName [12:16:36]name=ofd_packets/00069891 [12:16:36]NVStorageSaveData ofd_packets/00069891 [12:16:36]File name is /storage/ofd_packets/00069891 [12:16:36]Write 352 bytes [12:16:36]NVStorageSaveData done [12:16:36]OFDSenderStorePacket done [12:16:36]KKMCreateOFDPacket done [12:16:36]NVStorageSaveData kkm_last_timestamp [12:16:36]File name is /storage/kkm_last_timestamp [12:16:36]Write 4 bytes [12:16:36]NVStorageSaveData done [12:16:36]ExternCall_PrintAddStr [12:16:36]wPrintStart [12:16:36]Write to MH i2c: 01 00 00 AE AB 59 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 07 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: 01 07 00 AE AB 00 00 00 00 00 FF 0F 6E [12:16:36]RasterBufferAndPrint [12:16:36]line Счет N : (3)137121 [12:16:36]line ИНН: 02508201610067 [12:16:36]line Контрольно-Кассовый Чек [12:16:36]line ПРОДАЖА [12:16:36]line Товар: 4700041420169 [12:16:36]line Салфетки влажн BEST БЕЗ ЗАПАХА 72 шт [12:16:36]line 1.000 * 113.00 [12:16:36]line = 113.00 [12:16:36]line НДС 12% НСП 1% [12:16:36]line > о реализуемом товаре [12:16:36]line ИТОГО: 113.00 [12:16:36]line НСП 1% : 1.00 [12:16:36]line НДС 12% : 12.00 [12:16:36]line Наличными: 113.00 [12:16:36]line Безнал.: 0.00 [12:16:36]line Место: АЗС № 125 "Партнер Нефть" [12:16:36]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:16:36]line СНО: Общий режим [12:16:36]line Чек 54 01.08.2024 12:16 [12:16:36]line Смена: 433 ФФД: 1.0 [12:16:36]line ЗНМ: 0300000049 [12:16:36]line РНМ: 0000000000092638 [12:16:36]line Версия ККМ: 001 [12:16:36]line ФМ: 0000000000874949 [12:16:36]line ФД: 69891 [12:16:36]line ФПД: 125843260602674 [12:16:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T121652&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69891&fm=125843260602674&tin=02508201610067®Number=0000000000092638&sum=11300 [12:16:36]line 0 [12:16:36]OFD Sender: Processing packet 69891 [packets to send 19, broken 18] [12:16:36]ProducePacketName [12:16:36]name=ofd_packets/00069891 [12:16:36]OFD Sender: To server: pG, [12:16:36]CommunicateWithHost lk.salyk.kg:30040 [12:16:36]ConnectInit lk.salyk.kg [12:16:36]written 0, free lines is 4095 [12:16:36]Connected sock=10 [12:16:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 42 01 00 00 9D 76 3A 01 30 3E 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B4 7C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 03 11 01 00 35 04 06 00 72 74 2A D8 79 32 6F 28 36 E0 8B 97 E0 DE [12:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C1 AB 47 00 81 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 03 11 01 00 F4 03 04 00 16 23 AB 66 B6 04 01 00 00 91 FD C7 06 E4 A7 33 FB [12:16:37]CommunicateWithHost err = 0 [12:16:37]CheckOFDResponse [12:16:37]1017 (14) - 77093643461234 [12:16:37]1041 (16) - 0000000000874949 [12:16:37]1040 (4) - 69891 [12:16:37]1012 (4) - 01.08.2024 05:54 [12:16:37]1206 (1) - 0 [12:16:37]OFD Sender: Remove packet 69891 [12:16:37]ProducePacketName [12:16:37]name=ofd_packets/00069891 [12:16:37]NVStorageDeleteData [12:16:37]Write to MH i2c: 01 00 00 D7 AB 82 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 07 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: 01 07 00 D7 AB 00 00 00 00 00 FE 0C 93 [12:16:37]RasterBufferAndPrint [12:16:37]line [12:16:37]line [12:16:37]line [12:16:37]line [12:16:37]line [12:16:37]written 0, free lines is 3332 [12:16:37]MH_Cut [12:16:37]Write to MH i2c: D1 01 00 DE AB 01 5B [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: D1 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: D1 01 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: D1 01 00 DE AB 00 5A [12:16:37]Write to MH i2c: 01 00 00 DF AB 8A [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]OFD Sender: No OFD packet to send [12:16:37]*** Cut start [12:16:37]*** Partial cut [12:16:37]*** CUTSNS_PIN = 1 [12:16:37]*** CUTSNS_PIN = 0 [12:16:38]*** Brake cut motor [12:16:38]Read from MH i2c: 01 [12:16:38]MH_I2C_Read... [12:16:38]*** Stop cut motor [12:16:38]*** Cut end [12:16:38]Read from MH i2c: 01 07 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 DF AB 00 00 00 00 00 FF 0F 9F [12:16:38]process_action close_receipt done [12:16:38]requested_data is exist [12:16:38]produce_requested_data [12:16:38]requested_item fm.sn is exist - process it [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 11 00 00 [12:16:38]Write to MH i2c: E2 08 00 E0 AB 80 11 00 00 00 00 00 00 05 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:38]Read from MH i2c: E2 17 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 E0 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 61 [12:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:16:38]wFMCommunicate OK [12:16:38]requested_item fd.num is exist - process it [12:16:38]SAM_PROTO_GetFieldsCounters [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 00 00 [12:16:38]Write to MH i2c: E2 08 00 E1 AB 80 13 00 00 00 00 00 00 08 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 62 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 62 00 E1 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 03 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:16:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 03 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetFieldsCounters done [12:16:38]requested_item shift.num is exist - process it [12:16:38]requested_item shift.opened is exist - process it [12:16:38]req_shift_opened [12:16:38]FM_GetShiftState [12:16:38]SAM_PROTO_GetShiftState [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 01 00 [12:16:38]Write to MH i2c: E2 08 00 E2 AB 80 13 01 00 00 00 00 00 0A [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0E 00 E2 AB 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 43 [12:16:38]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetShiftState done [12:16:38]FM_GetShiftState done [12:16:38]req_shift_opened done [12:16:38]requested_item shift.open_date is exist - process it [12:16:38]req_shift_open_date [12:16:38]req_shift_open_date done [12:16:38]produce_requested_data done [12:16:38]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69891,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:16:38]process_action_free close_receipt [12:16:38]json_value_free [12:16:38]json_value_free done [12:16:38]process_json_proto returns [12:16:38]Send response to host [12:16:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69891,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:16:38]free response buf [12:16:38]execute_script done [12:16:38]execute_script returns [12:16:38]free content buf [12:16:38]Sock 7.Close socket [12:16:38]Sock 7.Thread stoped [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:49]accept exits with 9 [12:17:49]New connection [12:17:49]New thread 3066858852 created [12:17:49]Thread 3067002212 joined [12:17:49]Waiting for new connection... [12:17:49] Sock 9.Parse request [12:17:49]Sock 9.Check first char [12:17:49]Sock 9.First char is OK [12:17:49]request: POST /json_proto HTTP/1.0 [12:17:49]Method: POST [12:17:49]URL: /json_proto [12:17:49]Method is POST - this is cgi request [12:17:49]url: /json_proto [12:17:49]query_string will be loaded in cgi processing [12:17:49]execute_cgi json_proto POST (null) [12:17:49]execute_cgi path=json_proto method=POST [12:17:49]POST find Content-Length [12:17:49]Host: 172.17.49.132:8080 [12:17:49]Content-Length: 1251 [12:17:49]Content-Type: application/json [12:17:49] [12:17:49]POST finish read [12:17:49]Found Content-Length = 1251 [12:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874717\u000A01.08.2024 11:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918700;701;699;702;698;704;703;697;696;695\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:49]execute_script... [12:17:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874717\u000A01.08.2024 11:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918700;701;699;702;698;704;703;697;696;695\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:49]POST & json_proto [12:17:49]process_json_proto [12:17:49]json parsed OK: [12:17:49]protocol is kg_v1.0 [12:17:49]action value=print_text [12:17:49]process_action print_text [12:17:49]cmd_print_text [12:17:49]ExternCall_PrintAddStr [12:17:49]wPrintStart [12:17:49]Write to MH i2c: 01 00 00 E3 AB 8E [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 E3 AB 00 00 00 00 00 FF 0F A3 [12:17:49]RasterBufferAndPrint [12:17:49]line *****ТОВАРНЫЙ ЧЕК***** [12:17:49]line АЗС 125 [12:17:49]line Партнер нефть [12:17:49]line 02508201610067 [12:17:49]line Кассир : Мадаминова Б. [12:17:49]line Счет N : (1)874717 [12:17:49]line 01.08.2024 11:39 [12:17:49]line ПРОДАЖА [12:17:49]line ТРК (МРК, ГНК): 62 [12:17:49]line Вид ГСМ : 2710124130 [12:17:49]line Аи-92-К-5 [12:17:49]line 100.000 x 67.80 [12:17:49]line ИТОГ: 6780.00 [12:17:49]line Тип оплаты: Талоны: Топливные Талоны [12:17:49]line 3918700;701;699;702;698;704;703;697;696;695 [12:17:49]line ______________________ [12:17:50]line (подпись) [12:17:50]written 0, free lines is 4095 [12:17:50]Write to MH i2c: 01 00 00 F8 AB A3 [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: 01 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: 01 07 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: 01 07 00 F8 AB 00 00 00 00 00 08 0E C0 [12:17:50]RasterBufferAndPrint [12:17:50]line [12:17:50]line [12:17:50]line [12:17:50]line [12:17:50]line [12:17:50]written 0, free lines is 3595 [12:17:50]MH_Cut [12:17:50]Write to MH i2c: D1 01 00 FF AB 01 7C [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: D1 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: D1 01 00 [12:17:50]MH_I2C_Read... [12:17:50]Read from MH i2c: D1 01 00 FF AB 00 7B [12:17:50]Write to MH i2c: 01 00 00 00 AC AC [12:17:50]Write i2c OK [12:17:50]MH_I2C_Read... [12:17:50]*** Cut start [12:17:50]*** Partial cut [12:17:50]*** CUTSNS_PIN = 1 [12:17:50]*** CUTSNS_PIN = 0 [12:17:51]*** Brake cut motor [12:17:51]Read from MH i2c: 01 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 07 00 [12:17:51]MH_I2C_Read... [12:17:51]*** Stop cut motor [12:17:51]*** Cut end [12:17:51]Read from MH i2c: 01 07 00 00 AC 00 00 00 00 00 FF 0F C1 [12:17:51]process_action print_text done [12:17:51]requested_data is exist [12:17:51]produce_requested_data [12:17:51]requested_item fm.sn is exist - process it [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 11 00 00 [12:17:51]Write to MH i2c: E2 08 00 01 AC 80 11 00 00 00 00 00 00 27 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 01 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 83 [12:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:17:51]wFMCommunicate OK [12:17:51]requested_item fd.num is exist - process it [12:17:51]SAM_PROTO_GetFieldsCounters [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 00 00 [12:17:51]Write to MH i2c: E2 08 00 02 AC 80 13 00 00 00 00 00 00 2A [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 02 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 03 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 03 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetFieldsCounters done [12:17:51]requested_item shift.num is exist - process it [12:17:51]requested_item shift.opened is exist - process it [12:17:51]req_shift_opened [12:17:51]FM_GetShiftState [12:17:51]SAM_PROTO_GetShiftState [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 01 00 [12:17:51]Write to MH i2c: E2 08 00 03 AC 80 13 01 00 00 00 00 00 2C [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 03 AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 65 [12:17:51]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetShiftState done [12:17:51]FM_GetShiftState done [12:17:51]req_shift_opened done [12:17:51]requested_item shift.open_date is exist - process it [12:17:51]req_shift_open_date [12:17:51]req_shift_open_date done [12:17:51]produce_requested_data done [12:17:51]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69891,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:17:51]process_action_free print_text [12:17:51]json_value_free [12:17:51]json_value_free done [12:17:51]process_json_proto returns [12:17:51]Send response to host [12:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69891,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:17:51]free response buf [12:17:51]execute_script done [12:17:51]execute_script returns [12:17:51]free content buf [12:17:51]Sock 9.Close socket [12:17:51]Sock 9.Thread stoped [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:35]accept exits with 7 [12:19:35]New connection [12:19:35]New thread 3067002212 created [12:19:35]Thread 3066858852 joined [12:19:35]Waiting for new connection... [12:19:35] Sock 7.Parse request [12:19:35]Sock 7.Check first char [12:19:35]Sock 7.First char is OK [12:19:35]request: POST /json_proto HTTP/1.0 [12:19:35]Method: POST [12:19:35]URL: /json_proto [12:19:35]Method is POST - this is cgi request [12:19:35]url: /json_proto [12:19:35]query_string will be loaded in cgi processing [12:19:35]execute_cgi json_proto POST (null) [12:19:35]execute_cgi path=json_proto method=POST [12:19:35]POST find Content-Length [12:19:35]Host: 172.17.49.132:8080 [12:19:35]Content-Length: 1156 [12:19:35]Content-Type: application/json [12:19:35] [12:19:35]POST finish read [12:19:35]Found Content-Length = 1156 [12:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137122", "tax_sys" : 0, "items" : [ { "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 327.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:35]execute_script... [12:19: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 : (3)137122", "tax_sys" : 0, "items" : [ { "code": "4870145004753", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Garage hard lemon \u0441\u0442 0,4\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 327.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:35]POST & json_proto [12:19:35]process_json_proto [12:19:35]json parsed OK: [12:19:35]protocol is kg_v1.0 [12:19:35]action value=close_receipt [12:19:35]process_action close_receipt [12:19:35]cmd_close_receipt [12:19:35]MH_GetDate [12:19:35]Write to MH i2c: F0 00 00 04 AC 9F [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: F0 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: F0 09 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: F0 09 00 04 AC 00 69 7D AB 66 E7 4B C0 64 F5 [12:19:35]GetLastDocTimeStamp 1722514612 [12:19:35]current date 1722514793 [12:19:35]FM_GetShiftState [12:19:35]SAM_PROTO_GetShiftState [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 13 01 00 [12:19:35]Write to MH i2c: E2 08 00 05 AC 80 13 01 00 00 00 00 00 2E [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0E 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0E 00 05 AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 67 [12:19:35]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_GetShiftState done [12:19:35]FM_GetShiftState done [12:19:35]opened in 1722472772 [12:19:35]opened+sec_in_day 1722559172 [12:19:35]quantity*price = 12000 [12:19:35]sum+1 = 12001 [12:19:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 327.00 НСП 1% : 2.89 НДС 12% : 34.72 Наличными: 327.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 55 01.08.2024 12:19 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69892 ФПД: 247632268800848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T121953&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69892&fm=247632268800848&tin=02508201610067®Number=0000000000092638&sum=32700 0 [12:19:36]StoreToDocumentArchive [12:19:36]shift 433 fd 69892 [12:19:36]save to /storage/0433/doc_00069892 [12:19:36]save last doc name /storage/0433/doc_00069892 to /storage/kkm_last_doc_name [12:19:36]save OK [12:19:36]Clear old archive folders... [12:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=502 [12:19:36]tlvbuf is 014919F0 [12:19:36]SAM_PROTO_ClearQueue [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 09 00 00 [12:19:36]Write to MH i2c: E2 08 00 12 AC 80 09 00 00 00 00 00 00 30 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 [12:19:36]MH_I2C_Read... [12:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:36]Read from MH i2c: E2 03 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 03 00 12 AC 00 90 00 32 [12:19:36]RAPDU: 90 00 [12:19:36]wFMCommunicate OK [12:19:36]SAM_PROTO_ClearQueue done [12:19:36]KKMCreateOFDPacket [12:19:36]OFDProtocolAddRootSTLVToBuf [12:19:36]FM_MakeSignedData [12:19:36]FM_MakeSignedData [12:19:36]SAM_PROTO_SignData [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 0D 01 02 [12:19:36]Write to MH i2c: E2 08 00 13 AC 80 0D 01 02 00 00 00 00 38 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:36]Read from MH i2c: E2 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 03 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 03 00 13 AC 00 90 00 33 [12:19:36]RAPDU: 90 00 [12:19:36]wFMCommunicate OK [12:19:36]wFMCommunicate request_size=255 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 [12:19:36]Write to MH i2c: E2 02 01 14 AC 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 00 00 B3 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 03 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 03 00 14 AC 00 90 00 34 [12:19:37]RAPDU: 90 00 [12:19:37]wFMCommunicate OK [12:19:37]wFMCommunicate request_size=255 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 0D 02 02 FA 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0D 00 00 00 00 07 04 06 00 BC 7F 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 69 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 04 11 01 00 35 04 06 00 [12:19:37]Write to MH i2c: E2 02 01 15 AC 80 0D 02 02 FA 00 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0D 00 00 00 00 07 04 06 00 BC 7F 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 69 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 04 11 01 00 35 04 06 00 00 00 7D [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 03 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 03 00 15 AC 00 90 00 35 [12:19:37]RAPDU: 90 00 [12:19:37]wFMCommunicate OK [12:19:37]wFMCommunicate request_size=11 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 0D 02 02 06 E1 38 61 6A B3 50 [12:19:37]Write to MH i2c: E2 0E 00 16 AC 80 0D 02 02 06 00 E1 38 61 6A B3 50 00 00 2F [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 03 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 03 00 16 AC 00 90 00 36 [12:19:37]RAPDU: 90 00 [12:19:37]wFMCommunicate OK [12:19:37]wFMCommunicate request_size=4 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 0D 03 02 [12:19:37]Write to MH i2c: E2 08 00 17 AC 80 0D 03 02 00 00 00 00 3E [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0B 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 0B 00 17 AC 00 B4 24 83 91 DF 26 8F C5 90 00 84 [12:19:37]RAPDU: B4 24 83 91 DF 26 8F C5 90 00 [12:19:37]wFMCommunicate OK [12:19:37]SAM_PROTO_SignData done [12:19:37]FM_MakeSignedData done [12:19:37]CreateOFDProtocolMessage [12:19:37]wFMCommunicate request_size=4 [12:19:37]MH_SAM_APDU [12:19:37]CAPDU: 80 11 00 00 [12:19:37]Write to MH i2c: E2 08 00 18 AC 80 11 00 00 00 00 00 00 3E [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:37]Read from MH i2c: E2 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 17 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: E2 17 00 18 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9A [12:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:19:37]wFMCommunicate OK [12:19:37]CreateOFDProtocolMessage done [12:19:37]OFDSenderStorePacket 69892 [12:19:37]StoreOFDPacket docnum=69892 [12:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0A 02 00 00 3F 53 02 02 88 39 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0D 00 00 00 00 07 04 06 00 BC 7F 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 69 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 04 11 01 00 35 04 06 00 E1 38 61 6A B3 50 B4 24 83 91 DF 26 8F C5 [12:19:37]CheckFolder [12:19:37]dirname=/storage/ofd_packets [12:19:37]CheckFolder done [12:19:37]ProducePacketName [12:19:37]name=ofd_packets/00069892 [12:19:37]NVStorageSaveData ofd_packets/00069892 [12:19:37]File name is /storage/ofd_packets/00069892 [12:19:37]Write 552 bytes [12:19:37]NVStorageSaveData done [12:19:37]OFDSenderStorePacket done [12:19:37]KKMCreateOFDPacket done [12:19:37]NVStorageSaveData kkm_last_timestamp [12:19:37]File name is /storage/kkm_last_timestamp [12:19:37]Write 4 bytes [12:19:37]NVStorageSaveData done [12:19:37]ExternCall_PrintAddStr [12:19:37]wPrintStart [12:19:37]Write to MH i2c: 01 00 00 19 AC C5 [12:19:37]Write i2c OK [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: 01 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: 01 07 00 [12:19:37]MH_I2C_Read... [12:19:37]Read from MH i2c: 01 07 00 19 AC 00 00 00 00 00 FF 0F DA [12:19:37]RasterBufferAndPrint [12:19:37]line Счет N : (3)137122 [12:19:37]line ИНН: 02508201610067 [12:19:37]line Контрольно-Кассовый Чек [12:19:37]line ПРОДАЖА [12:19:37]line Товар: 4870145004753 [12:19:37]line Напиток Garage hard lemon ст 0,4л [12:19:37]line 1.000 * 120.00 [12:19:37]line = 120.00 [12:19:37]line НДС 12% НСП 1% [12:19:37]line > о реализуемом товаре [12:19:37]line Товар: 48743570 [12:19:37]line Сигареты Winston XStyle Blue [12:19:37]line 1.000 * 140.00 [12:19:37]line = 140.00 [12:19:37]line НДС 12% НСП 1% [12:19:37]line > о реализуемом товаре [12:19:37]line Товар: 6931280300549 [12:19:37]line Зажигалка Cricket ПН пьезо [12:19:37]line 1.000 * 67.00 [12:19:37]line = 67.00 [12:19:37]line НДС 12% НСП 1% [12:19:37]line > о реализуемом товаре [12:19:37]line ИТОГО: 327.00 [12:19:37]line НСП 1% : 2.89 [12:19:37]line НДС 12% : 34.72 [12:19:37]line Наличными: 327.00 [12:19:37]line Безнал.: 0.00 [12:19:37]line Место: АЗС № 125 "Партнер Нефть" [12:19:37]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:19:37]line СНО: Общий режим [12:19:37]line Чек 55 01.08.2024 12:19 [12:19:37]line Смена: 433 ФФД: 1.0 [12:19:37]line ЗНМ: 0300000049 [12:19:37]line РНМ: 0000000000092638 [12:19:37]line Версия ККМ: 001 [12:19:37]line ФМ: 0000000000874949 [12:19:37]line ФД: 69892 [12:19:37]line ФПД: 247632268800848 [12:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T121953&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69892&fm=247632268800848&tin=02508201610067®Number=0000000000092638&sum=32700 [12:19:37]line 0 [12:19:37]written 0, free lines is 4095 [12:19:37]OFD Sender: Processing packet 69892 [packets to send 19, broken 18] [12:19:37]ProducePacketName [12:19:37]name=ofd_packets/00069892 [12:19:37]OFD Sender: To server: pG, [12:19:37]CommunicateWithHost lk.salyk.kg:30040 [12:19:37]ConnectInit lk.salyk.kg [12:19:37]Connected sock=10 [12:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0A 02 00 00 3F 53 02 02 88 39 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 37 35 33 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 61 72 61 67 65 20 68 61 72 64 20 6C 65 6D 6F 6E 20 D1 81 D1 82 20 30 2C 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 0D 00 00 00 00 07 04 06 00 BC 7F 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 69 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 04 11 01 00 35 04 06 00 E1 38 61 6A B3 50 B4 24 83 91 DF 26 8F C5 [12:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 A4 A7 47 00 AE BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 04 11 01 00 F4 03 04 00 CB 23 AB 66 B6 04 01 00 00 6B C4 3D 49 D9 BC 21 31 [12:19:38]CommunicateWithHost err = 0 [12:19:38]CheckOFDResponse [12:19:38]1017 (14) - 77093643461234 [12:19:38]1041 (16) - 0000000000874949 [12:19:38]1040 (4) - 69892 [12:19:38]1012 (4) - 01.08.2024 05:57 [12:19:38]1206 (1) - 0 [12:19:38]OFD Sender: Remove packet 69892 [12:19:38]ProducePacketName [12:19:38]name=ofd_packets/00069892 [12:19:38]NVStorageDeleteData [12:19:38]Write to MH i2c: 01 00 00 4E AC FA [12:19:38]Write i2c OK [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: 01 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: 01 07 00 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: 01 07 00 4E AC 00 00 00 00 00 72 0C 7F [12:19:38]RasterBufferAndPrint [12:19:38]line [12:19:38]line [12:19:38]line [12:19:38]line [12:19:38]line [12:19:38]written 0, free lines is 3195 [12:19:38]MH_Cut [12:19:38]Write to MH i2c: D1 01 00 55 AC 01 D3 [12:19:38]Write i2c OK [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: D1 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: D1 01 00 [12:19:38]MH_I2C_Read... [12:19:38]Read from MH i2c: D1 01 00 55 AC 00 D2 [12:19:38]Write to MH i2c: 01 00 00 56 AC 02 [12:19:38]Write i2c OK [12:19:38]MH_I2C_Read... [12:19:38]OFD Sender: No OFD packet to send [12:19:39]*** Cut start [12:19:39]*** Partial cut [12:19:39]*** CUTSNS_PIN = 1 [12:19:39]*** CUTSNS_PIN = 0 [12:19:39]*** Brake cut motor [12:19:39]Read from MH i2c: 01 [12:19:39]MH_I2C_Read... [12:19:39]*** Stop cut motor [12:19:39]*** Cut end [12:19:39]Read from MH i2c: 01 07 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: 01 07 00 56 AC 00 00 00 00 00 FF 0F 17 [12:19:39]process_action close_receipt done [12:19:39]requested_data is exist [12:19:39]produce_requested_data [12:19:39]requested_item fm.sn is exist - process it [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 11 00 00 [12:19:39]Write to MH i2c: E2 08 00 57 AC 80 11 00 00 00 00 00 00 7D [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 17 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 17 00 57 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D9 [12:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:19:39]wFMCommunicate OK [12:19:39]requested_item fd.num is exist - process it [12:19:39]SAM_PROTO_GetFieldsCounters [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 13 00 00 [12:19:39]Write to MH i2c: E2 08 00 58 AC 80 13 00 00 00 00 00 00 80 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 62 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 62 00 58 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 04 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:19:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 04 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_GetFieldsCounters done [12:19:39]requested_item shift.num is exist - process it [12:19:39]requested_item shift.opened is exist - process it [12:19:39]req_shift_opened [12:19:39]FM_GetShiftState [12:19:39]SAM_PROTO_GetShiftState [12:19:39]wFMCommunicate request_size=4 [12:19:39]MH_SAM_APDU [12:19:39]CAPDU: 80 13 01 00 [12:19:39]Write to MH i2c: E2 08 00 59 AC 80 13 01 00 00 00 00 00 82 [12:19:39]Write i2c OK [12:19:39]MH_I2C_Read... [12:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:39]Read from MH i2c: E2 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0E 00 [12:19:39]MH_I2C_Read... [12:19:39]Read from MH i2c: E2 0E 00 59 AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BB [12:19:39]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:19:39]wFMCommunicate OK [12:19:39]SAM_PROTO_GetShiftState done [12:19:39]FM_GetShiftState done [12:19:39]req_shift_opened done [12:19:39]requested_item shift.open_date is exist - process it [12:19:39]req_shift_open_date [12:19:39]req_shift_open_date done [12:19:39]produce_requested_data done [12:19:39]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69892,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:19:39]process_action_free close_receipt [12:19:39]json_value_free [12:19:39]json_value_free done [12:19:39]process_json_proto returns [12:19:39]Send response to host [12:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69892,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:19:39]free response buf [12:19:39]execute_script done [12:19:39]execute_script returns [12:19:39]free content buf [12:19:39]Sock 7.Close socket [12:19:39]Sock 7.Thread stoped [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:42]accept exits with 9 [12:20:42]New connection [12:20:42]New thread 3066858852 created [12:20:42]Thread 3067002212 joined [12:20:42]Waiting for new connection... [12:20:42] Sock 9.Parse request [12:20:42]Sock 9.Check first char [12:20:42]Sock 9.First char is OK [12:20:42]request: POST /json_proto HTTP/1.0 [12:20:42]Method: POST [12:20:42]URL: /json_proto [12:20:42]Method is POST - this is cgi request [12:20:42]url: /json_proto [12:20:42]query_string will be loaded in cgi processing [12:20:42]execute_cgi json_proto POST (null) [12:20:42]execute_cgi path=json_proto method=POST [12:20:42]POST find Content-Length [12:20:42]Host: 172.17.49.132:8080 [12:20:42]Content-Length: 590 [12:20:42]Content-Type: application/json [12:20:42] [12:20:42]POST finish read [12:20:42]Found Content-Length = 590 [12:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137123", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:42]execute_script... [12:20:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137123", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 37.00, "quantity" : 1.000, "sum" : 37.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 37.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:42]POST & json_proto [12:20:42]process_json_proto [12:20:42]json parsed OK: [12:20:42]protocol is kg_v1.0 [12:20:42]action value=close_receipt [12:20:42]process_action close_receipt [12:20:42]cmd_close_receipt [12:20:42]MH_GetDate [12:20:42]Write to MH i2c: F0 00 00 5A AC F5 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 09 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 09 00 5A AC 00 AC 7D AB 66 E7 4B C0 64 8E [12:20:42]GetLastDocTimeStamp 1722514793 [12:20:42]current date 1722514860 [12:20:42]FM_GetShiftState [12:20:42]SAM_PROTO_GetShiftState [12:20:42]wFMCommunicate request_size=4 [12:20:42]MH_SAM_APDU [12:20:42]CAPDU: 80 13 01 00 [12:20:42]Write to MH i2c: E2 08 00 5B AC 80 13 01 00 00 00 00 00 84 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:42]Read from MH i2c: E2 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 0E 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 0E 00 5B AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BD [12:20:42]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:20:42]wFMCommunicate OK [12:20:42]SAM_PROTO_GetShiftState done [12:20:42]FM_GetShiftState done [12:20:42]opened in 1722472772 [12:20:42]opened+sec_in_day 1722559172 [12:20:42]quantity*price = 3700 [12:20:42]sum+1 = 3701 [12:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 37.00 НСП 1% : 0.33 НДС 12% : 3.93 Наличными: 37.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 56 01.08.2024 12:21 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69893 ФПД: 200990045164652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T122100&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69893&fm=200990045164652&tin=02508201610067®Number=0000000000092638&sum=3700 0 [12:20:43]StoreToDocumentArchive [12:20:43]shift 433 fd 69893 [12:20:43]save to /storage/0433/doc_00069893 [12:20:43]save last doc name /storage/0433/doc_00069893 to /storage/kkm_last_doc_name [12:20:43]save OK [12:20:43]Clear old archive folders... [12:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=265 [12:20:43]tlvbuf is 014A0670 [12:20:43]SAM_PROTO_ClearQueue [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 09 00 00 [12:20:43]Write to MH i2c: E2 08 00 68 AC 80 09 00 00 00 00 00 00 86 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 68 AC 00 90 00 88 [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_ClearQueue done [12:20:43]KKMCreateOFDPacket [12:20:43]OFDProtocolAddRootSTLVToBuf [12:20:43]FM_MakeSignedData [12:20:43]FM_MakeSignedData [12:20:43]SAM_PROTO_SignData [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 01 02 [12:20:43]Write to MH i2c: E2 08 00 69 AC 80 0D 01 02 00 00 00 00 8E [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 69 AC 00 90 00 89 [12:20:44]RAPDU: 90 00 [12:20:44]wFMCommunicate OK [12:20:44]wFMCommunicate request_size=255 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AC 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 [12:20:44]Write to MH i2c: E2 02 01 6A AC 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AC 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 00 00 AA [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 6A AC 00 90 00 8A [12:20:44]RAPDU: 90 00 [12:20:44]wFMCommunicate OK [12:20:44]wFMCommunicate request_size=24 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 0D 02 02 13 39 10 04 04 00 05 11 01 00 35 04 06 00 B6 CC A4 3E D4 6C [12:20:44]Write to MH i2c: E2 1B 00 6B AC 80 0D 02 02 13 00 39 10 04 04 00 05 11 01 00 35 04 06 00 B6 CC A4 3E D4 6C 00 00 02 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 03 00 6B AC 00 90 00 8B [12:20:44]RAPDU: 90 00 [12:20:44]wFMCommunicate OK [12:20:44]wFMCommunicate request_size=4 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 0D 03 02 [12:20:44]Write to MH i2c: E2 08 00 6C AC 80 0D 03 02 00 00 00 00 93 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 0B 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 0B 00 6C AC 00 5E 93 2C DF DB F7 F8 2D 90 00 87 [12:20:44]RAPDU: 5E 93 2C DF DB F7 F8 2D 90 00 [12:20:44]wFMCommunicate OK [12:20:44]SAM_PROTO_SignData done [12:20:44]FM_MakeSignedData done [12:20:44]CreateOFDProtocolMessage [12:20:44]wFMCommunicate request_size=4 [12:20:44]MH_SAM_APDU [12:20:44]CAPDU: 80 11 00 00 [12:20:44]Write to MH i2c: E2 08 00 6D AC 80 11 00 00 00 00 00 00 93 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:44]Read from MH i2c: E2 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 17 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: E2 17 00 6D AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EF [12:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:20:44]wFMCommunicate OK [12:20:44]CreateOFDProtocolMessage done [12:20:44]OFDSenderStorePacket 69893 [12:20:44]StoreOFDPacket docnum=69893 [12:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1D 01 00 00 1D 30 15 01 72 5B 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AC 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 05 11 01 00 35 04 06 00 B6 CC A4 3E D4 6C 5E 93 2C DF DB F7 F8 2D [12:20:44]CheckFolder [12:20:44]dirname=/storage/ofd_packets [12:20:44]CheckFolder done [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00069893 [12:20:44]NVStorageSaveData ofd_packets/00069893 [12:20:44]File name is /storage/ofd_packets/00069893 [12:20:44]Write 315 bytes [12:20:44]NVStorageSaveData done [12:20:44]OFDSenderStorePacket done [12:20:44]KKMCreateOFDPacket done [12:20:44]NVStorageSaveData kkm_last_timestamp [12:20:44]File name is /storage/kkm_last_timestamp [12:20:44]Write 4 bytes [12:20:44]NVStorageSaveData done [12:20:44]ExternCall_PrintAddStr [12:20:44]wPrintStart [12:20:44]Write to MH i2c: 01 00 00 6E AC 1A [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 6E AC 00 00 00 00 00 FF 0F 2F [12:20:44]RasterBufferAndPrint [12:20:44]line Счет N : (3)137123 [12:20:44]line ИНН: 02508201610067 [12:20:44]line Контрольно-Кассовый Чек [12:20:44]line ПРОДАЖА [12:20:44]line Товар: 42113164 [12:20:44]line Жев Orbit White Spearmint [12:20:44]line 1.000 * 37.00 [12:20:44]line = 37.00 [12:20:44]line НДС 12% НСП 1% [12:20:44]line > о реализуемом товаре [12:20:44]line ИТОГО: 37.00 [12:20:44]line НСП 1% : 0.33 [12:20:44]line НДС 12% : 3.93 [12:20:44]line Наличными: 37.00 [12:20:44]line Безнал.: 0.00 [12:20:44]line Место: АЗС № 125 "Партнер Нефть" [12:20:44]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:20:44]line СНО: Общий режим [12:20:44]line Чек 56 01.08.2024 12:21 [12:20:44]line Смена: 433 ФФД: 1.0 [12:20:44]line ЗНМ: 0300000049 [12:20:44]line РНМ: 0000000000092638 [12:20:44]line Версия ККМ: 001 [12:20:44]line ФМ: 0000000000874949 [12:20:44]line ФД: 69893 [12:20:44]line ФПД: 200990045164652 [12:20:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T122100&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69893&fm=200990045164652&tin=02508201610067®Number=0000000000092638&sum=3700 [12:20:44]OFD Sender: Processing packet 69893 [packets to send 19, broken 18] [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00069893 [12:20:44]OFD Sender: To server: pG, [12:20:44]CommunicateWithHost lk.salyk.kg:30040 [12:20:44]ConnectInit lk.salyk.kg [12:20:44]line 0 [12:20:44]written 0, free lines is 4095 [12:20:44]Connected sock=11 [12:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 1D 01 00 00 1D 30 15 01 72 5B 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 0E 00 00 00 00 13 04 06 00 74 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 01 00 00 00 00 07 04 06 00 74 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 AC 7D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 05 11 01 00 35 04 06 00 B6 CC A4 3E D4 6C 5E 93 2C DF DB F7 F8 2D [12:20:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 E4 A5 47 00 1D 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 34 39 34 39 10 04 04 00 05 11 01 00 F4 03 04 00 0E 24 AB 66 B6 04 01 00 00 A0 C4 B7 32 28 D4 EB 27 [12:20:45]CommunicateWithHost err = 0 [12:20:45]CheckOFDResponse [12:20:45]1017 (14) - 77093643461234 [12:20:45]1041 (16) - 0000000000874949 [12:20:45]1040 (4) - 69893 [12:20:45]1012 (4) - 01.08.2024 05:58 [12:20:45]1206 (1) - 0 [12:20:45]OFD Sender: Remove packet 69893 [12:20:45]ProducePacketName [12:20:45]name=ofd_packets/00069893 [12:20:45]NVStorageDeleteData [12:20:45]Write to MH i2c: 01 00 00 96 AC 42 [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: 01 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: 01 07 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: 01 07 00 96 AC 00 00 00 00 00 20 0D 76 [12:20:45]RasterBufferAndPrint [12:20:45]line [12:20:45]line [12:20:45]line [12:20:45]line [12:20:45]line [12:20:45]written 0, free lines is 3366 [12:20:45]MH_Cut [12:20:45]Write to MH i2c: D1 01 00 9D AC 01 1B [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: D1 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: D1 01 00 [12:20:45]MH_I2C_Read... [12:20:45]Read from MH i2c: D1 01 00 9D AC 00 1A [12:20:45]Write to MH i2c: 01 00 00 9E AC 4A [12:20:45]Write i2c OK [12:20:45]MH_I2C_Read... [12:20:45]OFD Sender: No OFD packet to send [12:20:45]*** Cut start [12:20:45]*** Partial cut [12:20:45]*** CUTSNS_PIN = 1 [12:20:45]*** CUTSNS_PIN = 0 [12:20:46]*** Brake cut motor [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]*** Stop cut motor [12:20:46]*** Cut end [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 9E AC 00 00 00 00 00 FF 0F 5F [12:20:46]process_action close_receipt done [12:20:46]requested_data is exist [12:20:46]produce_requested_data [12:20:46]requested_item fm.sn is exist - process it [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 11 00 00 [12:20:46]Write to MH i2c: E2 08 00 9F AC 80 11 00 00 00 00 00 00 C5 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 9F AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 21 [12:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:20:46]wFMCommunicate OK [12:20:46]requested_item fd.num is exist - process it [12:20:46]SAM_PROTO_GetFieldsCounters [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 13 00 00 [12:20:46]Write to MH i2c: E2 08 00 A0 AC 80 13 00 00 00 00 00 00 C8 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 62 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 62 00 A0 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 05 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [12:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 05 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_GetFieldsCounters done [12:20:46]requested_item shift.num is exist - process it [12:20:46]requested_item shift.opened is exist - process it [12:20:46]req_shift_opened [12:20:46]FM_GetShiftState [12:20:46]SAM_PROTO_GetShiftState [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 13 01 00 [12:20:46]Write to MH i2c: E2 08 00 A1 AC 80 13 01 00 00 00 00 00 CA [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0E 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0E 00 A1 AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 03 [12:20:46]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_GetShiftState done [12:20:46]FM_GetShiftState done [12:20:46]req_shift_opened done [12:20:46]requested_item shift.open_date is exist - process it [12:20:46]req_shift_open_date [12:20:46]req_shift_open_date done [12:20:46]produce_requested_data done [12:20:46]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69893,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:20:46]process_action_free close_receipt [12:20:46]json_value_free [12:20:46]json_value_free done [12:20:46]process_json_proto returns [12:20:46]Send response to host [12:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69893,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:20:46]free response buf [12:20:46]execute_script done [12:20:46]execute_script returns [12:20:46]free content buf [12:20:46]Sock 9.Close socket [12:20:46]Sock 9.Thread stoped [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]accept exits with 7 [12:22:10]New connection [12:22:10]New thread 3067002212 created [12:22:10]Thread 3066858852 joined [12:22:10]Waiting for new connection... [12:22:10] Sock 7.Parse request [12:22:10]Sock 7.Check first char [12:22:10]Sock 7.First char is OK [12:22:10]request: POST /json_proto HTTP/1.0 [12:22:10]Method: POST [12:22:10]URL: /json_proto [12:22:10]Method is POST - this is cgi request [12:22:10]url: /json_proto [12:22:10]query_string will be loaded in cgi processing [12:22:10]execute_cgi json_proto POST (null) [12:22:10]execute_cgi path=json_proto method=POST [12:22:10]POST find Content-Length [12:22:10]Host: 172.17.49.132:8080 [12:22:10]Content-Length: 1251 [12:22:10]Content-Type: application/json [12:22:10] [12:22:10]POST finish read [12:22:10]Found Content-Length = 1251 [12:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874724\u000A01.08.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918685;686;687;688;689;690;691;692;693;694\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:10]execute_script... [12:22:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874724\u000A01.08.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918685;686;687;688;689;690;691;692;693;694\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:10]POST & json_proto [12:22:10]process_json_proto [12:22:10]json parsed OK: [12:22:10]protocol is kg_v1.0 [12:22:10]action value=print_text [12:22:10]process_action print_text [12:22:10]cmd_print_text [12:22:10]ExternCall_PrintAddStr [12:22:10]wPrintStart [12:22:10]Write to MH i2c: 01 00 00 A2 AC 4E [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 A2 AC 00 00 00 00 00 FF 0F 63 [12:22:10]RasterBufferAndPrint [12:22:10]line *****ТОВАРНЫЙ ЧЕК***** [12:22:10]line АЗС 125 [12:22:10]line Партнер нефть [12:22:10]line 02508201610067 [12:22:10]line Кассир : Мадаминова Б. [12:22:10]line Счет N : (1)874724 [12:22:10]line 01.08.2024 11:43 [12:22:10]line ПРОДАЖА [12:22:10]line ТРК (МРК, ГНК): 62 [12:22:10]line Вид ГСМ : 2710124130 [12:22:10]line Аи-92-К-5 [12:22:10]line 100.000 x 67.80 [12:22:10]line ИТОГ: 6780.00 [12:22:10]line Тип оплаты: Талоны: Топливные Талоны [12:22:10]line 3918685;686;687;688;689;690;691;692;693;694 [12:22:10]line ______________________ [12:22:10]line (подпись) [12:22:10]written 0, free lines is 4095 [12:22:10]OFD Sender: No OFD packet to send [12:22:10]Write to MH i2c: 01 00 00 B7 AC 63 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 B7 AC 00 00 00 00 00 0C 0E 84 [12:22:10]RasterBufferAndPrint [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]written 0, free lines is 3600 [12:22:10]MH_Cut [12:22:10]Write to MH i2c: D1 01 00 BE AC 01 3C [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 01 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 01 00 BE AC 00 3B [12:22:10]Write to MH i2c: 01 00 00 BF AC 6B [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:11]*** Cut start [12:22:11]*** Partial cut [12:22:11]*** CUTSNS_PIN = 1 [12:22:11]*** CUTSNS_PIN = 0 [12:22:11]*** Brake cut motor [12:22:11]Read from MH i2c: 01 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 07 00 [12:22:11]MH_I2C_Read... [12:22:11]*** Stop cut motor [12:22:11]*** Cut end [12:22:11]Read from MH i2c: 01 07 00 BF AC 00 00 00 00 00 FF 0F 80 [12:22:11]process_action print_text done [12:22:11]requested_data is exist [12:22:11]produce_requested_data [12:22:11]requested_item fm.sn is exist - process it [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 11 00 00 [12:22:11]Write to MH i2c: E2 08 00 C0 AC 80 11 00 00 00 00 00 00 E6 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 17 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 17 00 C0 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 42 [12:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:22:12]wFMCommunicate OK [12:22:12]requested_item fd.num is exist - process it [12:22:12]SAM_PROTO_GetFieldsCounters [12:22:12]wFMCommunicate request_size=4 [12:22:12]MH_SAM_APDU [12:22:12]CAPDU: 80 13 00 00 [12:22:12]Write to MH i2c: E2 08 00 C1 AC 80 13 00 00 00 00 00 00 E9 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 62 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 62 00 C1 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 05 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 05 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:12]wFMCommunicate OK [12:22:12]SAM_PROTO_GetFieldsCounters done [12:22:12]requested_item shift.num is exist - process it [12:22:12]requested_item shift.opened is exist - process it [12:22:12]req_shift_opened [12:22:12]FM_GetShiftState [12:22:12]SAM_PROTO_GetShiftState [12:22:12]wFMCommunicate request_size=4 [12:22:12]MH_SAM_APDU [12:22:12]CAPDU: 80 13 01 00 [12:22:12]Write to MH i2c: E2 08 00 C2 AC 80 13 01 00 00 00 00 00 EB [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 0E 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 0E 00 C2 AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 24 [12:22:12]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:22:12]wFMCommunicate OK [12:22:12]SAM_PROTO_GetShiftState done [12:22:12]FM_GetShiftState done [12:22:12]req_shift_opened done [12:22:12]requested_item shift.open_date is exist - process it [12:22:12]req_shift_open_date [12:22:12]req_shift_open_date done [12:22:12]produce_requested_data done [12:22:12]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69893,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:22:12]process_action_free print_text [12:22:12]json_value_free [12:22:12]json_value_free done [12:22:12]process_json_proto returns [12:22:12]Send response to host [12:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69893,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:22:12]free response buf [12:22:12]execute_script done [12:22:12]execute_script returns [12:22:12]free content buf [12:22:12]Sock 7.Close socket [12:22:12]Sock 7.Thread stoped [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:29]accept exits with 9 [12:23:29]New connection [12:23:29]New thread 3066858852 created [12:23:29]Thread 3067002212 joined [12:23:29]Waiting for new connection... [12:23:29] Sock 9.Parse request [12:23:29]Sock 9.Check first char [12:23:29]Sock 9.First char is OK [12:23:29]request: POST /json_proto HTTP/1.0 [12:23:29]Method: POST [12:23:29]URL: /json_proto [12:23:29]Method is POST - this is cgi request [12:23:29]url: /json_proto [12:23:29]query_string will be loaded in cgi processing [12:23:29]execute_cgi json_proto POST (null) [12:23:29]execute_cgi path=json_proto method=POST [12:23:29]POST find Content-Length [12:23:29]Host: 172.17.49.132:8080 [12:23:29]Content-Length: 1086 [12:23:29]Content-Type: application/json [12:23:29] [12:23:29]POST finish read [12:23:29]Found Content-Length = 1086 [12:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137124", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:29]execute_script... [12:23: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 : (3)137124", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 310.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:29]POST & json_proto [12:23:29]process_json_proto [12:23:29]json parsed OK: [12:23:29]protocol is kg_v1.0 [12:23:29]action value=close_receipt [12:23:29]process_action close_receipt [12:23:29]cmd_close_receipt [12:23:29]MH_GetDate [12:23:29]Write to MH i2c: F0 00 00 C3 AC 5E [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: F0 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: F0 09 00 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: F0 09 00 C3 AC 00 54 7E AB 66 E7 4B C0 64 A0 [12:23:29]GetLastDocTimeStamp 1722514860 [12:23:29]current date 1722515028 [12:23:29]FM_GetShiftState [12:23:29]SAM_PROTO_GetShiftState [12:23:29]wFMCommunicate request_size=4 [12:23:29]MH_SAM_APDU [12:23:29]CAPDU: 80 13 01 00 [12:23:29]Write to MH i2c: E2 08 00 C4 AC 80 13 01 00 00 00 00 00 ED [12:23:29]Write i2c OK [12:23:29]MH_I2C_Read... [12:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:29]Read from MH i2c: E2 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: E2 0E 00 [12:23:29]MH_I2C_Read... [12:23:29]Read from MH i2c: E2 0E 00 C4 AC 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 26 [12:23:29]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:23:29]wFMCommunicate OK [12:23:29]SAM_PROTO_GetShiftState done [12:23:29]FM_GetShiftState done [12:23:29]opened in 1722472772 [12:23:29]opened+sec_in_day 1722559172 [12:23:29]quantity*price = 16000 [12:23:29]sum+1 = 16001 [12:23:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.75 НДС 12% : 32.92 Наличными: 0.00 Безнал.: 310.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 57 01.08.2024 12:23 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69894 ФПД: 237134417511091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T122348&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69894&fm=237134417511091&tin=02508201610067®Number=0000000000092638&sum=31000 0 [12:23:31]StoreToDocumentArchive [12:23:31]shift 433 fd 69894 [12:23:31]save to /storage/0433/doc_00069894 [12:23:31]save last doc name /storage/0433/doc_00069894 to /storage/kkm_last_doc_name [12:23:31]save OK [12:23:31]Clear old archive folders... [12:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=373 [12:23:31]tlvbuf is 0136B790 [12:23:31]SAM_PROTO_ClearQueue [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 09 00 00 [12:23:31]Write to MH i2c: E2 08 00 D1 AC 80 09 00 00 00 00 00 00 EF [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 D1 AC 00 90 00 F1 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]SAM_PROTO_ClearQueue done [12:23:31]KKMCreateOFDPacket [12:23:31]OFDProtocolAddRootSTLVToBuf [12:23:31]FM_MakeSignedData [12:23:31]FM_MakeSignedData [12:23:31]SAM_PROTO_SignData [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 01 02 [12:23:31]Write to MH i2c: E2 08 00 D2 AC 80 0D 01 02 00 00 00 00 F7 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 D2 AC 00 90 00 F2 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=255 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 [12:23:31]Write to MH i2c: E2 02 01 D3 AC 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 00 00 1A [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 D3 AC 00 90 00 F3 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=132 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 54 7E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 06 11 01 00 35 04 06 00 D7 AC 28 B8 42 B3 [12:23:31]Write to MH i2c: E2 87 00 D4 AC 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 54 7E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 06 11 01 00 35 04 06 00 D7 AC 28 B8 42 B3 00 00 F6 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 D4 AC 00 90 00 F4 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 03 02 [12:23:31]Write to MH i2c: E2 08 00 D5 AC 80 0D 03 02 00 00 00 00 FC [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 0B 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 0B 00 D5 AC 00 45 74 D5 78 16 31 FB 61 90 00 A6 [12:23:31]RAPDU: 45 74 D5 78 16 31 FB 61 90 00 [12:23:31]wFMCommunicate OK [12:23:31]SAM_PROTO_SignData done [12:23:31]FM_MakeSignedData done [12:23:31]CreateOFDProtocolMessage [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 11 00 00 [12:23:31]Write to MH i2c: E2 08 00 D6 AC 80 11 00 00 00 00 00 00 FC [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 17 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 17 00 D6 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 58 [12:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:23:31]wFMCommunicate OK [12:23:31]CreateOFDProtocolMessage done [12:23:31]OFDSenderStorePacket 69894 [12:23:31]StoreOFDPacket docnum=69894 [12:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 89 01 00 00 EA 93 81 01 4B AF 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 54 7E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 06 11 01 00 35 04 06 00 D7 AC 28 B8 42 B3 45 74 D5 78 16 31 FB 61 [12:23:31]CheckFolder [12:23:31]dirname=/storage/ofd_packets [12:23:31]CheckFolder done [12:23:31]ProducePacketName [12:23:31]name=ofd_packets/00069894 [12:23:31]NVStorageSaveData ofd_packets/00069894 [12:23:31]File name is /storage/ofd_packets/00069894 [12:23:31]Write 423 bytes [12:23:31]NVStorageSaveData done [12:23:31]OFDSenderStorePacket done [12:23:31]KKMCreateOFDPacket done [12:23:31]NVStorageSaveData kkm_last_timestamp [12:23:31]File name is /storage/kkm_last_timestamp [12:23:31]Write 4 bytes [12:23:32]NVStorageSaveData done [12:23:32]ExternCall_PrintAddStr [12:23:32]wPrintStart [12:23:32]Write to MH i2c: 01 00 00 D7 AC 83 [12:23:32]OFD Sender: Processing packet 69894 [packets to send 19, broken 18] [12:23:32]ProducePacketName [12:23:32]name=ofd_packets/00069894 [12:23:32]OFD Sender: To server: pG, [12:23:32]CommunicateWithHost lk.salyk.kg:30040 [12:23:32]ConnectInit lk.salyk.kg [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 D7 AC 00 00 00 00 00 FF 0F 98 [12:23:32]RasterBufferAndPrint [12:23:32]line Счет N : (3)137124 [12:23:32]line ИНН: 02508201610067 [12:23:32]line Контрольно-Кассовый Чек [12:23:32]line ПРОДАЖА [12:23:32]line Товар: 4870001570057 [12:23:32]line Напиток Pepsi 0,5л [12:23:32]line 2.000 * 80.00 [12:23:32]line = 160.00 [12:23:32]line НДС 12% НСП 1% [12:23:32]line > о реализуемом товаре [12:23:32]line Товар: 54491472 [12:23:32]line Напиток Кока-Кола 0,5л [12:23:32]line 2.000 * 75.00 [12:23:32]line = 150.00 [12:23:32]line НДС 12% НСП 1% [12:23:32]line > о реализуемом товаре [12:23:32]line ИТОГО: 310.00 [12:23:32]line НСП 1% : 2.75 [12:23:32]line НДС 12% : 32.92 [12:23:32]line Наличными: 0.00 [12:23:32]line Безнал.: 310.00 [12:23:32]line Место: АЗС № 125 "Партнер Нефть" [12:23:32]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:23:32]line СНО: Общий режим [12:23:32]line Чек 57 01.08.2024 12:23 [12:23:32]line Смена: 433 ФФД: 1.0 [12:23:32]line ЗНМ: 0300000049 [12:23:32]line РНМ: 0000000000092638 [12:23:32]line Версия ККМ: 001 [12:23:32]line Платежная система: АКБ Кыргызстан [12:23:32]line ФМ: 0000000000874949 [12:23:32]line ФД: 69894 [12:23:32]line ФПД: 237134417511091 [12:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T122348&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69894&fm=237134417511091&tin=02508201610067®Number=0000000000092638&sum=31000 [12:23:32]line 0 [12:23:32]written 0, free lines is 4095 [12:23:32]Connected sock=10 [12:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 89 01 00 00 EA 93 81 01 4B AF 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 79 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 54 7E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 06 11 01 00 35 04 06 00 D7 AC 28 B8 42 B3 45 74 D5 78 16 31 FB 61 [12:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CB AB 47 00 3D C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 06 11 01 00 F4 03 04 00 B5 24 AB 66 B6 04 01 00 00 C2 E4 C0 DC B7 14 6D C1 [12:23:32]CommunicateWithHost err = 0 [12:23:32]CheckOFDResponse [12:23:32]1017 (14) - 77093643461234 [12:23:32]1041 (16) - 0000000000874949 [12:23:32]1040 (4) - 69894 [12:23:32]1012 (4) - 01.08.2024 06:01 [12:23:32]1206 (1) - 0 [12:23:32]OFD Sender: Remove packet 69894 [12:23:32]ProducePacketName [12:23:32]name=ofd_packets/00069894 [12:23:32]NVStorageDeleteData [12:23:32]Write to MH i2c: 01 00 00 07 AD B4 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 07 AD 00 00 00 00 00 BB 0C 82 [12:23:32]RasterBufferAndPrint [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]written 0, free lines is 3269 [12:23:32]MH_Cut [12:23:32]Write to MH i2c: D1 01 00 0E AD 01 8D [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 01 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 01 00 0E AD 00 8C [12:23:32]Write to MH i2c: 01 00 00 0F AD BC [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]OFD Sender: No OFD packet to send [12:23:33]*** Cut start [12:23:33]*** Partial cut [12:23:33]*** CUTSNS_PIN = 1 [12:23:33]*** CUTSNS_PIN = 0 [12:23:33]*** Brake cut motor [12:23:33]Read from MH i2c: 01 [12:23:33]MH_I2C_Read... [12:23:33]*** Stop cut motor [12:23:33]*** Cut end [12:23:33]Read from MH i2c: 01 07 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: 01 07 00 0F AD 00 00 00 00 00 FF 0F D1 [12:23:33]process_action close_receipt done [12:23:33]requested_data is exist [12:23:33]produce_requested_data [12:23:33]requested_item fm.sn is exist - process it [12:23:33]wFMCommunicate request_size=4 [12:23:33]MH_SAM_APDU [12:23:33]CAPDU: 80 11 00 00 [12:23:33]Write to MH i2c: E2 08 00 10 AD 80 11 00 00 00 00 00 00 37 [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:33]Read from MH i2c: E2 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 17 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 17 00 10 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 93 [12:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:23:33]wFMCommunicate OK [12:23:33]requested_item fd.num is exist - process it [12:23:33]SAM_PROTO_GetFieldsCounters [12:23:33]wFMCommunicate request_size=4 [12:23:33]MH_SAM_APDU [12:23:33]CAPDU: 80 13 00 00 [12:23:33]Write to MH i2c: E2 08 00 11 AD 80 13 00 00 00 00 00 00 3A [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 62 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 62 00 11 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 06 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [12:23:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 06 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:34]wFMCommunicate OK [12:23:34]SAM_PROTO_GetFieldsCounters done [12:23:34]requested_item shift.num is exist - process it [12:23:34]requested_item shift.opened is exist - process it [12:23:34]req_shift_opened [12:23:34]FM_GetShiftState [12:23:34]SAM_PROTO_GetShiftState [12:23:34]wFMCommunicate request_size=4 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 13 01 00 [12:23:34]Write to MH i2c: E2 08 00 12 AD 80 13 01 00 00 00 00 00 3C [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 0E 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 0E 00 12 AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 75 [12:23:34]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:23:34]wFMCommunicate OK [12:23:34]SAM_PROTO_GetShiftState done [12:23:34]FM_GetShiftState done [12:23:34]req_shift_opened done [12:23:34]requested_item shift.open_date is exist - process it [12:23:34]req_shift_open_date [12:23:34]req_shift_open_date done [12:23:34]produce_requested_data done [12:23:34]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69894,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:23:34]process_action_free close_receipt [12:23:34]json_value_free [12:23:34]json_value_free done [12:23:34]process_json_proto returns [12:23:34]Send response to host [12:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69894,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:23:34]free response buf [12:23:34]execute_script done [12:23:34]execute_script returns [12:23:34]free content buf [12:23:34]Sock 9.Close socket [12:23:34]Sock 9.Thread stoped [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [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:11]accept exits with 7 [12:26:11]New connection [12:26:11]New thread 3067002212 created [12:26:11]Thread 3066858852 joined [12:26:11]Waiting for new connection... [12:26:11] Sock 7.Parse request [12:26:11]Sock 7.Check first char [12:26:11]Sock 7.First char is OK [12:26:11]request: POST /json_proto HTTP/1.0 [12:26:11]Method: POST [12:26:11]URL: /json_proto [12:26:11]Method is POST - this is cgi request [12:26:11]url: /json_proto [12:26:11]query_string will be loaded in cgi processing [12:26:11]execute_cgi json_proto POST (null) [12:26:11]execute_cgi path=json_proto method=POST [12:26:11]POST find Content-Length [12:26:11]Host: 172.17.49.132:8080 [12:26:11]Content-Length: 1218 [12:26:11]Content-Type: application/json [12:26:11] [12:26:11]POST finish read [12:26:11]Found Content-Length = 1218 [12:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874735\u000A01.08.2024 11:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918684;683\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:11]execute_script... [12:26:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874735\u000A01.08.2024 11:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918684;683\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:11]POST & json_proto [12:26:11]process_json_proto [12:26:11]json parsed OK: [12:26:11]protocol is kg_v1.0 [12:26:11]action value=print_text [12:26:11]process_action print_text [12:26:11]cmd_print_text [12:26:11]ExternCall_PrintAddStr [12:26:11]wPrintStart [12:26:11]Write to MH i2c: 01 00 00 13 AD C0 [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 07 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 07 00 13 AD 00 00 00 00 00 FF 0F D5 [12:26:11]RasterBufferAndPrint [12:26:11]line *****ТОВАРНЫЙ ЧЕК***** [12:26:11]line АЗС 125 [12:26:11]line Партнер нефть [12:26:11]line 02508201610067 [12:26:11]line Кассир : Мадаминова Б. [12:26:11]line Счет N : (1)874735 [12:26:11]line 01.08.2024 11:47 [12:26:11]line ПРОДАЖА [12:26:11]line ТРК (МРК, ГНК): 32 [12:26:11]line Вид ГСМ : 2710124130 [12:26:11]line Аи-92-К-5 [12:26:11]line 20.000 x 67.80 [12:26:11]line ИТОГ: 1356.00 [12:26:11]line Тип оплаты: Талоны: Топливные Талоны [12:26:11]line 3918684;683 [12:26:11]line ______________________ [12:26:11]line (подпись) [12:26:11]written 0, free lines is 4095 [12:26:11]Write to MH i2c: 01 00 00 27 AD D4 [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 07 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: 01 07 00 27 AD 00 00 00 00 00 13 0E FC [12:26:11]RasterBufferAndPrint [12:26:11]line [12:26:11]line [12:26:11]line [12:26:11]line [12:26:11]line [12:26:11]written 0, free lines is 3605 [12:26:11]MH_Cut [12:26:11]Write to MH i2c: D1 01 00 2E AD 01 AD [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: D1 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: D1 01 00 [12:26:11]MH_I2C_Read... [12:26:11]Read from MH i2c: D1 01 00 2E AD 00 AC [12:26:11]Write to MH i2c: 01 00 00 2F AD DC [12:26:11]Write i2c OK [12:26:11]MH_I2C_Read... [12:26:12]*** Cut start [12:26:12]*** Partial cut [12:26:12]*** CUTSNS_PIN = 1 [12:26:12]*** CUTSNS_PIN = 0 [12:26:12]*** Brake cut motor [12:26:12]Read from MH i2c: 01 [12:26:12]MH_I2C_Read... [12:26:12]*** Stop cut motor [12:26:12]*** Cut end [12:26:12]Read from MH i2c: 01 07 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: 01 07 00 2F AD 00 00 00 00 00 FF 0F F1 [12:26:12]process_action print_text done [12:26:12]requested_data is exist [12:26:12]produce_requested_data [12:26:12]requested_item fm.sn is exist - process it [12:26:12]wFMCommunicate request_size=4 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 11 00 00 [12:26:12]Write to MH i2c: E2 08 00 30 AD 80 11 00 00 00 00 00 00 57 [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 17 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 17 00 30 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B3 [12:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:26:12]wFMCommunicate OK [12:26:12]requested_item fd.num is exist - process it [12:26:12]SAM_PROTO_GetFieldsCounters [12:26:12]wFMCommunicate request_size=4 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 13 00 00 [12:26:12]Write to MH i2c: E2 08 00 31 AD 80 13 00 00 00 00 00 00 5A [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 62 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 62 00 31 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 06 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:26:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 06 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:12]wFMCommunicate OK [12:26:12]SAM_PROTO_GetFieldsCounters done [12:26:12]requested_item shift.num is exist - process it [12:26:12]requested_item shift.opened is exist - process it [12:26:12]req_shift_opened [12:26:12]FM_GetShiftState [12:26:12]SAM_PROTO_GetShiftState [12:26:12]wFMCommunicate request_size=4 [12:26:12]MH_SAM_APDU [12:26:12]CAPDU: 80 13 01 00 [12:26:12]Write to MH i2c: E2 08 00 32 AD 80 13 01 00 00 00 00 00 5C [12:26:12]Write i2c OK [12:26:12]MH_I2C_Read... [12:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:12]Read from MH i2c: E2 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 0E 00 [12:26:12]MH_I2C_Read... [12:26:12]Read from MH i2c: E2 0E 00 32 AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 95 [12:26:12]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:26:12]wFMCommunicate OK [12:26:12]SAM_PROTO_GetShiftState done [12:26:12]FM_GetShiftState done [12:26:12]req_shift_opened done [12:26:12]requested_item shift.open_date is exist - process it [12:26:12]req_shift_open_date [12:26:12]req_shift_open_date done [12:26:12]produce_requested_data done [12:26:12]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69894,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:26:12]process_action_free print_text [12:26:12]json_value_free [12:26:12]json_value_free done [12:26:12]process_json_proto returns [12:26:12]Send response to host [12:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69894,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:26:12]free response buf [12:26:12]execute_script done [12:26:12]execute_script returns [12:26:12]free content buf [12:26:12]Sock 7.Close socket [12:26:12]Sock 7.Thread stoped [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:06]accept exits with 9 [12:27:06]New connection [12:27:06]New thread 3066858852 created [12:27:06]Thread 3067002212 joined [12:27:06]Waiting for new connection... [12:27:06] Sock 9.Parse request [12:27:06]Sock 9.Check first char [12:27:06]Sock 9.First char is OK [12:27:06]request: POST /json_proto HTTP/1.0 [12:27:06]Method: POST [12:27:06]URL: /json_proto [12:27:06]Method is POST - this is cgi request [12:27:06]url: /json_proto [12:27:06]query_string will be loaded in cgi processing [12:27:06]execute_cgi json_proto POST (null) [12:27:06]execute_cgi path=json_proto method=POST [12:27:06]POST find Content-Length [12:27:06]Host: 172.17.49.132:8080 [12:27:06]Content-Length: 655 [12:27:06]Content-Type: application/json [12:27:06] [12:27:06]POST finish read [12:27:06]Found Content-Length = 655 [12:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137125", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:06]execute_script... [12:27: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 : (3)137125", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:06]POST & json_proto [12:27:06]process_json_proto [12:27:06]json parsed OK: [12:27:06]protocol is kg_v1.0 [12:27:06]action value=close_receipt [12:27:06]process_action close_receipt [12:27:06]cmd_close_receipt [12:27:06]MH_GetDate [12:27:06]Write to MH i2c: F0 00 00 33 AD CF [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: F0 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: F0 09 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: F0 09 00 33 AD 00 2C 7F AB 66 E7 4B C0 64 EA [12:27:06]GetLastDocTimeStamp 1722515028 [12:27:06]current date 1722515244 [12:27:06]FM_GetShiftState [12:27:06]SAM_PROTO_GetShiftState [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 13 01 00 [12:27:06]Write to MH i2c: E2 08 00 34 AD 80 13 01 00 00 00 00 00 5E [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 0E 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 0E 00 34 AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 97 [12:27:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:27:06]wFMCommunicate OK [12:27:06]SAM_PROTO_GetShiftState done [12:27:06]FM_GetShiftState done [12:27:06]opened in 1722472772 [12:27:06]opened+sec_in_day 1722559172 [12:27:06]quantity*price = 7000 [12:27:06]sum+1 = 7001 [12:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 58 01.08.2024 12:27 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69895 ФПД: 183807135943910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T122724&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69895&fm=183807135943910&tin=02508201610067®Number=0000000000092638&sum=7000 0 [12:27:07]StoreToDocumentArchive [12:27:07]shift 433 fd 69895 [12:27:07]save to /storage/0433/doc_00069895 [12:27:07]save last doc name /storage/0433/doc_00069895 to /storage/kkm_last_doc_name [12:27:07]save OK [12:27:07]Clear old archive folders... [12:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=281 [12:27:07]tlvbuf is 01472370 [12:27:07]SAM_PROTO_ClearQueue [12:27:07]wFMCommunicate request_size=4 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 09 00 00 [12:27:07]Write to MH i2c: E2 08 00 41 AD 80 09 00 00 00 00 00 00 60 [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:07]Read from MH i2c: E2 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 41 AD 00 90 00 62 [12:27:07]RAPDU: 90 00 [12:27:07]wFMCommunicate OK [12:27:07]SAM_PROTO_ClearQueue done [12:27:07]KKMCreateOFDPacket [12:27:07]OFDProtocolAddRootSTLVToBuf [12:27:07]FM_MakeSignedData [12:27:07]FM_MakeSignedData [12:27:07]SAM_PROTO_SignData [12:27:07]wFMCommunicate request_size=4 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 0D 01 02 [12:27:07]Write to MH i2c: E2 08 00 42 AD 80 0D 01 02 00 00 00 00 68 [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:07]Read from MH i2c: E2 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 42 AD 00 90 00 63 [12:27:07]RAPDU: 90 00 [12:27:07]wFMCommunicate OK [12:27:07]wFMCommunicate request_size=255 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 2C 7F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 [12:27:07]Write to MH i2c: E2 02 01 43 AD 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 2C 7F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 00 9C [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:08]OFD Sender: No OFD packet to send [12:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 43 AD 00 90 00 64 [12:27:08]RAPDU: 90 00 [12:27:08]wFMCommunicate OK [12:27:08]wFMCommunicate request_size=40 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 07 11 01 00 35 04 06 00 A7 2B EF 0B 8C E6 [12:27:08]Write to MH i2c: E2 2B 00 44 AD 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 07 11 01 00 35 04 06 00 A7 2B EF 0B 8C E6 00 00 88 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 44 AD 00 90 00 65 [12:27:08]RAPDU: 90 00 [12:27:08]wFMCommunicate OK [12:27:08]wFMCommunicate request_size=4 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 0D 03 02 [12:27:08]Write to MH i2c: E2 08 00 45 AD 80 0D 03 02 00 00 00 00 6D [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 0B 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 0B 00 45 AD 00 49 19 D0 F7 77 5A CC A7 90 00 DB [12:27:08]RAPDU: 49 19 D0 F7 77 5A CC A7 90 00 [12:27:08]wFMCommunicate OK [12:27:08]SAM_PROTO_SignData done [12:27:08]FM_MakeSignedData done [12:27:08]CreateOFDProtocolMessage [12:27:08]wFMCommunicate request_size=4 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 11 00 00 [12:27:08]Write to MH i2c: E2 08 00 46 AD 80 11 00 00 00 00 00 00 6D [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 17 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 17 00 46 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C9 [12:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:27:08]wFMCommunicate OK [12:27:08]CreateOFDProtocolMessage done [12:27:08]OFDSenderStorePacket 69895 [12:27:08]StoreOFDPacket docnum=69895 [12:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2D 01 00 00 58 FD 25 01 18 9E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 2C 7F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 07 11 01 00 35 04 06 00 A7 2B EF 0B 8C E6 49 19 D0 F7 77 5A CC A7 [12:27:08]CheckFolder [12:27:08]dirname=/storage/ofd_packets [12:27:08]CheckFolder done [12:27:08]ProducePacketName [12:27:08]name=ofd_packets/00069895 [12:27:08]NVStorageSaveData ofd_packets/00069895 [12:27:08]File name is /storage/ofd_packets/00069895 [12:27:08]Write 331 bytes [12:27:08]NVStorageSaveData done [12:27:08]OFDSenderStorePacket done [12:27:08]KKMCreateOFDPacket done [12:27:08]NVStorageSaveData kkm_last_timestamp [12:27:08]File name is /storage/kkm_last_timestamp [12:27:08]Write 4 bytes [12:27:08]NVStorageSaveData done [12:27:08]ExternCall_PrintAddStr [12:27:08]wPrintStart [12:27:08]Write to MH i2c: 01 00 00 47 AD F4 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 47 AD 00 00 00 00 00 FF 0F 09 [12:27:08]RasterBufferAndPrint [12:27:08]line Счет N : (3)137125 [12:27:08]line ИНН: 02508201610067 [12:27:08]line Контрольно-Кассовый Чек [12:27:08]line ПРОДАЖА [12:27:08]line Товар: 4607065000868 [12:27:08]line Шок M&M`s с шоколадом 45г [12:27:08]line 1.000 * 70.00 [12:27:08]line = 70.00 [12:27:08]line НДС 12% НСП 1% [12:27:08]line > о реализуемом товаре [12:27:08]line ИТОГО: 70.00 [12:27:08]line НСП 1% : 0.62 [12:27:08]line НДС 12% : 7.43 [12:27:08]line Наличными: 70.00 [12:27:08]line Безнал.: 0.00 [12:27:08]line Место: АЗС № 125 "Партнер Нефть" [12:27:08]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:27:08]line СНО: Общий режим [12:27:08]line Чек 58 01.08.2024 12:27 [12:27:08]line Смена: 433 ФФД: 1.0 [12:27:08]line ЗНМ: 0300000049 [12:27:08]line РНМ: 0000000000092638 [12:27:08]line Версия ККМ: 001 [12:27:08]line ФМ: 0000000000874949 [12:27:08]line ФД: 69895 [12:27:08]line ФПД: 183807135943910 [12:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T122724&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69895&fm=183807135943910&tin=02508201610067®Number=0000000000092638&sum=7000 [12:27:08]OFD Sender: Processing packet 69895 [packets to send 19, broken 18] [12:27:08]ProducePacketName [12:27:08]name=ofd_packets/00069895 [12:27:08]OFD Sender: To server: pG, [12:27:08]CommunicateWithHost lk.salyk.kg:30040 [12:27:08]ConnectInit lk.salyk.kg [12:27:08]line 0 [12:27:08]written 0, free lines is 4095 [12:27:08]Connected sock=10 [12:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2D 01 00 00 58 FD 25 01 18 9E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 2C 7F AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 07 11 01 00 35 04 06 00 A7 2B EF 0B 8C E6 49 19 D0 F7 77 5A CC A7 [12:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 20 73 47 00 95 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 07 11 01 00 F4 03 04 00 8E 25 AB 66 B6 04 01 00 00 C1 71 D5 2F 6D 71 F2 34 [12:27:09]CommunicateWithHost err = 0 [12:27:09]CheckOFDResponse [12:27:09]1017 (14) - 77093643461234 [12:27:09]1041 (16) - 0000000000874949 [12:27:09]1040 (4) - 69895 [12:27:09]1012 (4) - 01.08.2024 06:05 [12:27:09]1206 (1) - 0 [12:27:09]OFD Sender: Remove packet 69895 [12:27:09]ProducePacketName [12:27:09]name=ofd_packets/00069895 [12:27:09]NVStorageDeleteData [12:27:09]Write to MH i2c: 01 00 00 6F AD 1C [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 6F AD 00 00 00 00 00 2F 0D 5F [12:27:09]RasterBufferAndPrint [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]written 0, free lines is 3384 [12:27:09]MH_Cut [12:27:09]Write to MH i2c: D1 01 00 76 AD 01 F5 [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 01 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 01 00 76 AD 00 F4 [12:27:09]Write to MH i2c: 01 00 00 77 AD 24 [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]OFD Sender: No OFD packet to send [12:27:09]*** Cut start [12:27:09]*** Partial cut [12:27:09]*** CUTSNS_PIN = 1 [12:27:09]*** CUTSNS_PIN = 0 [12:27:09]*** Brake cut motor [12:27:10]Read from MH i2c: 01 [12:27:10]MH_I2C_Read... [12:27:10]*** Stop cut motor [12:27:10]*** Cut end [12:27:10]Read from MH i2c: 01 07 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: 01 07 00 77 AD 00 00 00 00 00 FF 0F 39 [12:27:10]process_action close_receipt done [12:27:10]requested_data is exist [12:27:10]produce_requested_data [12:27:10]requested_item fm.sn is exist - process it [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 11 00 00 [12:27:10]Write to MH i2c: E2 08 00 78 AD 80 11 00 00 00 00 00 00 9F [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 17 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 17 00 78 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FB [12:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:27:10]wFMCommunicate OK [12:27:10]requested_item fd.num is exist - process it [12:27:10]SAM_PROTO_GetFieldsCounters [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 13 00 00 [12:27:10]Write to MH i2c: E2 08 00 79 AD 80 13 00 00 00 00 00 00 A2 [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 62 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 62 00 79 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 07 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [12:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 07 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:10]wFMCommunicate OK [12:27:10]SAM_PROTO_GetFieldsCounters done [12:27:10]requested_item shift.num is exist - process it [12:27:10]requested_item shift.opened is exist - process it [12:27:10]req_shift_opened [12:27:10]FM_GetShiftState [12:27:10]SAM_PROTO_GetShiftState [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 13 01 00 [12:27:10]Write to MH i2c: E2 08 00 7A AD 80 13 01 00 00 00 00 00 A4 [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 0E 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 0E 00 7A AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 DD [12:27:10]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:27:10]wFMCommunicate OK [12:27:10]SAM_PROTO_GetShiftState done [12:27:10]FM_GetShiftState done [12:27:10]req_shift_opened done [12:27:10]requested_item shift.open_date is exist - process it [12:27:10]req_shift_open_date [12:27:10]req_shift_open_date done [12:27:10]produce_requested_data done [12:27:10]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69895,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:27:10]process_action_free close_receipt [12:27:10]json_value_free [12:27:10]json_value_free done [12:27:10]process_json_proto returns [12:27:10]Send response to host [12:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69895,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:27:10]free response buf [12:27:10]execute_script done [12:27:10]execute_script returns [12:27:10]free content buf [12:27:10]Sock 9.Close socket [12:27:10]Sock 9.Thread stoped [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]accept exits with 7 [12:27:59]New connection [12:27:59]New thread 3067002212 created [12:27:59]Thread 3066858852 joined [12:27:59]Waiting for new connection... [12:27:59] Sock 7.Parse request [12:27:59]Sock 7.Check first char [12:27:59]Sock 7.First char is OK [12:27:59]request: POST /json_proto HTTP/1.0 [12:27:59]Method: POST [12:27:59]URL: /json_proto [12:27:59]Method is POST - this is cgi request [12:27:59]url: /json_proto [12:27:59]query_string will be loaded in cgi processing [12:27:59]execute_cgi json_proto POST (null) [12:27:59]execute_cgi path=json_proto method=POST [12:27:59]POST find Content-Length [12:27:59]Host: 172.17.49.132:8080 [12:27:59]Content-Length: 1251 [12:27:59]Content-Type: application/json [12:27:59] [12:27:59]POST finish read [12:27:59]Found Content-Length = 1251 [12:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874733\u000A01.08.2024 11:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918673;674;675;676;677;678;679;680;681;682\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:59]execute_script... [12:27:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874733\u000A01.08.2024 11:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918673;674;675;676;677;678;679;680;681;682\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:59]POST & json_proto [12:27:59]process_json_proto [12:27:59]json parsed OK: [12:27:59]protocol is kg_v1.0 [12:27:59]action value=print_text [12:27:59]process_action print_text [12:27:59]cmd_print_text [12:27:59]ExternCall_PrintAddStr [12:27:59]wPrintStart [12:27:59]Write to MH i2c: 01 00 00 7B AD 28 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 7B AD 00 00 00 00 00 FF 0F 3D [12:27:59]RasterBufferAndPrint [12:27:59]line *****ТОВАРНЫЙ ЧЕК***** [12:27:59]line АЗС 125 [12:27:59]line Партнер нефть [12:27:59]line 02508201610067 [12:27:59]line Кассир : Мадаминова Б. [12:27:59]line Счет N : (1)874733 [12:27:59]line 01.08.2024 11:49 [12:27:59]line ПРОДАЖА [12:27:59]line ТРК (МРК, ГНК): 62 [12:27:59]line Вид ГСМ : 2710124130 [12:27:59]line Аи-92-К-5 [12:27:59]line 100.000 x 67.80 [12:27:59]line ИТОГ: 6780.00 [12:27:59]line Тип оплаты: Талоны: Топливные Талоны [12:27:59]line 3918673;674;675;676;677;678;679;680;681;682 [12:27:59]line ______________________ [12:27:59]line (подпись) [12:27:59]written 0, free lines is 4095 [12:27:59]OFD Sender: No OFD packet to send [12:27:59]Write to MH i2c: 01 00 00 90 AD 3D [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 90 AD 00 00 00 00 00 0C 0E 5E [12:27:59]RasterBufferAndPrint [12:27:59]line [12:27:59]line [12:27:59]line [12:27:59]line [12:27:59]line [12:27:59]written 0, free lines is 3600 [12:27:59]MH_Cut [12:27:59]Write to MH i2c: D1 01 00 97 AD 01 16 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: D1 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: D1 01 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: D1 01 00 97 AD 00 15 [12:27:59]Write to MH i2c: 01 00 00 98 AD 45 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:28:00]*** Cut start [12:28:00]*** Partial cut [12:28:00]*** CUTSNS_PIN = 1 [12:28:00]*** CUTSNS_PIN = 0 [12:28:00]*** Brake cut motor [12:28:00]Read from MH i2c: 01 [12:28:00]MH_I2C_Read... [12:28:00]*** Stop cut motor [12:28:00]*** Cut end [12:28:00]Read from MH i2c: 01 07 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: 01 07 00 98 AD 00 00 00 00 00 FF 0F 5A [12:28:00]process_action print_text done [12:28:00]requested_data is exist [12:28:00]produce_requested_data [12:28:00]requested_item fm.sn is exist - process it [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 11 00 00 [12:28:00]Write to MH i2c: E2 08 00 99 AD 80 11 00 00 00 00 00 00 C0 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 17 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 17 00 99 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1C [12:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:28:00]wFMCommunicate OK [12:28:00]requested_item fd.num is exist - process it [12:28:00]SAM_PROTO_GetFieldsCounters [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 13 00 00 [12:28:00]Write to MH i2c: E2 08 00 9A AD 80 13 00 00 00 00 00 00 C3 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 62 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 62 00 9A AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 07 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 07 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:00]wFMCommunicate OK [12:28:00]SAM_PROTO_GetFieldsCounters done [12:28:00]requested_item shift.num is exist - process it [12:28:00]requested_item shift.opened is exist - process it [12:28:00]req_shift_opened [12:28:00]FM_GetShiftState [12:28:00]SAM_PROTO_GetShiftState [12:28:00]wFMCommunicate request_size=4 [12:28:00]MH_SAM_APDU [12:28:00]CAPDU: 80 13 01 00 [12:28:00]Write to MH i2c: E2 08 00 9B AD 80 13 01 00 00 00 00 00 C5 [12:28:00]Write i2c OK [12:28:00]MH_I2C_Read... [12:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:00]Read from MH i2c: E2 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 0E 00 [12:28:00]MH_I2C_Read... [12:28:00]Read from MH i2c: E2 0E 00 9B AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 FE [12:28:00]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:28:00]wFMCommunicate OK [12:28:00]SAM_PROTO_GetShiftState done [12:28:00]FM_GetShiftState done [12:28:00]req_shift_opened done [12:28:00]requested_item shift.open_date is exist - process it [12:28:00]req_shift_open_date [12:28:00]req_shift_open_date done [12:28:00]produce_requested_data done [12:28:00]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69895,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:28:00]process_action_free print_text [12:28:00]json_value_free [12:28:00]json_value_free done [12:28:00]process_json_proto returns [12:28:00]Send response to host [12:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69895,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:28:00]free response buf [12:28:00]execute_script done [12:28:00]execute_script returns [12:28:00]free content buf [12:28:00]Sock 7.Close socket [12:28:00]Sock 7.Thread stoped [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:57]accept exits with 9 [12:28:57]New connection [12:28:57]New thread 3066858852 created [12:28:57]Thread 3067002212 joined [12:28:57]Waiting for new connection... [12:28:57] Sock 9.Parse request [12:28:57]Sock 9.Check first char [12:28:57]Sock 9.First char is OK [12:28:57]request: POST /json_proto HTTP/1.0 [12:28:57]Method: POST [12:28:57]URL: /json_proto [12:28:57]Method is POST - this is cgi request [12:28:57]url: /json_proto [12:28:57]query_string will be loaded in cgi processing [12:28:57]execute_cgi json_proto POST (null) [12:28:57]execute_cgi path=json_proto method=POST [12:28:57]POST find Content-Length [12:28:57]Host: 172.17.49.132:8080 [12:28:57]Content-Length: 1221 [12:28:57]Content-Type: application/json [12:28:57] [12:28:57]POST finish read [12:28:57]Found Content-Length = 1221 [12:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874740\u000A01.08.2024 11:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 12.400 x 67.80\u000A\u0418\u0422\u041E\u0413: 840.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3956603;602;601\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:57]execute_script... [12:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874740\u000A01.08.2024 11:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 12.400 x 67.80\u000A\u0418\u0422\u041E\u0413: 840.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3956603;602;601\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:57]POST & json_proto [12:28:57]process_json_proto [12:28:57]json parsed OK: [12:28:57]protocol is kg_v1.0 [12:28:57]action value=print_text [12:28:57]process_action print_text [12:28:57]cmd_print_text [12:28:57]ExternCall_PrintAddStr [12:28:57]wPrintStart [12:28:57]Write to MH i2c: 01 00 00 9C AD 49 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 9C AD 00 00 00 00 00 FF 0F 5E [12:28:57]RasterBufferAndPrint [12:28:57]line *****ТОВАРНЫЙ ЧЕК***** [12:28:57]line АЗС 125 [12:28:57]line Партнер нефть [12:28:57]line 02508201610067 [12:28:57]line Кассир : Мадаминова Б. [12:28:57]line Счет N : (1)874740 [12:28:57]line 01.08.2024 11:50 [12:28:57]line ПРОДАЖА [12:28:57]line ТРК (МРК, ГНК): 32 [12:28:57]line Вид ГСМ : 2710124130 [12:28:57]line Аи-92-К-5 [12:28:57]line 12.400 x 67.80 [12:28:57]line ИТОГ: 840.72 [12:28:57]line Тип оплаты: Талоны: Топливные Талоны [12:28:57]line 3956603;602;601 [12:28:57]line ______________________ [12:28:57]line (подпись) [12:28:57]written 0, free lines is 4095 [12:28:57]Write to MH i2c: 01 00 00 B0 AD 5D [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: 01 07 00 B0 AD 00 00 00 00 00 15 0E 87 [12:28:57]RasterBufferAndPrint [12:28:57]line [12:28:57]line [12:28:57]line [12:28:57]line [12:28:57]line [12:28:57]written 0, free lines is 3607 [12:28:57]MH_Cut [12:28:57]Write to MH i2c: D1 01 00 B7 AD 01 36 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: D1 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: D1 01 00 [12:28:57]MH_I2C_Read... [12:28:57]Read from MH i2c: D1 01 00 B7 AD 00 35 [12:28:57]Write to MH i2c: 01 00 00 B8 AD 65 [12:28:57]Write i2c OK [12:28:57]MH_I2C_Read... [12:28:57]*** Cut start [12:28:57]*** Partial cut [12:28:57]*** CUTSNS_PIN = 1 [12:28:57]*** CUTSNS_PIN = 0 [12:28:58]*** Brake cut motor [12:28:58]Read from MH i2c: 01 [12:28:58]MH_I2C_Read... [12:28:58]*** Stop cut motor [12:28:58]*** Cut end [12:28:58]Read from MH i2c: 01 07 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: 01 07 00 B8 AD 00 00 00 00 00 FF 0F 7A [12:28:58]process_action print_text done [12:28:58]requested_data is exist [12:28:58]produce_requested_data [12:28:58]requested_item fm.sn is exist - process it [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 11 00 00 [12:28:58]Write to MH i2c: E2 08 00 B9 AD 80 11 00 00 00 00 00 00 E0 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 17 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 17 00 B9 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3C [12:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:28:58]wFMCommunicate OK [12:28:58]requested_item fd.num is exist - process it [12:28:58]SAM_PROTO_GetFieldsCounters [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 13 00 00 [12:28:58]Write to MH i2c: E2 08 00 BA AD 80 13 00 00 00 00 00 00 E3 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 62 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 62 00 BA AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 07 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:28:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 07 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_GetFieldsCounters done [12:28:58]requested_item shift.num is exist - process it [12:28:58]requested_item shift.opened is exist - process it [12:28:58]req_shift_opened [12:28:58]FM_GetShiftState [12:28:58]SAM_PROTO_GetShiftState [12:28:58]wFMCommunicate request_size=4 [12:28:58]MH_SAM_APDU [12:28:58]CAPDU: 80 13 01 00 [12:28:58]Write to MH i2c: E2 08 00 BB AD 80 13 01 00 00 00 00 00 E5 [12:28:58]Write i2c OK [12:28:58]MH_I2C_Read... [12:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:58]Read from MH i2c: E2 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 [12:28:58]MH_I2C_Read... [12:28:58]Read from MH i2c: E2 0E 00 BB AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1E [12:28:58]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:28:58]wFMCommunicate OK [12:28:58]SAM_PROTO_GetShiftState done [12:28:58]FM_GetShiftState done [12:28:58]req_shift_opened done [12:28:58]requested_item shift.open_date is exist - process it [12:28:58]req_shift_open_date [12:28:58]req_shift_open_date done [12:28:58]produce_requested_data done [12:28:58]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69895,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:28:58]process_action_free print_text [12:28:58]json_value_free [12:28:58]json_value_free done [12:28:58]process_json_proto returns [12:28:58]Send response to host [12:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69895,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:28:58]free response buf [12:28:58]execute_script done [12:28:58]execute_script returns [12:28:58]free content buf [12:28:58]Sock 9.Close socket [12:28:58]Sock 9.Thread stoped [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:02]accept exits with 7 [12:31:02]New connection [12:31:02]New thread 3067002212 created [12:31:02]Thread 3066858852 joined [12:31:02]Waiting for new connection... [12:31:02] Sock 7.Parse request [12:31:02]Sock 7.Check first char [12:31:02]Sock 7.First char is OK [12:31:02]request: POST /json_proto HTTP/1.0 [12:31:02]Method: POST [12:31:02]URL: /json_proto [12:31:02]Method is POST - this is cgi request [12:31:02]url: /json_proto [12:31:02]query_string will be loaded in cgi processing [12:31:02]execute_cgi json_proto POST (null) [12:31:02]execute_cgi path=json_proto method=POST [12:31:02]POST find Content-Length [12:31:02]Host: 172.17.49.132:8080 [12:31:02]Content-Length: 720 [12:31:02]Content-Type: application/json [12:31:02] [12:31:02]POST finish read [12:31:02]Found Content-Length = 720 [12:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137126", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:02]execute_script... [12: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 : (3)137126", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:02]POST & json_proto [12:31:02]process_json_proto [12:31:02]json parsed OK: [12:31:02]protocol is kg_v1.0 [12:31:02]action value=close_receipt [12:31:02]process_action close_receipt [12:31:02]cmd_close_receipt [12:31:02]MH_GetDate [12:31:02]Write to MH i2c: F0 00 00 BC AD 58 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 09 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: F0 09 00 BC AD 00 18 80 AB 66 E7 4B C0 64 60 [12:31:02]GetLastDocTimeStamp 1722515244 [12:31:02]current date 1722515480 [12:31:02]FM_GetShiftState [12:31:02]SAM_PROTO_GetShiftState [12:31:02]wFMCommunicate request_size=4 [12:31:02]MH_SAM_APDU [12:31:02]CAPDU: 80 13 01 00 [12:31:02]Write to MH i2c: E2 08 00 BD AD 80 13 01 00 00 00 00 00 E7 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:02]Read from MH i2c: E2 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: E2 0E 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: E2 0E 00 BD AD 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 20 [12:31:02]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:31:02]wFMCommunicate OK [12:31:02]SAM_PROTO_GetShiftState done [12:31:02]FM_GetShiftState done [12:31:02]opened in 1722472772 [12:31:02]opened+sec_in_day 1722559172 [12:31:02]quantity*price = 9500 [12:31:02]sum+1 = 9501 [12:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 59 01.08.2024 12:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69896 ФПД: 149676275427911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T123120&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69896&fm=149676275427911&tin=02508201610067®Number=0000000000092638&sum=9500 0 [12:31:03]StoreToDocumentArchive [12:31:03]shift 433 fd 69896 [12:31:03]save to /storage/0433/doc_00069896 [12:31:03]save last doc name /storage/0433/doc_00069896 to /storage/kkm_last_doc_name [12:31:03]save OK [12:31:03]Clear old archive folders... [12:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=307 [12:31:03]tlvbuf is 0124DD20 [12:31:03]SAM_PROTO_ClearQueue [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 09 00 00 [12:31:03]Write to MH i2c: E2 08 00 CA AD 80 09 00 00 00 00 00 00 E9 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:03]Read from MH i2c: E2 03 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 CA AD 00 90 00 EB [12:31:03]RAPDU: 90 00 [12:31:03]wFMCommunicate OK [12:31:03]SAM_PROTO_ClearQueue done [12:31:03]KKMCreateOFDPacket [12:31:03]OFDProtocolAddRootSTLVToBuf [12:31:03]FM_MakeSignedData [12:31:03]FM_MakeSignedData [12:31:03]SAM_PROTO_SignData [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 0D 01 02 [12:31:03]Write to MH i2c: E2 08 00 CB AD 80 0D 01 02 00 00 00 00 F1 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 03 00 CB AD 00 90 00 EC [12:31:03]RAPDU: 90 00 [12:31:03]wFMCommunicate OK [12:31:03]wFMCommunicate request_size=255 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 18 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 [12:31:03]Write to MH i2c: E2 02 01 CC AD 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 18 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 00 00 9E [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 CC AD 00 90 00 ED [12:31:04]RAPDU: 90 00 [12:31:04]wFMCommunicate OK [12:31:04]wFMCommunicate request_size=66 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 08 11 01 00 35 04 06 00 88 21 39 3A 6A 47 [12:31:04]Write to MH i2c: E2 45 00 CD AD 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 08 11 01 00 35 04 06 00 88 21 39 3A 6A 47 00 00 39 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 03 00 CD AD 00 90 00 EE [12:31:04]RAPDU: 90 00 [12:31:04]wFMCommunicate OK [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 0D 03 02 [12:31:04]Write to MH i2c: E2 08 00 CE AD 80 0D 03 02 00 00 00 00 F6 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 0B 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 0B 00 CE AD 00 A6 AC 4F 29 DE AE 6E 7E 90 00 39 [12:31:04]RAPDU: A6 AC 4F 29 DE AE 6E 7E 90 00 [12:31:04]wFMCommunicate OK [12:31:04]SAM_PROTO_SignData done [12:31:04]FM_MakeSignedData done [12:31:04]CreateOFDProtocolMessage [12:31:04]wFMCommunicate request_size=4 [12:31:04]MH_SAM_APDU [12:31:04]CAPDU: 80 11 00 00 [12:31:04]Write to MH i2c: E2 08 00 CF AD 80 11 00 00 00 00 00 00 F6 [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:04]Read from MH i2c: E2 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 17 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: E2 17 00 CF AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 52 [12:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:31:04]wFMCommunicate OK [12:31:04]CreateOFDProtocolMessage done [12:31:04]OFDSenderStorePacket 69896 [12:31:04]StoreOFDPacket docnum=69896 [12:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 47 01 00 00 B0 AD 3F 01 F2 DF 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 18 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 08 11 01 00 35 04 06 00 88 21 39 3A 6A 47 A6 AC 4F 29 DE AE 6E 7E [12:31:04]CheckFolder [12:31:04]dirname=/storage/ofd_packets [12:31:04]CheckFolder done [12:31:04]ProducePacketName [12:31:04]name=ofd_packets/00069896 [12:31:04]NVStorageSaveData ofd_packets/00069896 [12:31:04]File name is /storage/ofd_packets/00069896 [12:31:04]Write 357 bytes [12:31:04]NVStorageSaveData done [12:31:04]OFDSenderStorePacket done [12:31:04]KKMCreateOFDPacket done [12:31:04]NVStorageSaveData kkm_last_timestamp [12:31:04]File name is /storage/kkm_last_timestamp [12:31:04]Write 4 bytes [12:31:04]NVStorageSaveData done [12:31:04]ExternCall_PrintAddStr [12:31:04]wPrintStart [12:31:04]Write to MH i2c: 01 00 00 D0 AD 7D [12:31:04]Write i2c OK [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 [12:31:04]MH_I2C_Read... [12:31:04]Read from MH i2c: 01 07 00 D0 AD 00 00 00 00 00 FF 0F 92 [12:31:04]RasterBufferAndPrint [12:31:04]line Счет N : (3)137126 [12:31:04]line ИНН: 02508201610067 [12:31:04]line Контрольно-Кассовый Чек [12:31:04]line ПРОДАЖА [12:31:04]line Товар: 4700000481989 [12:31:04]line Напиток энерг Nitro киви-мангостин 0,45 [12:31:04]line 1.000 * 95.00 [12:31:04]line = 95.00 [12:31:04]line НДС 12% НСП 1% [12:31:04]line > о реализуемом товаре [12:31:04]line ИТОГО: 95.00 [12:31:04]line НСП 1% : 0.84 [12:31:04]line НДС 12% : 10.09 [12:31:04]line Наличными: 95.00 [12:31:04]line Безнал.: 0.00 [12:31:04]line Место: АЗС № 125 "Партнер Нефть" [12:31:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:31:04]line СНО: Общий режим [12:31:04]line Чек 59 01.08.2024 12:31 [12:31:04]line Смена: 433 ФФД: 1.0 [12:31:04]line ЗНМ: 0300000049 [12:31:04]line РНМ: 0000000000092638 [12:31:04]line Версия ККМ: 001 [12:31:04]line ФМ: 0000000000874949 [12:31:04]line ФД: 69896 [12:31:04]line ФПД: 149676275427911 [12:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T123120&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69896&fm=149676275427911&tin=02508201610067®Number=0000000000092638&sum=9500 [12:31:04]line 0 [12:31:04]OFD Sender: Processing packet 69896 [packets to send 19, broken 18] [12:31:04]ProducePacketName [12:31:04]name=ofd_packets/00069896 [12:31:04]OFD Sender: To server: pG, [12:31:04]CommunicateWithHost lk.salyk.kg:30040 [12:31:04]ConnectInit lk.salyk.kg [12:31:04]written 0, free lines is 4095 [12:31:04]Connected sock=10 [12: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 34 39 34 39 47 01 00 00 B0 AD 3F 01 F2 DF 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 18 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 08 11 01 00 35 04 06 00 88 21 39 3A 6A 47 A6 AC 4F 29 DE AE 6E 7E [12:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B5 B0 47 00 C0 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 08 11 01 00 F4 03 04 00 7A 26 AB 66 B6 04 01 00 00 A1 4C 6E 95 99 9E 45 00 [12:31:05]CommunicateWithHost err = 0 [12:31:05]CheckOFDResponse [12:31:05]1017 (14) - 77093643461234 [12:31:05]1041 (16) - 0000000000874949 [12:31:05]1040 (4) - 69896 [12:31:05]1012 (4) - 01.08.2024 06:08 [12:31:05]1206 (1) - 0 [12:31:05]OFD Sender: Remove packet 69896 [12:31:05]ProducePacketName [12:31:05]name=ofd_packets/00069896 [12:31:05]NVStorageDeleteData [12:31:05]Write to MH i2c: 01 00 00 F9 AD A6 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 07 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: 01 07 00 F9 AD 00 00 00 00 00 01 0D BB [12:31:05]RasterBufferAndPrint [12:31:05]line [12:31:05]line [12:31:05]line [12:31:05]line [12:31:05]line [12:31:05]written 0, free lines is 3335 [12:31:05]MH_Cut [12:31:05]Write to MH i2c: D1 01 00 00 AE 01 80 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: D1 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: D1 01 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: D1 01 00 00 AE 00 7F [12:31:05]Write to MH i2c: 01 00 00 01 AE AF [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]OFD Sender: No OFD packet to send [12:31:05]*** Cut start [12:31:05]*** Partial cut [12:31:05]*** CUTSNS_PIN = 1 [12:31:05]*** CUTSNS_PIN = 0 [12:31:06]*** Brake cut motor [12:31:06]Read from MH i2c: 01 [12:31:06]MH_I2C_Read... [12:31:06]*** Stop cut motor [12:31:06]*** Cut end [12:31:06]Read from MH i2c: 01 07 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: 01 07 00 01 AE 00 00 00 00 00 FF 0F C4 [12:31:06]process_action close_receipt done [12:31:06]requested_data is exist [12:31:06]produce_requested_data [12:31:06]requested_item fm.sn is exist - process it [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 11 00 00 [12:31:06]Write to MH i2c: E2 08 00 02 AE 80 11 00 00 00 00 00 00 2A [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 17 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 17 00 02 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 86 [12:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:31:06]wFMCommunicate OK [12:31:06]requested_item fd.num is exist - process it [12:31:06]SAM_PROTO_GetFieldsCounters [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 13 00 00 [12:31:06]Write to MH i2c: E2 08 00 03 AE 80 13 00 00 00 00 00 00 2D [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 62 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 62 00 03 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 08 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 08 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:06]wFMCommunicate OK [12:31:06]SAM_PROTO_GetFieldsCounters done [12:31:06]requested_item shift.num is exist - process it [12:31:06]requested_item shift.opened is exist - process it [12:31:06]req_shift_opened [12:31:06]FM_GetShiftState [12:31:06]SAM_PROTO_GetShiftState [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 13 01 00 [12:31:06]Write to MH i2c: E2 08 00 04 AE 80 13 01 00 00 00 00 00 2F [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:06]Read from MH i2c: E2 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 0E 00 [12:31:06]MH_I2C_Read... [12:31:06]Read from MH i2c: E2 0E 00 04 AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 68 [12:31:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:31:06]wFMCommunicate OK [12:31:06]SAM_PROTO_GetShiftState done [12:31:06]FM_GetShiftState done [12:31:06]req_shift_opened done [12:31:06]requested_item shift.open_date is exist - process it [12:31:06]req_shift_open_date [12:31:06]req_shift_open_date done [12:31:06]produce_requested_data done [12:31:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69896,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:31:06]process_action_free close_receipt [12:31:06]json_value_free [12:31:06]json_value_free done [12:31:06]process_json_proto returns [12:31:06]Send response to host [12:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69896,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:31:06]free response buf [12:31:06]execute_script done [12:31:06]execute_script returns [12:31:06]free content buf [12:31:06]Sock 7.Close socket [12:31:06]Sock 7.Thread stoped [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:29]accept exits with 9 [12:31:29]New connection [12:31:29]New thread 3066858852 created [12:31:29]Thread 3067002212 joined [12:31:29]Waiting for new connection... [12:31:29] Sock 9.Parse request [12:31:29]Sock 9.Check first char [12:31:29]Sock 9.First char is OK [12:31:29]request: POST /json_proto HTTP/1.0 [12:31:29]Method: POST [12:31:29]URL: /json_proto [12:31:29]Method is POST - this is cgi request [12:31:29]url: /json_proto [12:31:29]query_string will be loaded in cgi processing [12:31:29]execute_cgi json_proto POST (null) [12:31:29]execute_cgi path=json_proto method=POST [12:31:29]POST find Content-Length [12:31:29]Host: 172.17.49.132:8080 [12:31:29]Content-Length: 654 [12:31:29]Content-Type: application/json [12:31:29] [12:31:29]POST finish read [12:31:29]Found Content-Length = 654 [12:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137127", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:29]execute_script... [12:31: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 : (3)137127", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:29]POST & json_proto [12:31:29]process_json_proto [12:31:29]json parsed OK: [12:31:29]protocol is kg_v1.0 [12:31:29]action value=close_receipt [12:31:29]process_action close_receipt [12:31:29]cmd_close_receipt [12:31:29]MH_GetDate [12:31:29]Write to MH i2c: F0 00 00 05 AE A2 [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: F0 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: F0 09 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: F0 09 00 05 AE 00 33 80 AB 66 E7 4B C0 64 C5 [12:31:29]GetLastDocTimeStamp 1722515480 [12:31:29]current date 1722515507 [12:31:29]FM_GetShiftState [12:31:29]SAM_PROTO_GetShiftState [12:31:29]wFMCommunicate request_size=4 [12:31:29]MH_SAM_APDU [12:31:29]CAPDU: 80 13 01 00 [12:31:29]Write to MH i2c: E2 08 00 06 AE 80 13 01 00 00 00 00 00 31 [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:29]Read from MH i2c: E2 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 0E 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: E2 0E 00 06 AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 6A [12:31:29]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:31:29]wFMCommunicate OK [12:31:29]SAM_PROTO_GetShiftState done [12:31:29]FM_GetShiftState done [12:31:29]opened in 1722472772 [12:31:29]opened+sec_in_day 1722559172 [12:31:29]quantity*price = 4500 [12:31:29]sum+1 = 4501 [12:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 60 01.08.2024 12:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69897 ФПД: 136320564636612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T123147&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69897&fm=136320564636612&tin=02508201610067®Number=0000000000092638&sum=4500 0 [12:31:30]StoreToDocumentArchive [12:31:30]shift 433 fd 69897 [12:31:30]save to /storage/0433/doc_00069897 [12:31:30]save last doc name /storage/0433/doc_00069897 to /storage/kkm_last_doc_name [12:31:30]save OK [12:31:30]Clear old archive folders... [12:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=277 [12:31:30]tlvbuf is 014F6A40 [12:31:30]SAM_PROTO_ClearQueue [12:31:30]wFMCommunicate request_size=4 [12:31:30]MH_SAM_APDU [12:31:30]CAPDU: 80 09 00 00 [12:31:30]Write to MH i2c: E2 08 00 13 AE 80 09 00 00 00 00 00 00 33 [12:31:30]Write i2c OK [12:31:30]MH_I2C_Read... [12:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:30]Read from MH i2c: E2 [12:31:30]MH_I2C_Read... [12:31:30]Read from MH i2c: E2 03 00 [12:31:30]MH_I2C_Read... [12:31:30]Read from MH i2c: E2 03 00 13 AE 00 90 00 35 [12:31:30]RAPDU: 90 00 [12:31:30]wFMCommunicate OK [12:31:30]SAM_PROTO_ClearQueue done [12:31:30]KKMCreateOFDPacket [12:31:30]OFDProtocolAddRootSTLVToBuf [12:31:30]FM_MakeSignedData [12:31:30]FM_MakeSignedData [12:31:30]SAM_PROTO_SignData [12:31:30]wFMCommunicate request_size=4 [12:31:30]MH_SAM_APDU [12:31:30]CAPDU: 80 0D 01 02 [12:31:30]Write to MH i2c: E2 08 00 14 AE 80 0D 01 02 00 00 00 00 3B [12:31:30]Write i2c OK [12:31:30]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 03 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 03 00 14 AE 00 90 00 36 [12:31:31]RAPDU: 90 00 [12:31:31]wFMCommunicate OK [12:31:31]wFMCommunicate request_size=255 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 [12:31:31]Write to MH i2c: E2 02 01 15 AE 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 00 00 84 [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 03 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 03 00 15 AE 00 90 00 37 [12:31:31]RAPDU: 90 00 [12:31:31]wFMCommunicate OK [12:31:31]wFMCommunicate request_size=36 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 09 11 01 00 35 04 06 00 7B FB 9A D4 AB C4 [12:31:31]Write to MH i2c: E2 27 00 16 AE 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 09 11 01 00 35 04 06 00 7B FB 9A D4 AB C4 00 00 DA [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 03 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 03 00 16 AE 00 90 00 38 [12:31:31]RAPDU: 90 00 [12:31:31]wFMCommunicate OK [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 0D 03 02 [12:31:31]Write to MH i2c: E2 08 00 17 AE 80 0D 03 02 00 00 00 00 40 [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 0B 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 0B 00 17 AE 00 8C AE 59 DA ED 19 5E 83 90 00 95 [12:31:31]RAPDU: 8C AE 59 DA ED 19 5E 83 90 00 [12:31:31]wFMCommunicate OK [12:31:31]SAM_PROTO_SignData done [12:31:31]FM_MakeSignedData done [12:31:31]CreateOFDProtocolMessage [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 11 00 00 [12:31:31]Write to MH i2c: E2 08 00 18 AE 80 11 00 00 00 00 00 00 40 [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 17 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 17 00 18 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9C [12:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:31:31]wFMCommunicate OK [12:31:31]CreateOFDProtocolMessage done [12:31:31]OFDSenderStorePacket 69897 [12:31:31]StoreOFDPacket docnum=69897 [12:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 29 01 00 00 5B DB 21 01 F3 A4 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 09 11 01 00 35 04 06 00 7B FB 9A D4 AB C4 8C AE 59 DA ED 19 5E 83 [12:31:31]CheckFolder [12:31:31]dirname=/storage/ofd_packets [12:31:31]CheckFolder done [12:31:31]ProducePacketName [12:31:31]name=ofd_packets/00069897 [12:31:31]NVStorageSaveData ofd_packets/00069897 [12:31:31]File name is /storage/ofd_packets/00069897 [12:31:31]Write 327 bytes [12:31:31]NVStorageSaveData done [12:31:31]OFDSenderStorePacket done [12:31:31]KKMCreateOFDPacket done [12:31:31]NVStorageSaveData kkm_last_timestamp [12:31:31]File name is /storage/kkm_last_timestamp [12:31:31]Write 4 bytes [12:31:31]NVStorageSaveData done [12:31:31]ExternCall_PrintAddStr [12:31:31]wPrintStart [12:31:31]Write to MH i2c: 01 00 00 19 AE C7 [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: 01 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: 01 07 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: 01 07 00 19 AE 00 00 00 00 00 FF 0F DC [12:31:31]RasterBufferAndPrint [12:31:31]line Счет N : (3)137127 [12:31:31]line ИНН: 02508201610067 [12:31:31]line Контрольно-Кассовый Чек [12:31:31]line ПРОДАЖА [12:31:31]line Товар: 42203100 [12:31:31]line Жев Orbit банан-клубника [12:31:31]line 1.000 * 45.00 [12:31:31]line = 45.00 [12:31:31]line НДС 12% НСП 1% [12:31:31]line > о реализуемом товаре [12:31:31]line ИТОГО: 45.00 [12:31:31]line НСП 1% : 0.40 [12:31:31]line НДС 12% : 4.78 [12:31:31]line Наличными: 45.00 [12:31:31]line Безнал.: 0.00 [12:31:31]line Место: АЗС № 125 "Партнер Нефть" [12:31:31]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:31:31]line СНО: Общий режим [12:31:31]line Чек 60 01.08.2024 12:31 [12:31:31]line Смена: 433 ФФД: 1.0 [12:31:31]line ЗНМ: 0300000049 [12:31:31]line РНМ: 0000000000092638 [12:31:31]line Версия ККМ: 001 [12:31:31]line ФМ: 0000000000874949 [12:31:31]line ФД: 69897 [12:31:31]line ФПД: 136320564636612 [12:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T123147&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69897&fm=136320564636612&tin=02508201610067®Number=0000000000092638&sum=4500 [12:31:31]OFD Sender: Processing packet 69897 [packets to send 19, broken 18] [12:31:31]ProducePacketName [12:31:31]name=ofd_packets/00069897 [12:31:31]OFD Sender: To server: pG, [12:31:31]CommunicateWithHost lk.salyk.kg:30040 [12:31:31]ConnectInit lk.salyk.kg [12:31:31]line 0 [12:31:31]written 0, free lines is 4095 [12:31:31]Connected sock=7 [12:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 29 01 00 00 5B DB 21 01 F3 A4 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 33 80 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 09 11 01 00 35 04 06 00 7B FB 9A D4 AB C4 8C AE 59 DA ED 19 5E 83 [12:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C8 3E 47 00 A2 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 09 11 01 00 F4 03 04 00 95 26 AB 66 B6 04 01 00 00 BE 38 C2 D7 76 09 06 05 [12:31:32]CommunicateWithHost err = 0 [12:31:32]CheckOFDResponse [12:31:32]1017 (14) - 77093643461234 [12:31:32]1041 (16) - 0000000000874949 [12:31:32]1040 (4) - 69897 [12:31:32]1012 (4) - 01.08.2024 06:09 [12:31:32]1206 (1) - 0 [12:31:32]OFD Sender: Remove packet 69897 [12:31:32]ProducePacketName [12:31:32]name=ofd_packets/00069897 [12:31:32]NVStorageDeleteData [12:31:32]Write to MH i2c: 01 00 00 41 AE EF [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: 01 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: 01 07 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: 01 07 00 41 AE 00 00 00 00 00 2C 0D 2F [12:31:32]RasterBufferAndPrint [12:31:32]line [12:31:32]line [12:31:32]line [12:31:32]line [12:31:32]line [12:31:32]written 0, free lines is 3378 [12:31:32]MH_Cut [12:31:32]Write to MH i2c: D1 01 00 48 AE 01 C8 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: D1 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: D1 01 00 [12:31:32]MH_I2C_Read... [12:31:32]Read from MH i2c: D1 01 00 48 AE 00 C7 [12:31:32]Write to MH i2c: 01 00 00 49 AE F7 [12:31:32]Write i2c OK [12:31:32]MH_I2C_Read... [12:31:32]OFD Sender: No OFD packet to send [12:31:32]*** Cut start [12:31:32]*** Partial cut [12:31:32]*** CUTSNS_PIN = 1 [12:31:32]*** CUTSNS_PIN = 0 [12:31:33]*** Brake cut motor [12:31:33]Read from MH i2c: 01 [12:31:33]MH_I2C_Read... [12:31:33]*** Stop cut motor [12:31:33]*** Cut end [12:31:33]Read from MH i2c: 01 07 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: 01 07 00 49 AE 00 00 00 00 00 FF 0F 0C [12:31:33]process_action close_receipt done [12:31:33]requested_data is exist [12:31:33]produce_requested_data [12:31:33]requested_item fm.sn is exist - process it [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 11 00 00 [12:31:33]Write to MH i2c: E2 08 00 4A AE 80 11 00 00 00 00 00 00 72 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 17 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 17 00 4A AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CE [12:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:31:33]wFMCommunicate OK [12:31:33]requested_item fd.num is exist - process it [12:31:33]SAM_PROTO_GetFieldsCounters [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 13 00 00 [12:31:33]Write to MH i2c: E2 08 00 4B AE 80 13 00 00 00 00 00 00 75 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 62 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 62 00 4B AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:31:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_GetFieldsCounters done [12:31:33]requested_item shift.num is exist - process it [12:31:33]requested_item shift.opened is exist - process it [12:31:33]req_shift_opened [12:31:33]FM_GetShiftState [12:31:33]SAM_PROTO_GetShiftState [12:31:33]wFMCommunicate request_size=4 [12:31:33]MH_SAM_APDU [12:31:33]CAPDU: 80 13 01 00 [12:31:33]Write to MH i2c: E2 08 00 4C AE 80 13 01 00 00 00 00 00 77 [12:31:33]Write i2c OK [12:31:33]MH_I2C_Read... [12:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:33]Read from MH i2c: E2 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 0E 00 [12:31:33]MH_I2C_Read... [12:31:33]Read from MH i2c: E2 0E 00 4C AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 B0 [12:31:33]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:31:33]wFMCommunicate OK [12:31:33]SAM_PROTO_GetShiftState done [12:31:33]FM_GetShiftState done [12:31:33]req_shift_opened done [12:31:33]requested_item shift.open_date is exist - process it [12:31:33]req_shift_open_date [12:31:33]req_shift_open_date done [12:31:33]produce_requested_data done [12:31:33]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:31:33]process_action_free close_receipt [12:31:33]json_value_free [12:31:33]json_value_free done [12:31:33]process_json_proto returns [12:31:33]Send response to host [12:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:31:33]free response buf [12:31:33]execute_script done [12:31:33]execute_script returns [12:31:33]free content buf [12:31:33]Sock 9.Close socket [12:31:33]Sock 9.Thread stoped [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:39]accept exits with 10 [12:32:39]New connection [12:32:39]New thread 3067002212 created [12:32:39]Thread 3066858852 joined [12:32:39]Waiting for new connection... [12:32:39] Sock 10.Parse request [12:32:39]Sock 10.Check first char [12:32:39]Sock 10.First char is OK [12:32:39]request: POST /json_proto HTTP/1.0 [12:32:39]Method: POST [12:32:39]URL: /json_proto [12:32:39]Method is POST - this is cgi request [12:32:39]url: /json_proto [12:32:39]query_string will be loaded in cgi processing [12:32:39]execute_cgi json_proto POST (null) [12:32:39]execute_cgi path=json_proto method=POST [12:32:39]POST find Content-Length [12:32:39]Host: 172.17.49.132:8080 [12:32:39]Content-Length: 1251 [12:32:39]Content-Type: application/json [12:32:39] [12:32:39]POST finish read [12:32:39]Found Content-Length = 1251 [12:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874742\u000A01.08.2024 11:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918672;671;670;669;668;667;666;665;664;663\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:39]execute_script... [12:32:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874742\u000A01.08.2024 11:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918672;671;670;669;668;667;666;665;664;663\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:39]POST & json_proto [12:32:39]process_json_proto [12:32:39]json parsed OK: [12:32:39]protocol is kg_v1.0 [12:32:39]action value=print_text [12:32:39]process_action print_text [12:32:39]cmd_print_text [12:32:39]ExternCall_PrintAddStr [12:32:39]wPrintStart [12:32:39]Write to MH i2c: 01 00 00 4D AE FB [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 07 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 07 00 4D AE 00 00 00 00 00 FF 0F 10 [12:32:39]RasterBufferAndPrint [12:32:39]line *****ТОВАРНЫЙ ЧЕК***** [12:32:39]line АЗС 125 [12:32:39]line Партнер нефть [12:32:39]line 02508201610067 [12:32:39]line Кассир : Мадаминова Б. [12:32:39]line Счет N : (1)874742 [12:32:39]line 01.08.2024 11:53 [12:32:39]line ПРОДАЖА [12:32:39]line ТРК (МРК, ГНК): 62 [12:32:39]line Вид ГСМ : 2710124130 [12:32:39]line Аи-92-К-5 [12:32:39]line 100.000 x 67.80 [12:32:39]line ИТОГ: 6780.00 [12:32:39]line Тип оплаты: Талоны: Топливные Талоны [12:32:39]line 3918672;671;670;669;668;667;666;665;664;663 [12:32:39]line ______________________ [12:32:39]line (подпись) [12:32:39]written 0, free lines is 4095 [12:32:39]Write to MH i2c: 01 00 00 62 AE 10 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 07 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 07 00 62 AE 00 00 00 00 00 0E 0E 33 [12:32:39]RasterBufferAndPrint [12:32:39]line [12:32:39]line [12:32:39]line [12:32:39]line [12:32:39]line [12:32:39]written 0, free lines is 3600 [12:32:39]MH_Cut [12:32:39]Write to MH i2c: D1 01 00 69 AE 01 E9 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: D1 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: D1 01 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: D1 01 00 69 AE 00 E8 [12:32:39]Write to MH i2c: 01 00 00 6A AE 18 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:40]*** Cut start [12:32:40]*** Partial cut [12:32:40]*** CUTSNS_PIN = 1 [12:32:40]*** CUTSNS_PIN = 0 [12:32:40]*** Brake cut motor [12:32:40]Read from MH i2c: 01 [12:32:40]MH_I2C_Read... [12:32:40]*** Stop cut motor [12:32:40]*** Cut end [12:32:40]Read from MH i2c: 01 07 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: 01 07 00 6A AE 00 00 00 00 00 FF 0F 2D [12:32:40]process_action print_text done [12:32:40]requested_data is exist [12:32:40]produce_requested_data [12:32:40]requested_item fm.sn is exist - process it [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 11 00 00 [12:32:40]Write to MH i2c: E2 08 00 6B AE 80 11 00 00 00 00 00 00 93 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:40]Read from MH i2c: E2 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 17 00 [12:32:40]MH_I2C_Read... [12:32:40]Read from MH i2c: E2 17 00 6B AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EF [12:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:32:40]wFMCommunicate OK [12:32:40]requested_item fd.num is exist - process it [12:32:40]SAM_PROTO_GetFieldsCounters [12:32:40]wFMCommunicate request_size=4 [12:32:40]MH_SAM_APDU [12:32:40]CAPDU: 80 13 00 00 [12:32:40]Write to MH i2c: E2 08 00 6C AE 80 13 00 00 00 00 00 00 96 [12:32:40]Write i2c OK [12:32:40]MH_I2C_Read... [12:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:41]Read from MH i2c: E2 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: E2 62 00 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: E2 62 00 6C AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [12:32:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:41]wFMCommunicate OK [12:32:41]SAM_PROTO_GetFieldsCounters done [12:32:41]requested_item shift.num is exist - process it [12:32:41]requested_item shift.opened is exist - process it [12:32:41]req_shift_opened [12:32:41]FM_GetShiftState [12:32:41]SAM_PROTO_GetShiftState [12:32:41]wFMCommunicate request_size=4 [12:32:41]MH_SAM_APDU [12:32:41]CAPDU: 80 13 01 00 [12:32:41]Write to MH i2c: E2 08 00 6D AE 80 13 01 00 00 00 00 00 98 [12:32:41]Write i2c OK [12:32:41]MH_I2C_Read... [12:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:41]Read from MH i2c: E2 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: E2 0E 00 [12:32:41]MH_I2C_Read... [12:32:41]Read from MH i2c: E2 0E 00 6D AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D1 [12:32:41]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:32:41]wFMCommunicate OK [12:32:41]SAM_PROTO_GetShiftState done [12:32:41]FM_GetShiftState done [12:32:41]req_shift_opened done [12:32:41]requested_item shift.open_date is exist - process it [12:32:41]req_shift_open_date [12:32:41]req_shift_open_date done [12:32:41]produce_requested_data done [12:32:41]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:32:41]process_action_free print_text [12:32:41]json_value_free [12:32:41]json_value_free done [12:32:41]process_json_proto returns [12:32:41]Send response to host [12:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:32:41]free response buf [12:32:41]execute_script done [12:32:41]execute_script returns [12:32:41]free content buf [12:32:41]Sock 10.Close socket [12:32:41]Sock 10.Thread stoped [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:34]accept exits with 7 [12:37:34]New connection [12:37:34]New thread 3066858852 created [12:37:34]Thread 3067002212 joined [12:37:34]Waiting for new connection... [12:37:34] Sock 7.Parse request [12:37:34]Sock 7.Check first char [12:37:34]Sock 7.First char is OK [12:37:34]request: POST /json_proto HTTP/1.0 [12:37:34]Method: POST [12:37:34]URL: /json_proto [12:37:34]Method is POST - this is cgi request [12:37:34]url: /json_proto [12:37:34]query_string will be loaded in cgi processing [12:37:34]execute_cgi json_proto POST (null) [12:37:34]execute_cgi path=json_proto method=POST [12:37:34]POST find Content-Length [12:37:34]Host: 172.17.49.132:8080 [12:37:34]Content-Length: 1251 [12:37:34]Content-Type: application/json [12:37:34] [12:37:34]POST finish read [12:37:34]Found Content-Length = 1251 [12:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874750\u000A01.08.2024 11:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918653;654;655;656;657;658;659;660;661;662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:34]execute_script... [12:37:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874750\u000A01.08.2024 11:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918653;654;655;656;657;658;659;660;661;662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:34]POST & json_proto [12:37:34]process_json_proto [12:37:34]json parsed OK: [12:37:34]protocol is kg_v1.0 [12:37:34]action value=print_text [12:37:34]process_action print_text [12:37:34]cmd_print_text [12:37:34]ExternCall_PrintAddStr [12:37:34]wPrintStart [12:37:34]Write to MH i2c: 01 00 00 6E AE 1C [12:37:34]Write i2c OK [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: 01 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: 01 07 00 [12:37:34]MH_I2C_Read... [12:37:34]Read from MH i2c: 01 07 00 6E AE 00 00 00 00 00 FF 0F 31 [12:37:34]RasterBufferAndPrint [12:37:34]line *****ТОВАРНЫЙ ЧЕК***** [12:37:34]line АЗС 125 [12:37:34]line Партнер нефть [12:37:34]line 02508201610067 [12:37:34]line Кассир : Мадаминова Б. [12:37:34]line Счет N : (1)874750 [12:37:34]line 01.08.2024 11:58 [12:37:34]line ПРОДАЖА [12:37:34]line ТРК (МРК, ГНК): 62 [12:37:34]line Вид ГСМ : 2710124130 [12:37:34]line Аи-92-К-5 [12:37:34]line 100.000 x 67.80 [12:37:34]line ИТОГ: 6780.00 [12:37:34]line Тип оплаты: Талоны: Топливные Талоны [12:37:34]line 3918653;654;655;656;657;658;659;660;661;662 [12:37:34]line ______________________ [12:37:35]line (подпись) [12:37:35]written 0, free lines is 4095 [12:37:35]Write to MH i2c: 01 00 00 83 AE 31 [12:37:35]Write i2c OK [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: 01 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: 01 07 00 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: 01 07 00 83 AE 00 00 00 00 00 0C 0E 52 [12:37:35]RasterBufferAndPrint [12:37:35]line [12:37:35]line [12:37:35]line [12:37:35]line [12:37:35]line [12:37:35]written 0, free lines is 3600 [12:37:35]MH_Cut [12:37:35]Write to MH i2c: D1 01 00 8A AE 01 0A [12:37:35]Write i2c OK [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: D1 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: D1 01 00 [12:37:35]MH_I2C_Read... [12:37:35]Read from MH i2c: D1 01 00 8A AE 00 09 [12:37:35]Write to MH i2c: 01 00 00 8B AE 39 [12:37:35]Write i2c OK [12:37:35]MH_I2C_Read... [12:37:35]*** Cut start [12:37:35]*** Partial cut [12:37:35]*** CUTSNS_PIN = 1 [12:37:35]*** CUTSNS_PIN = 0 [12:37:35]*** Brake cut motor [12:37:36]Read from MH i2c: 01 [12:37:36]MH_I2C_Read... [12:37:36]*** Stop cut motor [12:37:36]*** Cut end [12:37:36]Read from MH i2c: 01 07 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: 01 07 00 8B AE 00 00 00 00 00 FF 0F 4E [12:37:36]process_action print_text done [12:37:36]requested_data is exist [12:37:36]produce_requested_data [12:37:36]requested_item fm.sn is exist - process it [12:37:36]wFMCommunicate request_size=4 [12:37:36]MH_SAM_APDU [12:37:36]CAPDU: 80 11 00 00 [12:37:36]Write to MH i2c: E2 08 00 8C AE 80 11 00 00 00 00 00 00 B4 [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:36]Read from MH i2c: E2 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 17 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 17 00 8C AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 10 [12:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:37:36]wFMCommunicate OK [12:37:36]requested_item fd.num is exist - process it [12:37:36]SAM_PROTO_GetFieldsCounters [12:37:36]wFMCommunicate request_size=4 [12:37:36]MH_SAM_APDU [12:37:36]CAPDU: 80 13 00 00 [12:37:36]Write to MH i2c: E2 08 00 8D AE 80 13 00 00 00 00 00 00 B7 [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:36]Read from MH i2c: E2 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 62 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 62 00 8D AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [12:37:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:36]wFMCommunicate OK [12:37:36]SAM_PROTO_GetFieldsCounters done [12:37:36]requested_item shift.num is exist - process it [12:37:36]requested_item shift.opened is exist - process it [12:37:36]req_shift_opened [12:37:36]FM_GetShiftState [12:37:36]SAM_PROTO_GetShiftState [12:37:36]wFMCommunicate request_size=4 [12:37:36]MH_SAM_APDU [12:37:36]CAPDU: 80 13 01 00 [12:37:36]Write to MH i2c: E2 08 00 8E AE 80 13 01 00 00 00 00 00 B9 [12:37:36]Write i2c OK [12:37:36]MH_I2C_Read... [12:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:36]Read from MH i2c: E2 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 0E 00 [12:37:36]MH_I2C_Read... [12:37:36]Read from MH i2c: E2 0E 00 8E AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F2 [12:37:36]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:37:36]wFMCommunicate OK [12:37:36]SAM_PROTO_GetShiftState done [12:37:36]FM_GetShiftState done [12:37:36]req_shift_opened done [12:37:36]requested_item shift.open_date is exist - process it [12:37:36]req_shift_open_date [12:37:36]req_shift_open_date done [12:37:36]produce_requested_data done [12:37:36]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:37:36]process_action_free print_text [12:37:36]json_value_free [12:37:36]json_value_free done [12:37:36]process_json_proto returns [12:37:36]Send response to host [12:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:37:36]free response buf [12:37:36]execute_script done [12:37:36]execute_script returns [12:37:36]free content buf [12:37:36]Sock 7.Close socket [12:37:36]Sock 7.Thread stoped [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:27]accept exits with 9 [12:42:27]New connection [12:42:27]New thread 3067002212 created [12:42:27]Thread 3066858852 joined [12:42:27]Waiting for new connection... [12:42:27] Sock 9.Parse request [12:42:27]Sock 9.Check first char [12:42:27]Sock 9.First char is OK [12:42:27]request: POST /json_proto HTTP/1.0 [12:42:27]Method: POST [12:42:27]URL: /json_proto [12:42:27]Method is POST - this is cgi request [12:42:27]url: /json_proto [12:42:27]query_string will be loaded in cgi processing [12:42:27]execute_cgi json_proto POST (null) [12:42:27]execute_cgi path=json_proto method=POST [12:42:27]POST find Content-Length [12:42:27]Host: 172.17.49.132:8080 [12:42:27]Content-Length: 1251 [12:42:27]Content-Type: application/json [12:42:27] [12:42:27]POST finish read [12:42:27]Found Content-Length = 1251 [12:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874758\u000A01.08.2024 12:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918643;644;645;646;647;648;649;650;651;652\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:27]execute_script... [12:42:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874758\u000A01.08.2024 12:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918643;644;645;646;647;648;649;650;651;652\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:27]POST & json_proto [12:42:27]process_json_proto [12:42:27]json parsed OK: [12:42:27]protocol is kg_v1.0 [12:42:27]action value=print_text [12:42:27]process_action print_text [12:42:27]cmd_print_text [12:42:27]ExternCall_PrintAddStr [12:42:27]wPrintStart [12:42:27]Write to MH i2c: 01 00 00 8F AE 3D [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 8F AE 00 00 00 00 00 FF 0F 52 [12:42:27]RasterBufferAndPrint [12:42:27]line *****ТОВАРНЫЙ ЧЕК***** [12:42:27]line АЗС 125 [12:42:27]line Партнер нефть [12:42:27]line 02508201610067 [12:42:27]line Кассир : Мадаминова Б. [12:42:27]line Счет N : (1)874758 [12:42:27]line 01.08.2024 12:03 [12:42:27]line ПРОДАЖА [12:42:27]line ТРК (МРК, ГНК): 62 [12:42:27]line Вид ГСМ : 2710124130 [12:42:27]line Аи-92-К-5 [12:42:27]line 100.000 x 67.80 [12:42:27]line ИТОГ: 6780.00 [12:42:27]line Тип оплаты: Талоны: Топливные Талоны [12:42:27]line 3918643;644;645;646;647;648;649;650;651;652 [12:42:27]line ______________________ [12:42:27]line (подпись) [12:42:27]written 0, free lines is 4095 [12:42:27]Write to MH i2c: 01 00 00 A4 AE 52 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 A4 AE 00 00 00 00 00 0C 0E 73 [12:42:27]RasterBufferAndPrint [12:42:27]line [12:42:27]line [12:42:27]line [12:42:27]line [12:42:27]line [12:42:27]written 0, free lines is 3599 [12:42:27]MH_Cut [12:42:27]Write to MH i2c: D1 01 00 AB AE 01 2B [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: D1 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: D1 01 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: D1 01 00 AB AE 00 2A [12:42:27]Write to MH i2c: 01 00 00 AC AE 5A [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:28]OFD Sender: No OFD packet to send [12:42:28]*** Cut start [12:42:28]*** Partial cut [12:42:28]*** CUTSNS_PIN = 1 [12:42:28]*** CUTSNS_PIN = 0 [12:42:28]*** Brake cut motor [12:42:29]Read from MH i2c: 01 [12:42:29]MH_I2C_Read... [12:42:29]*** Stop cut motor [12:42:29]*** Cut end [12:42:29]Read from MH i2c: 01 07 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: 01 07 00 AC AE 00 00 00 00 00 FF 0F 6F [12:42:29]process_action print_text done [12:42:29]requested_data is exist [12:42:29]produce_requested_data [12:42:29]requested_item fm.sn is exist - process it [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 11 00 00 [12:42:29]Write to MH i2c: E2 08 00 AD AE 80 11 00 00 00 00 00 00 D5 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:29]Read from MH i2c: E2 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 17 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 17 00 AD AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 31 [12:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:42:29]wFMCommunicate OK [12:42:29]requested_item fd.num is exist - process it [12:42:29]SAM_PROTO_GetFieldsCounters [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 13 00 00 [12:42:29]Write to MH i2c: E2 08 00 AE AE 80 13 00 00 00 00 00 00 D8 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:29]Read from MH i2c: E2 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 62 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 62 00 AE AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 09 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:29]wFMCommunicate OK [12:42:29]SAM_PROTO_GetFieldsCounters done [12:42:29]requested_item shift.num is exist - process it [12:42:29]requested_item shift.opened is exist - process it [12:42:29]req_shift_opened [12:42:29]FM_GetShiftState [12:42:29]SAM_PROTO_GetShiftState [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 13 01 00 [12:42:29]Write to MH i2c: E2 08 00 AF AE 80 13 01 00 00 00 00 00 DA [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:29]Read from MH i2c: E2 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 0E 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 0E 00 AF AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 13 [12:42:29]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:42:29]wFMCommunicate OK [12:42:29]SAM_PROTO_GetShiftState done [12:42:29]FM_GetShiftState done [12:42:29]req_shift_opened done [12:42:29]requested_item shift.open_date is exist - process it [12:42:29]req_shift_open_date [12:42:29]req_shift_open_date done [12:42:29]produce_requested_data done [12:42:29]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:42:29]process_action_free print_text [12:42:29]json_value_free [12:42:29]json_value_free done [12:42:29]process_json_proto returns [12:42:29]Send response to host [12:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69897,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:42:29]free response buf [12:42:29]execute_script done [12:42:29]execute_script returns [12:42:29]free content buf [12:42:29]Sock 9.Close socket [12:42:29]Sock 9.Thread stoped [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:00]accept exits with 7 [12:43:00]New connection [12:43:00]New thread 3066858852 created [12:43:00]Thread 3067002212 joined [12:43:00]Waiting for new connection... [12:43:00] Sock 7.Parse request [12:43:00]Sock 7.Check first char [12:43:00]Sock 7.First char is OK [12:43:00]request: POST /json_proto HTTP/1.0 [12:43:00]Method: POST [12:43:00]URL: /json_proto [12:43:00]Method is POST - this is cgi request [12:43:00]url: /json_proto [12:43:00]query_string will be loaded in cgi processing [12:43:00]execute_cgi json_proto POST (null) [12:43:00]execute_cgi path=json_proto method=POST [12:43:00]POST find Content-Length [12:43:00]Host: 172.17.49.132:8080 [12:43:00]Content-Length: 843 [12:43:00]Content-Type: application/json [12:43:00] [12:43:00]POST finish read [12:43:00]Found Content-Length = 843 [12:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:00]execute_script... [12:43: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)874762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:00]POST & json_proto [12:43:00]process_json_proto [12:43:00]json parsed OK: [12:43:00]protocol is kg_v1.0 [12:43:00]action value=close_receipt [12:43:00]process_action close_receipt [12:43:00]cmd_close_receipt [12:43:00]MH_GetDate [12:43:00]Write to MH i2c: F0 00 00 B0 AE 4D [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: F0 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: F0 09 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: F0 09 00 B0 AE 00 E6 82 AB 66 E7 4B C0 64 25 [12:43:00]GetLastDocTimeStamp 1722515507 [12:43:00]current date 1722516198 [12:43:00]FM_GetShiftState [12:43:00]SAM_PROTO_GetShiftState [12:43:00]wFMCommunicate request_size=4 [12:43:00]MH_SAM_APDU [12:43:00]CAPDU: 80 13 01 00 [12:43:00]Write to MH i2c: E2 08 00 B1 AE 80 13 01 00 00 00 00 00 DC [12:43:00]Write i2c OK [12:43:00]MH_I2C_Read... [12:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:00]Read from MH i2c: E2 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 [12:43:00]MH_I2C_Read... [12:43:00]Read from MH i2c: E2 0E 00 B1 AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 15 [12:43:00]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:43:00]wFMCommunicate OK [12:43:00]SAM_PROTO_GetShiftState done [12:43:00]FM_GetShiftState done [12:43:00]opened in 1722472772 [12:43:00]opened+sec_in_day 1722559172 [12:43:00]quantity*price = 100023 [12:43:00]sum+1 = 100024 [12:43:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 61 01.08.2024 12:43 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69898 ФПД: 69264079305694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T124318&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69898&fm=69264079305694&tin=02508201610067®Number=0000000000092638&sum=100023 [12:43:01]StoreToDocumentArchive [12:43:01]shift 433 fd 69898 [12:43:01]save to /storage/0433/doc_00069898 [12:43:01]save last doc name /storage/0433/doc_00069898 to /storage/kkm_last_doc_name [12:43:01]save OK [12:43:01]Clear old archive folders... [12:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:01]tlvbuf is 011772F0 [12:43:01]SAM_PROTO_ClearQueue [12:43:01]wFMCommunicate request_size=4 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 09 00 00 [12:43:01]Write to MH i2c: E2 08 00 BE AE 80 09 00 00 00 00 00 00 DE [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 BE AE 00 90 00 E0 [12:43:01]RAPDU: 90 00 [12:43:01]wFMCommunicate OK [12:43:01]SAM_PROTO_ClearQueue done [12:43:01]KKMCreateOFDPacket [12:43:01]OFDProtocolAddRootSTLVToBuf [12:43:01]FM_MakeSignedData [12:43:01]FM_MakeSignedData [12:43:01]SAM_PROTO_SignData [12:43:01]wFMCommunicate request_size=4 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 0D 01 02 [12:43:01]Write to MH i2c: E2 08 00 BF AE 80 0D 01 02 00 00 00 00 E6 [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 BF AE 00 90 00 E1 [12:43:01]RAPDU: 90 00 [12:43:01]wFMCommunicate OK [12:43:01]wFMCommunicate request_size=255 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E6 82 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0A 11 01 00 35 04 06 00 3E [12:43:01]Write to MH i2c: E2 02 01 C0 AE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E6 82 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0A 11 01 00 35 04 06 00 3E 00 00 68 [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 C0 AE 00 90 00 E2 [12:43:01]RAPDU: 90 00 [12:43:01]wFMCommunicate OK [12:43:01]wFMCommunicate request_size=10 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 0D 02 02 05 FE CC D7 BB DE [12:43:01]Write to MH i2c: E2 0D 00 C1 AE 80 0D 02 02 05 00 FE CC D7 BB DE 00 00 2D [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 03 00 C1 AE 00 90 00 E3 [12:43:01]RAPDU: 90 00 [12:43:01]wFMCommunicate OK [12:43:01]wFMCommunicate request_size=4 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 0D 03 02 [12:43:01]Write to MH i2c: E2 08 00 C2 AE 80 0D 03 02 00 00 00 00 EB [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 0B 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 0B 00 C2 AE 00 D0 AF 2C A7 C8 F2 46 65 90 00 A3 [12:43:01]RAPDU: D0 AF 2C A7 C8 F2 46 65 90 00 [12:43:01]wFMCommunicate OK [12:43:01]SAM_PROTO_SignData done [12:43:01]FM_MakeSignedData done [12:43:01]CreateOFDProtocolMessage [12:43:01]wFMCommunicate request_size=4 [12:43:01]MH_SAM_APDU [12:43:01]CAPDU: 80 11 00 00 [12:43:01]Write to MH i2c: E2 08 00 C3 AE 80 11 00 00 00 00 00 00 EB [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:01]Read from MH i2c: E2 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 17 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: E2 17 00 C3 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 47 [12:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:43:01]wFMCommunicate OK [12:43:01]CreateOFDProtocolMessage done [12:43:01]OFDSenderStorePacket 69898 [12:43:01]StoreOFDPacket docnum=69898 [12:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 BD 12 07 01 81 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E6 82 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0A 11 01 00 35 04 06 00 3E FE CC D7 BB DE D0 AF 2C A7 C8 F2 46 65 [12:43:01]CheckFolder [12:43:01]dirname=/storage/ofd_packets [12:43:01]CheckFolder done [12:43:01]ProducePacketName [12:43:01]name=ofd_packets/00069898 [12:43:01]NVStorageSaveData ofd_packets/00069898 [12:43:01]File name is /storage/ofd_packets/00069898 [12:43:01]Write 301 bytes [12:43:01]NVStorageSaveData done [12:43:01]OFDSenderStorePacket done [12:43:01]KKMCreateOFDPacket done [12:43:01]NVStorageSaveData kkm_last_timestamp [12:43:01]File name is /storage/kkm_last_timestamp [12:43:01]Write 4 bytes [12:43:01]NVStorageSaveData done [12:43:01]ExternCall_PrintAddStr [12:43:01]wPrintStart [12:43:01]Write to MH i2c: 01 00 00 C4 AE 72 [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 07 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 07 00 C4 AE 00 00 00 00 00 FF 0F 87 [12:43:01]RasterBufferAndPrint [12:43:01]line Счет N : (1)874762 [12:43:01]line ИНН: 02508201610067 [12:43:01]line Контрольно-Кассовый Чек [12:43:01]line ПРОДАЖА [12:43:01]line ТРК (МРК, ГНК) : 51 [12:43:01]line Товар: 2710124500 [12:43:01]line Аи-95-К-5 [12:43:01]line 13.390 * 74.70 [12:43:01]line = 1000.23 [12:43:01]line НДС 12% НСП 1% [12:43:01]line > о реализуемом товаре [12:43:01]line ИТОГО: 1000.23 [12:43:01]line НСП 1% : 8.85 [12:43:01]line НДС 12% : 106.22 [12:43:01]line Наличными: 0.00 [12:43:01]line Безнал.: 1000.23 [12:43:01]line Место: АЗС № 125 "Партнер Нефть" [12:43:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:43:01]line СНО: Общий режим [12:43:01]line Чек 61 01.08.2024 12:43 [12:43:01]line Смена: 433 ФФД: 1.0 [12:43:01]line ЗНМ: 0300000049 [12:43:01]line РНМ: 0000000000092638 [12:43:01]line Версия ККМ: 001 [12:43:01]line Платежная система: АКБ Кыргызстан [12:43:01]line ФМ: 0000000000874949 [12:43:01]line ФД: 69898 [12:43:01]line ФПД: 69264079305694 [12:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T124318&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69898&fm=69264079305694&tin=02508201610067®Number=0000000000092638&sum=100023 [12:43:02]written 0, free lines is 4095 [12:43:02]OFD Sender: Processing packet 69898 [packets to send 19, broken 18] [12:43:02]ProducePacketName [12:43:02]name=ofd_packets/00069898 [12:43:02]OFD Sender: To server: pG, [12:43:02]CommunicateWithHost lk.salyk.kg:30040 [12:43:02]ConnectInit lk.salyk.kg [12:43:02]Connected sock=10 [12:43:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 BD 12 07 01 81 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 E6 82 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0A 11 01 00 35 04 06 00 3E FE CC D7 BB DE D0 AF 2C A7 C8 F2 46 65 [12:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 0C 11 47 00 B7 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0A 11 01 00 F4 03 04 00 47 29 AB 66 B6 04 01 00 00 F6 4A C0 93 16 9A 92 2F [12:43:02]CommunicateWithHost err = 0 [12:43:02]CheckOFDResponse [12:43:02]1017 (14) - 77093643461234 [12:43:02]1041 (16) - 0000000000874949 [12:43:02]1040 (4) - 69898 [12:43:02]1012 (4) - 01.08.2024 06:20 [12:43:02]1206 (1) - 0 [12:43:02]OFD Sender: Remove packet 69898 [12:43:02]ProducePacketName [12:43:02]name=ofd_packets/00069898 [12:43:02]NVStorageDeleteData [12:43:02]Write to MH i2c: 01 00 00 EE AE 9C [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 07 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 07 00 EE AE 00 00 00 00 00 0B 0D BB [12:43:02]RasterBufferAndPrint [12:43:02]line [12:43:02]line [12:43:02]line [12:43:02]line [12:43:02]line [12:43:02]written 0, free lines is 3345 [12:43:02]MH_Cut [12:43:02]Write to MH i2c: D1 01 00 F5 AE 01 75 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: D1 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: D1 01 00 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: D1 01 00 F5 AE 00 74 [12:43:02]Write to MH i2c: 01 00 00 F6 AE A4 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:03]OFD Sender: No OFD packet to send [12:43:03]*** Cut start [12:43:03]*** Partial cut [12:43:03]*** CUTSNS_PIN = 1 [12:43:03]*** CUTSNS_PIN = 0 [12:43:03]*** Brake cut motor [12:43:03]Read from MH i2c: 01 [12:43:03]MH_I2C_Read... [12:43:03]*** Stop cut motor [12:43:03]*** Cut end [12:43:03]Read from MH i2c: 01 07 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: 01 07 00 F6 AE 00 00 00 00 00 FF 0F B9 [12:43:03]process_action close_receipt done [12:43:03]requested_data is exist [12:43:03]produce_requested_data [12:43:03]requested_item fm.sn is exist - process it [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 11 00 00 [12:43:03]Write to MH i2c: E2 08 00 F7 AE 80 11 00 00 00 00 00 00 1F [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 17 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 17 00 F7 AE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 7B [12:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:43:03]wFMCommunicate OK [12:43:03]requested_item fd.num is exist - process it [12:43:03]SAM_PROTO_GetFieldsCounters [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 13 00 00 [12:43:03]Write to MH i2c: E2 08 00 F8 AE 80 13 00 00 00 00 00 00 22 [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 62 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 62 00 F8 AE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0A 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [12:43:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0A 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetFieldsCounters done [12:43:04]requested_item shift.num is exist - process it [12:43:04]requested_item shift.opened is exist - process it [12:43:04]req_shift_opened [12:43:04]FM_GetShiftState [12:43:04]SAM_PROTO_GetShiftState [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 13 01 00 [12:43:04]Write to MH i2c: E2 08 00 F9 AE 80 13 01 00 00 00 00 00 24 [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 F9 AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 5D [12:43:04]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetShiftState done [12:43:04]FM_GetShiftState done [12:43:04]req_shift_opened done [12:43:04]requested_item shift.open_date is exist - process it [12:43:04]req_shift_open_date [12:43:04]req_shift_open_date done [12:43:04]produce_requested_data done [12:43:04]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69898,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:43:04]process_action_free close_receipt [12:43:04]json_value_free [12:43:04]json_value_free done [12:43:04]process_json_proto returns [12:43:04]Send response to host [12:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69898,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:43:04]free response buf [12:43:04]execute_script done [12:43:04]execute_script returns [12:43:04]free content buf [12:43:04]Sock 7.Close socket [12:43:04]Sock 7.Thread stoped [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:31]accept exits with 9 [12:46:31]New connection [12:46:31]New thread 3067002212 created [12:46:31]Thread 3066858852 joined [12:46:31]Waiting for new connection... [12:46:31] Sock 9.Parse request [12:46:31]Sock 9.Check first char [12:46:31]Sock 9.First char is OK [12:46:31]request: POST /json_proto HTTP/1.0 [12:46:31]Method: POST [12:46:31]URL: /json_proto [12:46:31]Method is POST - this is cgi request [12:46:31]url: /json_proto [12:46:31]query_string will be loaded in cgi processing [12:46:31]execute_cgi json_proto POST (null) [12:46:31]execute_cgi path=json_proto method=POST [12:46:31]POST find Content-Length [12:46:31]Host: 172.17.49.132:8080 [12:46:31]Content-Length: 845 [12:46:31]Content-Type: application/json [12:46:31] [12:46:31]POST finish read [12:46:31]Found Content-Length = 845 [12:46:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137128", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:31]execute_script... [12:46: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 : (3)137128", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:31]POST & json_proto [12:46:31]process_json_proto [12:46:31]json parsed OK: [12:46:31]protocol is kg_v1.0 [12:46:31]action value=close_receipt [12:46:31]process_action close_receipt [12:46:31]cmd_close_receipt [12:46:31]MH_GetDate [12:46:31]Write to MH i2c: F0 00 00 FA AE 97 [12:46:31]Write i2c OK [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: F0 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: F0 09 00 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: F0 09 00 FA AE 00 B9 83 AB 66 E7 4B C0 64 43 [12:46:31]GetLastDocTimeStamp 1722516198 [12:46:31]current date 1722516409 [12:46:31]FM_GetShiftState [12:46:31]SAM_PROTO_GetShiftState [12:46:31]wFMCommunicate request_size=4 [12:46:31]MH_SAM_APDU [12:46:31]CAPDU: 80 13 01 00 [12:46:31]Write to MH i2c: E2 08 00 FB AE 80 13 01 00 00 00 00 00 26 [12:46:31]Write i2c OK [12:46:31]MH_I2C_Read... [12:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:31]Read from MH i2c: E2 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 0E 00 [12:46:31]MH_I2C_Read... [12:46:31]Read from MH i2c: E2 0E 00 FB AE 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 5F [12:46:31]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:46:31]wFMCommunicate OK [12:46:31]SAM_PROTO_GetShiftState done [12:46:31]FM_GetShiftState done [12:46:31]opened in 1722472772 [12:46:31]opened+sec_in_day 1722559172 [12:46:31]quantity*price = 5000 [12:46:31]sum+1 = 5001 [12:46:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 62 01.08.2024 12:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69899 ФПД: 234949511088592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T124649&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69899&fm=234949511088592&tin=02508201610067®Number=0000000000092638&sum=5000 0 [12:46:32]StoreToDocumentArchive [12:46:32]shift 433 fd 69899 [12:46:32]save to /storage/0433/doc_00069899 [12:46:32]save last doc name /storage/0433/doc_00069899 to /storage/kkm_last_doc_name [12:46:32]save OK [12:46:32]Clear old archive folders... [12:46:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:46:32]tlvbuf is 013FBDB0 [12:46:32]SAM_PROTO_ClearQueue [12:46:32]wFMCommunicate request_size=4 [12:46:32]MH_SAM_APDU [12:46:32]CAPDU: 80 09 00 00 [12:46:32]Write to MH i2c: E2 08 00 08 AF 80 09 00 00 00 00 00 00 29 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:32]Read from MH i2c: E2 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 03 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 03 00 08 AF 00 90 00 2B [12:46:32]RAPDU: 90 00 [12:46:32]wFMCommunicate OK [12:46:32]SAM_PROTO_ClearQueue done [12:46:32]KKMCreateOFDPacket [12:46:32]OFDProtocolAddRootSTLVToBuf [12:46:32]FM_MakeSignedData [12:46:32]FM_MakeSignedData [12:46:32]SAM_PROTO_SignData [12:46:32]wFMCommunicate request_size=4 [12:46:32]MH_SAM_APDU [12:46:32]CAPDU: 80 0D 01 02 [12:46:32]Write to MH i2c: E2 08 00 09 AF 80 0D 01 02 00 00 00 00 31 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:32]Read from MH i2c: E2 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 03 00 [12:46:32]MH_I2C_Read... [12:46:32]Read from MH i2c: E2 03 00 09 AF 00 90 00 2C [12:46:32]RAPDU: 90 00 [12:46:32]wFMCommunicate OK [12:46:32]wFMCommunicate request_size=255 [12:46:32]MH_SAM_APDU [12:46:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [12:46:32]Write to MH i2c: E2 02 01 0A AF 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 D2 [12:46:32]Write i2c OK [12:46:32]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 03 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 03 00 0A AF 00 90 00 2D [12:46:33]RAPDU: 90 00 [12:46:33]wFMCommunicate OK [12:46:33]wFMCommunicate request_size=34 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0B 11 01 00 35 04 06 00 D5 AF 72 26 09 D0 [12:46:33]Write to MH i2c: E2 25 00 0B AF 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0B 11 01 00 35 04 06 00 D5 AF 72 26 09 D0 00 00 10 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]OFD Sender: No OFD packet to send [12:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 03 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 03 00 0B AF 00 90 00 2E [12:46:33]RAPDU: 90 00 [12:46:33]wFMCommunicate OK [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 0D 03 02 [12:46:33]Write to MH i2c: E2 08 00 0C AF 80 0D 03 02 00 00 00 00 36 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0B 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0B 00 0C AF 00 4C 0D CC D9 9F 85 08 36 90 00 97 [12:46:33]RAPDU: 4C 0D CC D9 9F 85 08 36 90 00 [12:46:33]wFMCommunicate OK [12:46:33]SAM_PROTO_SignData done [12:46:33]FM_MakeSignedData done [12:46:33]CreateOFDProtocolMessage [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 11 00 00 [12:46:33]Write to MH i2c: E2 08 00 0D AF 80 11 00 00 00 00 00 00 36 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 17 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 17 00 0D AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 92 [12:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:46:33]wFMCommunicate OK [12:46:33]CreateOFDProtocolMessage done [12:46:33]OFDSenderStorePacket 69899 [12:46:33]StoreOFDPacket docnum=69899 [12:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 4C 04 1F 01 E0 41 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0B 11 01 00 35 04 06 00 D5 AF 72 26 09 D0 4C 0D CC D9 9F 85 08 36 [12:46:33]CheckFolder [12:46:33]dirname=/storage/ofd_packets [12:46:33]CheckFolder done [12:46:33]ProducePacketName [12:46:33]name=ofd_packets/00069899 [12:46:33]NVStorageSaveData ofd_packets/00069899 [12:46:33]File name is /storage/ofd_packets/00069899 [12:46:33]Write 325 bytes [12:46:33]NVStorageSaveData done [12:46:33]OFDSenderStorePacket done [12:46:33]KKMCreateOFDPacket done [12:46:33]NVStorageSaveData kkm_last_timestamp [12:46:33]File name is /storage/kkm_last_timestamp [12:46:33]Write 4 bytes [12:46:33]NVStorageSaveData done [12:46:33]ExternCall_PrintAddStr [12:46:33]wPrintStart [12:46:33]Write to MH i2c: 01 00 00 0E AF BD [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: 01 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: 01 07 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: 01 07 00 0E AF 00 00 00 00 00 FF 0F D2 [12:46:33]RasterBufferAndPrint [12:46:33]line Счет N : (3)137128 [12:46:33]line ИНН: 02508201610067 [12:46:33]line Контрольно-Кассовый Чек [12:46:33]line ПРОДАЖА [12:46:33]line Товар: 5449000005489 [12:46:33]line Вода Бонаква 1л б/г [12:46:33]line 1.000 * 50.00 [12:46:33]line = 50.00 [12:46:33]line НДС 12% НСП 1% [12:46:33]line > о реализуемом товаре [12:46:33]line ИТОГО: 50.00 [12:46:33]line НСП 1% : 0.44 [12:46:33]line НДС 12% : 5.31 [12:46:33]line Наличными: 0.00 [12:46:33]line Безнал.: 50.00 [12:46:33]line Место: АЗС № 125 "Партнер Нефть" [12:46:33]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:46:33]line СНО: Общий режим [12:46:33]line Чек 62 01.08.2024 12:46 [12:46:33]line Смена: 433 ФФД: 1.0 [12:46:33]line ЗНМ: 0300000049 [12:46:33]line РНМ: 0000000000092638 [12:46:33]line Версия ККМ: 001 [12:46:33]line Платежная система: АКБ Кыргызстан [12:46:33]line ФМ: 0000000000874949 [12:46:33]line ФД: 69899 [12:46:33]line ФПД: 234949511088592 [12:46:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T124649&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69899&fm=234949511088592&tin=02508201610067®Number=0000000000092638&sum=5000 [12:46:33]OFD Sender: Processing packet 69899 [packets to send 19, broken 18] [12:46:33]ProducePacketName [12:46:33]name=ofd_packets/00069899 [12:46:33]OFD Sender: To server: pG, [12:46:33]CommunicateWithHost lk.salyk.kg:30040 [12:46:33]ConnectInit lk.salyk.kg [12:46:33]line 0 [12:46:33]written 0, free lines is 4095 [12:46:33]Connected sock=10 [12:46:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 4C 04 1F 01 E0 41 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B9 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0B 11 01 00 35 04 06 00 D5 AF 72 26 09 D0 4C 0D CC D9 9F 85 08 36 [12:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 DE F0 47 00 11 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 34 39 34 39 10 04 04 00 0B 11 01 00 F4 03 04 00 1B 2A AB 66 B6 04 01 00 00 3D 7B 84 BA 54 44 13 6A [12:46:34]CommunicateWithHost err = 0 [12:46:34]CheckOFDResponse [12:46:34]1017 (14) - 77093643461234 [12:46:34]1041 (16) - 0000000000874949 [12:46:34]1040 (4) - 69899 [12:46:34]1012 (4) - 01.08.2024 06:24 [12:46:34]1206 (1) - 0 [12:46:34]OFD Sender: Remove packet 69899 [12:46:34]ProducePacketName [12:46:34]name=ofd_packets/00069899 [12:46:34]NVStorageDeleteData [12:46:34]Write to MH i2c: 01 00 00 38 AF E7 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: 01 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: 01 07 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: 01 07 00 38 AF 00 00 00 00 00 06 0D 01 [12:46:34]RasterBufferAndPrint [12:46:34]line [12:46:34]line [12:46:34]line [12:46:34]line [12:46:34]line [12:46:34]written 0, free lines is 3340 [12:46:34]MH_Cut [12:46:34]Write to MH i2c: D1 01 00 3F AF 01 C0 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: D1 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: D1 01 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: D1 01 00 3F AF 00 BF [12:46:34]Write to MH i2c: 01 00 00 40 AF EF [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]OFD Sender: No OFD packet to send [12:46:34]*** Cut start [12:46:34]*** Partial cut [12:46:34]*** CUTSNS_PIN = 1 [12:46:34]*** CUTSNS_PIN = 0 [12:46:35]*** Brake cut motor [12:46:35]Read from MH i2c: 01 [12:46:35]MH_I2C_Read... [12:46:35]*** Stop cut motor [12:46:35]*** Cut end [12:46:35]Read from MH i2c: 01 07 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 40 AF 00 00 00 00 00 FF 0F 04 [12:46:35]process_action close_receipt done [12:46:35]requested_data is exist [12:46:35]produce_requested_data [12:46:35]requested_item fm.sn is exist - process it [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 11 00 00 [12:46:35]Write to MH i2c: E2 08 00 41 AF 80 11 00 00 00 00 00 00 6A [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 41 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C6 [12:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:46:35]wFMCommunicate OK [12:46:35]requested_item fd.num is exist - process it [12:46:35]SAM_PROTO_GetFieldsCounters [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 13 00 00 [12:46:35]Write to MH i2c: E2 08 00 42 AF 80 13 00 00 00 00 00 00 6D [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 62 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 62 00 42 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_GetFieldsCounters done [12:46:35]requested_item shift.num is exist - process it [12:46:35]requested_item shift.opened is exist - process it [12:46:35]req_shift_opened [12:46:35]FM_GetShiftState [12:46:35]SAM_PROTO_GetShiftState [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 13 01 00 [12:46:35]Write to MH i2c: E2 08 00 43 AF 80 13 01 00 00 00 00 00 6F [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0E 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0E 00 43 AF 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 A8 [12:46:35]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_GetShiftState done [12:46:35]FM_GetShiftState done [12:46:35]req_shift_opened done [12:46:35]requested_item shift.open_date is exist - process it [12:46:35]req_shift_open_date [12:46:35]req_shift_open_date done [12:46:35]produce_requested_data done [12:46:35]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69899,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:46:35]process_action_free close_receipt [12:46:35]json_value_free [12:46:35]json_value_free done [12:46:35]process_json_proto returns [12:46:35]Send response to host [12:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69899,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:46:35]free response buf [12:46:35]execute_script done [12:46:35]execute_script returns [12:46:35]free content buf [12:46:35]Sock 9.Close socket [12:46:35]Sock 9.Thread stoped [12:46:39]OFD Sender: No OFD packet to send [12:46:40]accept exits with 7 [12:46:40]New connection [12:46:40]New thread 3066858852 created [12:46:40]Thread 3067002212 joined [12:46:40]Waiting for new connection... [12:46:40] Sock 7.Parse request [12:46:40]Sock 7.Check first char [12:46:40]Sock 7.First char is OK [12:46:40]request: POST /json_proto HTTP/1.0 [12:46:40]Method: POST [12:46:40]URL: /json_proto [12:46:40]Method is POST - this is cgi request [12:46:40]url: /json_proto [12:46:40]query_string will be loaded in cgi processing [12:46:40]execute_cgi json_proto POST (null) [12:46:40]execute_cgi path=json_proto method=POST [12:46:40]POST find Content-Length [12:46:40]Host: 172.17.49.132:8080 [12:46:40]Content-Length: 1251 [12:46:40]Content-Type: application/json [12:46:40] [12:46:40]POST finish read [12:46:40]Found Content-Length = 1251 [12:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874763\u000A01.08.2024 12:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918633;634;635;636;637;638;639;640;641;642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:40]execute_script... [12:46:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874763\u000A01.08.2024 12:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918633;634;635;636;637;638;639;640;641;642\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:40]POST & json_proto [12:46:40]process_json_proto [12:46:40]json parsed OK: [12:46:40]protocol is kg_v1.0 [12:46:40]action value=print_text [12:46:40]process_action print_text [12:46:40]cmd_print_text [12:46:40]ExternCall_PrintAddStr [12:46:40]wPrintStart [12:46:40]Write to MH i2c: 01 00 00 44 AF F3 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 44 AF 00 00 00 00 00 FF 0F 08 [12:46:40]RasterBufferAndPrint [12:46:40]line *****ТОВАРНЫЙ ЧЕК***** [12:46:40]line АЗС 125 [12:46:40]line Партнер нефть [12:46:40]line 02508201610067 [12:46:40]line Кассир : Мадаминова Б. [12:46:40]line Счет N : (1)874763 [12:46:40]line 01.08.2024 12:07 [12:46:40]line ПРОДАЖА [12:46:40]line ТРК (МРК, ГНК): 62 [12:46:40]line Вид ГСМ : 2710124130 [12:46:40]line Аи-92-К-5 [12:46:40]line 100.000 x 67.80 [12:46:40]line ИТОГ: 6780.00 [12:46:40]line Тип оплаты: Талоны: Топливные Талоны [12:46:40]line 3918633;634;635;636;637;638;639;640;641;642 [12:46:40]line ______________________ [12:46:40]line (подпись) [12:46:40]written 0, free lines is 4095 [12:46:40]Write to MH i2c: 01 00 00 59 AF 08 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: 01 07 00 59 AF 00 00 00 00 00 0E 0E 2B [12:46:40]RasterBufferAndPrint [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]line [12:46:40]written 0, free lines is 3601 [12:46:40]MH_Cut [12:46:40]Write to MH i2c: D1 01 00 60 AF 01 E1 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 01 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: D1 01 00 60 AF 00 E0 [12:46:40]Write to MH i2c: 01 00 00 61 AF 10 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:41]*** Cut start [12:46:41]*** Partial cut [12:46:41]*** CUTSNS_PIN = 1 [12:46:41]*** CUTSNS_PIN = 0 [12:46:41]*** Brake cut motor [12:46:41]Read from MH i2c: 01 [12:46:41]MH_I2C_Read... [12:46:41]*** Stop cut motor [12:46:41]*** Cut end [12:46:41]Read from MH i2c: 01 07 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: 01 07 00 61 AF 00 00 00 00 00 FF 0F 25 [12:46:41]process_action print_text done [12:46:41]requested_data is exist [12:46:41]produce_requested_data [12:46:41]requested_item fm.sn is exist - process it [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 11 00 00 [12:46:41]Write to MH i2c: E2 08 00 62 AF 80 11 00 00 00 00 00 00 8B [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 17 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 17 00 62 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E7 [12:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:46:41]wFMCommunicate OK [12:46:41]requested_item fd.num is exist - process it [12:46:41]SAM_PROTO_GetFieldsCounters [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 13 00 00 [12:46:41]Write to MH i2c: E2 08 00 63 AF 80 13 00 00 00 00 00 00 8E [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 62 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 62 00 63 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [12:46:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:41]wFMCommunicate OK [12:46:41]SAM_PROTO_GetFieldsCounters done [12:46:41]requested_item shift.num is exist - process it [12:46:41]requested_item shift.opened is exist - process it [12:46:41]req_shift_opened [12:46:41]FM_GetShiftState [12:46:41]SAM_PROTO_GetShiftState [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 13 01 00 [12:46:41]Write to MH i2c: E2 08 00 64 AF 80 13 01 00 00 00 00 00 90 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 0E 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 0E 00 64 AF 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 C9 [12:46:41]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:46:41]wFMCommunicate OK [12:46:41]SAM_PROTO_GetShiftState done [12:46:41]FM_GetShiftState done [12:46:41]req_shift_opened done [12:46:41]requested_item shift.open_date is exist - process it [12:46:41]req_shift_open_date [12:46:41]req_shift_open_date done [12:46:41]produce_requested_data done [12:46:41]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69899,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:46:41]process_action_free print_text [12:46:41]json_value_free [12:46:41]json_value_free done [12:46:41]process_json_proto returns [12:46:41]Send response to host [12:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69899,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:46:41]free response buf [12:46:41]execute_script done [12:46:41]execute_script returns [12:46:41]free content buf [12:46:41]Sock 7.Close socket [12:46:41]Sock 7.Thread stoped [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:03]accept exits with 9 [12:47:03]New connection [12:47:03]New thread 3067002212 created [12:47:03]Thread 3066858852 joined [12:47:03]Waiting for new connection... [12:47:03] Sock 9.Parse request [12:47:03]Sock 9.Check first char [12:47:03]Sock 9.First char is OK [12:47:03]request: POST /json_proto HTTP/1.0 [12:47:03]Method: POST [12:47:03]URL: /json_proto [12:47:03]Method is POST - this is cgi request [12:47:03]url: /json_proto [12:47:03]query_string will be loaded in cgi processing [12:47:03]execute_cgi json_proto POST (null) [12:47:03]execute_cgi path=json_proto method=POST [12:47:03]POST find Content-Length [12:47:03]Host: 172.17.49.132:8080 [12:47:03]Content-Length: 678 [12:47:03]Content-Type: application/json [12:47:03] [12:47:03]POST finish read [12:47:03]Found Content-Length = 678 [12:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:03]execute_script... [12:47:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:03]POST & json_proto [12:47:03]process_json_proto [12:47:03]json parsed OK: [12:47:03]protocol is kg_v1.0 [12:47:03]action value=close_receipt [12:47:03]process_action close_receipt [12:47:03]cmd_close_receipt [12:47:03]MH_GetDate [12:47:03]Write to MH i2c: F0 00 00 65 AF 03 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: F0 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: F0 09 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: F0 09 00 65 AF 00 DA 83 AB 66 E7 4B C0 64 D0 [12:47:03]GetLastDocTimeStamp 1722516409 [12:47:03]current date 1722516442 [12:47:03]FM_GetShiftState [12:47:03]SAM_PROTO_GetShiftState [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 13 01 00 [12:47:03]Write to MH i2c: E2 08 00 66 AF 80 13 01 00 00 00 00 00 92 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:04]Read from MH i2c: E2 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 0E 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 0E 00 66 AF 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 CB [12:47:04]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:47:04]wFMCommunicate OK [12:47:04]SAM_PROTO_GetShiftState done [12:47:04]FM_GetShiftState done [12:47:04]opened in 1722472772 [12:47:04]opened+sec_in_day 1722559172 [12:47:04]quantity*price = 150024 [12:47:04]sum+1 = 150025 [12:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 63 01.08.2024 12:47 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69900 ФПД: 121006356272903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T124722&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69900&fm=121006356272903&tin=02508201610067®Number=0000000000092638&sum=150000 [12:47:05]StoreToDocumentArchive [12:47:05]shift 433 fd 69900 [12:47:05]save to /storage/0433/doc_00069900 [12:47:05]save last doc name /storage/0433/doc_00069900 to /storage/kkm_last_doc_name [12:47:05]save OK [12:47:05]Clear old archive folders... [12:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:47:05]tlvbuf is 0132EB30 [12:47:05]SAM_PROTO_ClearQueue [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 09 00 00 [12:47:05]Write to MH i2c: E2 08 00 73 AF 80 09 00 00 00 00 00 00 94 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 73 AF 00 90 00 96 [12:47:05]RAPDU: 90 00 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_ClearQueue done [12:47:05]KKMCreateOFDPacket [12:47:05]OFDProtocolAddRootSTLVToBuf [12:47:05]FM_MakeSignedData [12:47:05]FM_MakeSignedData [12:47:05]SAM_PROTO_SignData [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 0D 01 02 [12:47:05]Write to MH i2c: E2 08 00 74 AF 80 0D 01 02 00 00 00 00 9C [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 74 AF 00 90 00 97 [12:47:05]RAPDU: 90 00 [12:47:05]wFMCommunicate OK [12:47:05]wFMCommunicate request_size=255 [12:47:05]MH_SAM_APDU [12:47: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 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 3F 00 00 00 F4 03 04 00 DA 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0C 11 01 00 35 04 06 00 6E 0D FC E1 [12:47:05]Write to MH i2c: E2 02 01 75 AF 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 3F 00 00 00 F4 03 04 00 DA 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0C 11 01 00 35 04 06 00 6E 0D FC E1 00 00 0B [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 75 AF 00 90 00 98 [12:47:05]RAPDU: 90 00 [12:47:05]wFMCommunicate OK [12:47:05]wFMCommunicate request_size=7 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 0D 02 02 02 97 07 [12:47:05]Write to MH i2c: E2 0A 00 76 AF 80 0D 02 02 02 00 97 07 00 00 41 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 03 00 76 AF 00 90 00 99 [12:47:05]RAPDU: 90 00 [12:47:05]wFMCommunicate OK [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 0D 03 02 [12:47:05]Write to MH i2c: E2 08 00 77 AF 80 0D 03 02 00 00 00 00 A1 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0B 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 0B 00 77 AF 00 0E 4D 45 D4 49 C8 08 40 90 00 6F [12:47:05]RAPDU: 0E 4D 45 D4 49 C8 08 40 90 00 [12:47:05]wFMCommunicate OK [12:47:05]SAM_PROTO_SignData done [12:47:05]FM_MakeSignedData done [12:47:05]CreateOFDProtocolMessage [12:47:05]wFMCommunicate request_size=4 [12:47:05]MH_SAM_APDU [12:47:05]CAPDU: 80 11 00 00 [12:47:05]Write to MH i2c: E2 08 00 78 AF 80 11 00 00 00 00 00 00 A1 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:05]Read from MH i2c: E2 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 17 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: E2 17 00 78 AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FD [12:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:47:05]wFMCommunicate OK [12:47:05]CreateOFDProtocolMessage done [12:47:05]OFDSenderStorePacket 69900 [12:47:05]StoreOFDPacket docnum=69900 [12:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C2 CE 04 01 89 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 3F 00 00 00 F4 03 04 00 DA 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0C 11 01 00 35 04 06 00 6E 0D FC E1 97 07 0E 4D 45 D4 49 C8 08 40 [12:47:05]CheckFolder [12:47:05]dirname=/storage/ofd_packets [12:47:05]CheckFolder done [12:47:05]ProducePacketName [12:47:05]name=ofd_packets/00069900 [12:47:05]NVStorageSaveData ofd_packets/00069900 [12:47:05]File name is /storage/ofd_packets/00069900 [12:47:05]Write 298 bytes [12:47:05]NVStorageSaveData done [12:47:05]OFDSenderStorePacket done [12:47:05]KKMCreateOFDPacket done [12:47:05]NVStorageSaveData kkm_last_timestamp [12:47:05]File name is /storage/kkm_last_timestamp [12:47:05]Write 4 bytes [12:47:05]NVStorageSaveData done [12:47:05]ExternCall_PrintAddStr [12:47:05]wPrintStart [12:47:05]Write to MH i2c: 01 00 00 79 AF 28 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 79 AF 00 00 00 00 00 FF 0F 3D [12:47:05]RasterBufferAndPrint [12:47:05]line Счет N : (1)874765 [12:47:05]line ИНН: 02508201610067 [12:47:05]line Контрольно-Кассовый Чек [12:47:05]line ПРОДАЖА [12:47:05]line ТРК (МРК, ГНК) : 2 [12:47:05]line Товар: 2710194210 [12:47:05]line ДТ-К-5 [12:47:05]line 19.950 * 75.20 [12:47:05]line = 1500.24 [12:47:05]line НДС 12% НСП 1% [12:47:05]line > о реализуемом товаре [12:47:05]line ОКРУГЛЕНИЕ: -0.24 [12:47:05]line ИТОГО: 1500.00 [12:47:05]line Внесено: 1500.00 [12:47:05]line СДАЧА: 0.00 [12:47:05]line НСП 1% : 13.28 [12:47:05]line НДС 12% : 159.32 [12:47:05]line Наличными: 1500.00 [12:47:05]line Безнал.: 0.00 [12:47:05]line Место: АЗС № 125 "Партнер Нефть" [12:47:05]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [12:47:05]line СНО: Общий режим [12:47:05]line Чек 63 01.08.2024 12:47 [12:47:05]line Смена: 433 ФФД: 1.0 [12:47:05]line ЗНМ: 0300000049 [12:47:05]line РНМ: 0000000000092638 [12:47:05]line Версия ККМ: 001 [12:47:05]line ФМ: 0000000000874949 [12:47:05]line ФД: 69900 [12:47:05]line ФПД: 121006356272903 [12:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T124722&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69900&fm=121006356272903&tin=02508201610067®Number=0000000000092638&sum=150000 [12:47:05]OFD Sender: Processing packet 69900 [packets to send 19, broken 18] [12:47:05]ProducePacketName [12:47:05]name=ofd_packets/00069900 [12:47:05]OFD Sender: To server: pG, [12:47:05]CommunicateWithHost lk.salyk.kg:30040 [12:47:05]ConnectInit lk.salyk.kg [12:47:05]written 0, free lines is 4095 [12:47:06]Connected sock=10 [12:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 C2 CE 04 01 89 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 3F 00 00 00 F4 03 04 00 DA 83 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0C 11 01 00 35 04 06 00 6E 0D FC E1 97 07 0E 4D 45 D4 49 C8 08 40 [12:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1A 94 47 00 34 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0C 11 01 00 F4 03 04 00 3B 2A AB 66 B6 04 01 00 00 48 87 33 EE 07 2C CB 7A [12:47:06]CommunicateWithHost err = 0 [12:47:06]CheckOFDResponse [12:47:06]1017 (14) - 77093643461234 [12:47:06]1041 (16) - 0000000000874949 [12:47:06]1040 (4) - 69900 [12:47:06]1012 (4) - 01.08.2024 06:24 [12:47:06]1206 (1) - 0 [12:47:06]OFD Sender: Remove packet 69900 [12:47:06]ProducePacketName [12:47:06]name=ofd_packets/00069900 [12:47:06]NVStorageDeleteData [12:47:06]Write to MH i2c: 01 00 00 A4 AF 53 [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 07 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 07 00 A4 AF 00 00 00 00 00 F4 0C 5A [12:47:06]RasterBufferAndPrint [12:47:06]line [12:47:06]line [12:47:06]line [12:47:06]line [12:47:06]line [12:47:06]written 0, free lines is 3322 [12:47:06]MH_Cut [12:47:06]Write to MH i2c: D1 01 00 AB AF 01 2C [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: D1 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: D1 01 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: D1 01 00 AB AF 00 2B [12:47:06]Write to MH i2c: 01 00 00 AC AF 5B [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]OFD Sender: No OFD packet to send [12:47:07]*** Cut start [12:47:07]*** Partial cut [12:47:07]*** CUTSNS_PIN = 1 [12:47:07]*** CUTSNS_PIN = 0 [12:47:07]*** Brake cut motor [12:47:07]Read from MH i2c: 01 [12:47:07]MH_I2C_Read... [12:47:07]*** Stop cut motor [12:47:07]*** Cut end [12:47:07]Read from MH i2c: 01 07 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: 01 07 00 AC AF 00 00 00 00 00 FF 0F 70 [12:47:07]process_action close_receipt done [12:47:07]requested_data is exist [12:47:07]produce_requested_data [12:47:07]requested_item fm.sn is exist - process it [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 11 00 00 [12:47:07]Write to MH i2c: E2 08 00 AD AF 80 11 00 00 00 00 00 00 D6 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 17 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 17 00 AD AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 32 [12:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:47:07]wFMCommunicate OK [12:47:07]requested_item fd.num is exist - process it [12:47:07]SAM_PROTO_GetFieldsCounters [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 13 00 00 [12:47:07]Write to MH i2c: E2 08 00 AE AF 80 13 00 00 00 00 00 00 D9 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 62 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 62 00 AE AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [12:47:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:07]wFMCommunicate OK [12:47:07]SAM_PROTO_GetFieldsCounters done [12:47:07]requested_item shift.num is exist - process it [12:47:07]requested_item shift.opened is exist - process it [12:47:07]req_shift_opened [12:47:07]FM_GetShiftState [12:47:07]SAM_PROTO_GetShiftState [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 13 01 00 [12:47:07]Write to MH i2c: E2 08 00 AF AF 80 13 01 00 00 00 00 00 DB [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:07]Read from MH i2c: E2 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 0E 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: E2 0E 00 AF AF 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 14 [12:47:07]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:47:07]wFMCommunicate OK [12:47:07]SAM_PROTO_GetShiftState done [12:47:07]FM_GetShiftState done [12:47:07]req_shift_opened done [12:47:07]requested_item shift.open_date is exist - process it [12:47:07]req_shift_open_date [12:47:07]req_shift_open_date done [12:47:07]produce_requested_data done [12:47:07]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:47:07]process_action_free close_receipt [12:47:07]json_value_free [12:47:07]json_value_free done [12:47:07]process_json_proto returns [12:47:07]Send response to host [12:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:47:07]free response buf [12:47:07]execute_script done [12:47:07]execute_script returns [12:47:07]free content buf [12:47:07]Sock 9.Close socket [12:47:07]Sock 9.Thread stoped [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:52]accept exits with 7 [12:51:52]New connection [12:51:52]New thread 3066858852 created [12:51:52]Thread 3067002212 joined [12:51:52]Waiting for new connection... [12:51:52] Sock 7.Parse request [12:51:52]Sock 7.Check first char [12:51:52]Sock 7.First char is OK [12:51:52]request: POST /json_proto HTTP/1.0 [12:51:52]Method: POST [12:51:52]URL: /json_proto [12:51:52]Method is POST - this is cgi request [12:51:52]url: /json_proto [12:51:52]query_string will be loaded in cgi processing [12:51:52]execute_cgi json_proto POST (null) [12:51:52]execute_cgi path=json_proto method=POST [12:51:52]POST find Content-Length [12:51:52]Host: 172.17.49.132:8080 [12:51:52]Content-Length: 1251 [12:51:52]Content-Type: application/json [12:51:52] [12:51:52]POST finish read [12:51:52]Found Content-Length = 1251 [12:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874768\u000A01.08.2024 12:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918622;623;624;625;626;627;628;629;630;631\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:52]execute_script... [12:51:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874768\u000A01.08.2024 12:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918622;623;624;625;626;627;628;629;630;631\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:52]POST & json_proto [12:51:52]process_json_proto [12:51:52]json parsed OK: [12:51:52]protocol is kg_v1.0 [12:51:52]action value=print_text [12:51:52]process_action print_text [12:51:52]cmd_print_text [12:51:52]ExternCall_PrintAddStr [12:51:52]wPrintStart [12:51:52]Write to MH i2c: 01 00 00 B0 AF 5F [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 B0 AF 00 00 00 00 00 FF 0F 74 [12:51:52]RasterBufferAndPrint [12:51:52]line *****ТОВАРНЫЙ ЧЕК***** [12:51:52]line АЗС 125 [12:51:52]line Партнер нефть [12:51:52]line 02508201610067 [12:51:52]line Кассир : Мадаминова Б. [12:51:52]line Счет N : (1)874768 [12:51:52]line 01.08.2024 12:13 [12:51:52]line ПРОДАЖА [12:51:52]line ТРК (МРК, ГНК): 62 [12:51:52]line Вид ГСМ : 2710124130 [12:51:52]line Аи-92-К-5 [12:51:52]line 100.000 x 67.80 [12:51:52]line ИТОГ: 6780.00 [12:51:52]line Тип оплаты: Талоны: Топливные Талоны [12:51:52]line 3918622;623;624;625;626;627;628;629;630;631 [12:51:52]line ______________________ [12:51:52]line (подпись) [12:51:52]written 0, free lines is 4095 [12:51:52]Write to MH i2c: 01 00 00 C5 AF 74 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: 01 07 00 C5 AF 00 00 00 00 00 0E 0E 97 [12:51:52]RasterBufferAndPrint [12:51:52]line [12:51:52]line [12:51:52]line [12:51:52]line [12:51:52]line [12:51:52]written 0, free lines is 3600 [12:51:52]MH_Cut [12:51:52]Write to MH i2c: D1 01 00 CC AF 01 4D [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: D1 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: D1 01 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: D1 01 00 CC AF 00 4C [12:51:52]Write to MH i2c: 01 00 00 CD AF 7C [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:53]*** Cut start [12:51:53]*** Partial cut [12:51:53]*** CUTSNS_PIN = 1 [12:51:53]*** CUTSNS_PIN = 0 [12:51:53]*** Brake cut motor [12:51:53]Read from MH i2c: 01 [12:51:53]MH_I2C_Read... [12:51:53]*** Stop cut motor [12:51:53]*** Cut end [12:51:53]Read from MH i2c: 01 07 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 CD AF 00 00 00 00 00 FF 0F 91 [12:51:53]process_action print_text done [12:51:53]requested_data is exist [12:51:53]produce_requested_data [12:51:53]requested_item fm.sn is exist - process it [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 11 00 00 [12:51:53]Write to MH i2c: E2 08 00 CE AF 80 11 00 00 00 00 00 00 F7 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 CE AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 53 [12:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:51:53]wFMCommunicate OK [12:51:53]requested_item fd.num is exist - process it [12:51:53]SAM_PROTO_GetFieldsCounters [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 13 00 00 [12:51:53]Write to MH i2c: E2 08 00 CF AF 80 13 00 00 00 00 00 00 FA [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 62 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 62 00 CF AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [12:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:54]wFMCommunicate OK [12:51:54]SAM_PROTO_GetFieldsCounters done [12:51:54]requested_item shift.num is exist - process it [12:51:54]requested_item shift.opened is exist - process it [12:51:54]req_shift_opened [12:51:54]FM_GetShiftState [12:51:54]SAM_PROTO_GetShiftState [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 13 01 00 [12:51:54]Write to MH i2c: E2 08 00 D0 AF 80 13 01 00 00 00 00 00 FC [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 0E 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 0E 00 D0 AF 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 35 [12:51:54]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:51:54]wFMCommunicate OK [12:51:54]SAM_PROTO_GetShiftState done [12:51:54]FM_GetShiftState done [12:51:54]req_shift_opened done [12:51:54]requested_item shift.open_date is exist - process it [12:51:54]req_shift_open_date [12:51:54]req_shift_open_date done [12:51:54]produce_requested_data done [12:51:54]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:51:54]process_action_free print_text [12:51:54]json_value_free [12:51:54]json_value_free done [12:51:54]process_json_proto returns [12:51:54]Send response to host [12:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:51:54]free response buf [12:51:54]execute_script done [12:51:54]execute_script returns [12:51:54]free content buf [12:51:54]Sock 7.Close socket [12:51:54]Sock 7.Thread stoped [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:26]accept exits with 9 [12:56:26]New connection [12:56:26]New thread 3067002212 created [12:56:26]Thread 3066858852 joined [12:56:26]Waiting for new connection... [12:56:26] Sock 9.Parse request [12:56:26]Sock 9.Check first char [12:56:26]Sock 9.First char is OK [12:56:26]request: POST /json_proto HTTP/1.0 [12:56:26]Method: POST [12:56:26]URL: /json_proto [12:56:26]Method is POST - this is cgi request [12:56:26]url: /json_proto [12:56:26]query_string will be loaded in cgi processing [12:56:26]execute_cgi json_proto POST (null) [12:56:26]execute_cgi path=json_proto method=POST [12:56:26]POST find Content-Length [12:56:26]Host: 172.17.49.132:8080 [12:56:26]Content-Length: 1251 [12:56:26]Content-Type: application/json [12:56:26] [12:56:26]POST finish read [12:56:26]Found Content-Length = 1251 [12:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874770\u000A01.08.2024 12:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918605;606;607;608;609;610;611;612;613;614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:26]execute_script... [12:56:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874770\u000A01.08.2024 12:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918605;606;607;608;609;610;611;612;613;614\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:26]POST & json_proto [12:56:26]process_json_proto [12:56:26]json parsed OK: [12:56:26]protocol is kg_v1.0 [12:56:26]action value=print_text [12:56:26]process_action print_text [12:56:26]cmd_print_text [12:56:26]ExternCall_PrintAddStr [12:56:26]wPrintStart [12:56:26]Write to MH i2c: 01 00 00 D1 AF 80 [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: 01 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: 01 07 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: 01 07 00 D1 AF 00 00 00 00 00 FF 0F 95 [12:56:26]RasterBufferAndPrint [12:56:26]line *****ТОВАРНЫЙ ЧЕК***** [12:56:26]line АЗС 125 [12:56:26]line Партнер нефть [12:56:26]line 02508201610067 [12:56:26]line Кассир : Мадаминова Б. [12:56:26]line Счет N : (1)874770 [12:56:26]line 01.08.2024 12:17 [12:56:26]line ПРОДАЖА [12:56:26]line ТРК (МРК, ГНК): 62 [12:56:26]line Вид ГСМ : 2710124130 [12:56:26]line Аи-92-К-5 [12:56:26]line 100.000 x 67.80 [12:56:26]line ИТОГ: 6780.00 [12:56:26]line Тип оплаты: Талоны: Топливные Талоны [12:56:26]line 3918605;606;607;608;609;610;611;612;613;614 [12:56:26]line ______________________ [12:56:27]line (подпись) [12:56:27]written 0, free lines is 4095 [12:56:27]OFD Sender: No OFD packet to send [12:56:27]Write to MH i2c: 01 00 00 E6 AF 95 [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 07 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 07 00 E6 AF 00 00 00 00 00 0A 0E B4 [12:56:27]RasterBufferAndPrint [12:56:27]line [12:56:27]line [12:56:27]line [12:56:27]line [12:56:27]line [12:56:27]written 0, free lines is 3596 [12:56:27]MH_Cut [12:56:27]Write to MH i2c: D1 01 00 ED AF 01 6E [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: D1 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: D1 01 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: D1 01 00 ED AF 00 6D [12:56:27]Write to MH i2c: 01 00 00 EE AF 9D [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]*** Cut start [12:56:27]*** Partial cut [12:56:27]*** CUTSNS_PIN = 1 [12:56:27]*** CUTSNS_PIN = 0 [12:56:28]*** Brake cut motor [12:56:28]Read from MH i2c: 01 [12:56:28]MH_I2C_Read... [12:56:28]*** Stop cut motor [12:56:28]*** Cut end [12:56:28]Read from MH i2c: 01 07 00 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: 01 07 00 EE AF 00 00 00 00 00 FF 0F B2 [12:56:28]process_action print_text done [12:56:28]requested_data is exist [12:56:28]produce_requested_data [12:56:28]requested_item fm.sn is exist - process it [12:56:28]wFMCommunicate request_size=4 [12:56:28]MH_SAM_APDU [12:56:28]CAPDU: 80 11 00 00 [12:56:28]Write to MH i2c: E2 08 00 EF AF 80 11 00 00 00 00 00 00 18 [12:56:28]Write i2c OK [12:56:28]MH_I2C_Read... [12:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:28]Read from MH i2c: E2 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: E2 17 00 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: E2 17 00 EF AF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 74 [12:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [12:56:28]wFMCommunicate OK [12:56:28]requested_item fd.num is exist - process it [12:56:28]SAM_PROTO_GetFieldsCounters [12:56:28]wFMCommunicate request_size=4 [12:56:28]MH_SAM_APDU [12:56:28]CAPDU: 80 13 00 00 [12:56:28]Write to MH i2c: E2 08 00 F0 AF 80 13 00 00 00 00 00 00 1B [12:56:28]Write i2c OK [12:56:28]MH_I2C_Read... [12:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:28]Read from MH i2c: E2 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: E2 62 00 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: E2 62 00 F0 AF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [12:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:28]wFMCommunicate OK [12:56:28]SAM_PROTO_GetFieldsCounters done [12:56:28]requested_item shift.num is exist - process it [12:56:28]requested_item shift.opened is exist - process it [12:56:28]req_shift_opened [12:56:28]FM_GetShiftState [12:56:28]SAM_PROTO_GetShiftState [12:56:28]wFMCommunicate request_size=4 [12:56:28]MH_SAM_APDU [12:56:28]CAPDU: 80 13 01 00 [12:56:28]Write to MH i2c: E2 08 00 F1 AF 80 13 01 00 00 00 00 00 1D [12:56:28]Write i2c OK [12:56:28]MH_I2C_Read... [12:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:28]Read from MH i2c: E2 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: E2 0E 00 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: E2 0E 00 F1 AF 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 56 [12:56:28]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [12:56:28]wFMCommunicate OK [12:56:28]SAM_PROTO_GetShiftState done [12:56:28]FM_GetShiftState done [12:56:28]req_shift_opened done [12:56:28]requested_item shift.open_date is exist - process it [12:56:28]req_shift_open_date [12:56:28]req_shift_open_date done [12:56:28]produce_requested_data done [12:56:28]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [12:56:28]process_action_free print_text [12:56:28]json_value_free [12:56:28]json_value_free done [12:56:28]process_json_proto returns [12:56:28]Send response to host [12:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [12:56:28]free response buf [12:56:28]execute_script done [12:56:28]execute_script returns [12:56:28]free content buf [12:56:28]Sock 9.Close socket [12:56:28]Sock 9.Thread stoped [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:46]accept exits with 7 [13:01:46]New connection [13:01:46]New thread 3066858852 created [13:01:46]Thread 3067002212 joined [13:01:46]Waiting for new connection... [13:01:46] Sock 7.Parse request [13:01:46]Sock 7.Check first char [13:01:46]Sock 7.First char is OK [13:01:46]request: POST /json_proto HTTP/1.0 [13:01:46]Method: POST [13:01:46]URL: /json_proto [13:01:46]Method is POST - this is cgi request [13:01:46]url: /json_proto [13:01:46]query_string will be loaded in cgi processing [13:01:46]execute_cgi json_proto POST (null) [13:01:46]execute_cgi path=json_proto method=POST [13:01:46]POST find Content-Length [13:01:46]Host: 172.17.49.132:8080 [13:01:46]Content-Length: 1255 [13:01:46]Content-Type: application/json [13:01:46] [13:01:46]POST finish read [13:01:46]Found Content-Length = 1255 [13:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874773\u000A01.08.2024 12:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918615;616;617;618;619;620;621;632;3548740;739\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:46]execute_script... [13:01:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874773\u000A01.08.2024 12:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918615;616;617;618;619;620;621;632;3548740;739\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:46]POST & json_proto [13:01:46]process_json_proto [13:01:46]json parsed OK: [13:01:46]protocol is kg_v1.0 [13:01:46]action value=print_text [13:01:46]process_action print_text [13:01:46]cmd_print_text [13:01:46]ExternCall_PrintAddStr [13:01:46]wPrintStart [13:01:46]Write to MH i2c: 01 00 00 F2 AF A1 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 07 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 07 00 F2 AF 00 00 00 00 00 FF 0F B6 [13:01:46]RasterBufferAndPrint [13:01:46]line *****ТОВАРНЫЙ ЧЕК***** [13:01:46]line АЗС 125 [13:01:46]line Партнер нефть [13:01:46]line 02508201610067 [13:01:46]line Кассир : Мадаминова Б. [13:01:46]line Счет N : (1)874773 [13:01:46]line 01.08.2024 12:22 [13:01:46]line ПРОДАЖА [13:01:46]line ТРК (МРК, ГНК): 52 [13:01:46]line Вид ГСМ : 2710124130 [13:01:46]line Аи-92-К-5 [13:01:46]line 100.000 x 67.80 [13:01:46]line ИТОГ: 6780.00 [13:01:46]line Тип оплаты: Талоны: Топливные Талоны [13:01:46]line 3918615;616;617;618;619;620;621;632;3548740;739 [13:01:46]line ______________________ [13:01:46]line (подпись) [13:01:46]written 0, free lines is 4095 [13:01:46]Write to MH i2c: 01 00 00 07 B0 B7 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 07 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: 01 07 00 07 B0 00 00 00 00 00 0F 0E DB [13:01:46]RasterBufferAndPrint [13:01:46]line [13:01:46]line [13:01:46]line [13:01:46]line [13:01:46]line [13:01:46]written 0, free lines is 3601 [13:01:46]MH_Cut [13:01:46]Write to MH i2c: D1 01 00 0E B0 01 90 [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: D1 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: D1 01 00 [13:01:46]MH_I2C_Read... [13:01:46]Read from MH i2c: D1 01 00 0E B0 00 8F [13:01:46]Write to MH i2c: 01 00 00 0F B0 BF [13:01:46]Write i2c OK [13:01:46]MH_I2C_Read... [13:01:47]*** Cut start [13:01:47]*** Partial cut [13:01:47]*** CUTSNS_PIN = 1 [13:01:47]*** CUTSNS_PIN = 0 [13:01:47]*** Brake cut motor [13:01:47]OFD Sender: No OFD packet to send [13:01:47]Read from MH i2c: 01 [13:01:47]MH_I2C_Read... [13:01:47]*** Stop cut motor [13:01:47]*** Cut end [13:01:47]Read from MH i2c: 01 07 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 07 00 0F B0 00 00 00 00 00 FF 0F D4 [13:01:47]process_action print_text done [13:01:47]requested_data is exist [13:01:47]produce_requested_data [13:01:47]requested_item fm.sn is exist - process it [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 11 00 00 [13:01:47]Write to MH i2c: E2 08 00 10 B0 80 11 00 00 00 00 00 00 3A [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 17 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 17 00 10 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [13:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:01:47]wFMCommunicate OK [13:01:47]requested_item fd.num is exist - process it [13:01:47]SAM_PROTO_GetFieldsCounters [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 13 00 00 [13:01:47]Write to MH i2c: E2 08 00 11 B0 80 13 00 00 00 00 00 00 3D [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 62 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 62 00 11 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [13:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:47]wFMCommunicate OK [13:01:47]SAM_PROTO_GetFieldsCounters done [13:01:47]requested_item shift.num is exist - process it [13:01:47]requested_item shift.opened is exist - process it [13:01:47]req_shift_opened [13:01:47]FM_GetShiftState [13:01:47]SAM_PROTO_GetShiftState [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 13 01 00 [13:01:47]Write to MH i2c: E2 08 00 12 B0 80 13 01 00 00 00 00 00 3F [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 0E 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 0E 00 12 B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 78 [13:01:47]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:01:47]wFMCommunicate OK [13:01:47]SAM_PROTO_GetShiftState done [13:01:47]FM_GetShiftState done [13:01:47]req_shift_opened done [13:01:47]requested_item shift.open_date is exist - process it [13:01:47]req_shift_open_date [13:01:47]req_shift_open_date done [13:01:47]produce_requested_data done [13:01:47]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:01:47]process_action_free print_text [13:01:47]json_value_free [13:01:47]json_value_free done [13:01:47]process_json_proto returns [13:01:47]Send response to host [13:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:01:47]free response buf [13:01:47]execute_script done [13:01:47]execute_script returns [13:01:47]free content buf [13:01:47]Sock 7.Close socket [13:01:47]Sock 7.Thread stoped [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]accept exits with 9 [13:02:02]New connection [13:02:02]New thread 3067002212 created [13:02:02]Thread 3066858852 joined [13:02:02]Waiting for new connection... [13:02:02] Sock 9.Parse request [13:02:02]Sock 9.Check first char [13:02:02]Sock 9.First char is OK [13:02:02]request: POST /json_proto HTTP/1.0 [13:02:02]Method: POST [13:02:02]URL: /json_proto [13:02:02]Method is POST - this is cgi request [13:02:02]url: /json_proto [13:02:02]query_string will be loaded in cgi processing [13:02:02]execute_cgi json_proto POST (null) [13:02:02]execute_cgi path=json_proto method=POST [13:02:02]POST find Content-Length [13:02:02]Host: 172.17.49.132:8080 [13:02:02]Content-Length: 1251 [13:02:02]Content-Type: application/json [13:02:02] [13:02:02]POST finish read [13:02:02]Found Content-Length = 1251 [13:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874775\u000A01.08.2024 12:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548729;730;731;732;733;734;735;736;737;738\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:02]execute_script... [13:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874775\u000A01.08.2024 12:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548729;730;731;732;733;734;735;736;737;738\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:02]POST & json_proto [13:02:02]process_json_proto [13:02:02]json parsed OK: [13:02:02]protocol is kg_v1.0 [13:02:02]action value=print_text [13:02:02]process_action print_text [13:02:02]cmd_print_text [13:02:02]ExternCall_PrintAddStr [13:02:02]wPrintStart [13:02:02]Write to MH i2c: 01 00 00 13 B0 C3 [13:02:02]Write i2c OK [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 07 00 [13:02:02]MH_I2C_Read... [13:02:02]Read from MH i2c: 01 07 00 13 B0 00 00 00 00 00 FF 0F D8 [13:02:02]RasterBufferAndPrint [13:02:02]line *****ТОВАРНЫЙ ЧЕК***** [13:02:02]line АЗС 125 [13:02:02]line Партнер нефть [13:02:02]line 02508201610067 [13:02:02]line Кассир : Мадаминова Б. [13:02:02]line Счет N : (1)874775 [13:02:02]line 01.08.2024 12:23 [13:02:02]line ПРОДАЖА [13:02:02]line ТРК (МРК, ГНК): 62 [13:02:02]line Вид ГСМ : 2710124130 [13:02:02]line Аи-92-К-5 [13:02:02]line 100.000 x 67.80 [13:02:02]line ИТОГ: 6780.00 [13:02:02]line Тип оплаты: Талоны: Топливные Талоны [13:02:02]line 3548729;730;731;732;733;734;735;736;737;738 [13:02:02]line ______________________ [13:02:02]line (подпись) [13:02:02]OFD Sender: No OFD packet to send [13:02:02]written 0, free lines is 4095 [13:02:03]Write to MH i2c: 01 00 00 28 B0 D8 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: 01 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: 01 07 00 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: 01 07 00 28 B0 00 00 00 00 00 0A 0E F7 [13:02:03]RasterBufferAndPrint [13:02:03]line [13:02:03]line [13:02:03]line [13:02:03]line [13:02:03]line [13:02:03]written 0, free lines is 3596 [13:02:03]MH_Cut [13:02:03]Write to MH i2c: D1 01 00 2F B0 01 B1 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: D1 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: D1 01 00 [13:02:03]MH_I2C_Read... [13:02:03]Read from MH i2c: D1 01 00 2F B0 00 B0 [13:02:03]Write to MH i2c: 01 00 00 30 B0 E0 [13:02:03]Write i2c OK [13:02:03]MH_I2C_Read... [13:02:03]*** Cut start [13:02:03]*** Partial cut [13:02:03]*** CUTSNS_PIN = 1 [13:02:03]*** CUTSNS_PIN = 0 [13:02:03]*** Brake cut motor [13:02:04]Read from MH i2c: 01 [13:02:04]MH_I2C_Read... [13:02:04]*** Stop cut motor [13:02:04]*** Cut end [13:02:04]Read from MH i2c: 01 07 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: 01 07 00 30 B0 00 00 00 00 00 FF 0F F5 [13:02:04]process_action print_text done [13:02:04]requested_data is exist [13:02:04]produce_requested_data [13:02:04]requested_item fm.sn is exist - process it [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 11 00 00 [13:02:04]Write to MH i2c: E2 08 00 31 B0 80 11 00 00 00 00 00 00 5B [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 17 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 17 00 31 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B7 [13:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:02:04]wFMCommunicate OK [13:02:04]requested_item fd.num is exist - process it [13:02:04]SAM_PROTO_GetFieldsCounters [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 13 00 00 [13:02:04]Write to MH i2c: E2 08 00 32 B0 80 13 00 00 00 00 00 00 5E [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 62 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 62 00 32 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [13:02:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:04]wFMCommunicate OK [13:02:04]SAM_PROTO_GetFieldsCounters done [13:02:04]requested_item shift.num is exist - process it [13:02:04]requested_item shift.opened is exist - process it [13:02:04]req_shift_opened [13:02:04]FM_GetShiftState [13:02:04]SAM_PROTO_GetShiftState [13:02:04]wFMCommunicate request_size=4 [13:02:04]MH_SAM_APDU [13:02:04]CAPDU: 80 13 01 00 [13:02:04]Write to MH i2c: E2 08 00 33 B0 80 13 01 00 00 00 00 00 60 [13:02:04]Write i2c OK [13:02:04]MH_I2C_Read... [13:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:04]Read from MH i2c: E2 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 0E 00 [13:02:04]MH_I2C_Read... [13:02:04]Read from MH i2c: E2 0E 00 33 B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 99 [13:02:04]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:02:04]wFMCommunicate OK [13:02:04]SAM_PROTO_GetShiftState done [13:02:04]FM_GetShiftState done [13:02:04]req_shift_opened done [13:02:04]requested_item shift.open_date is exist - process it [13:02:04]req_shift_open_date [13:02:04]req_shift_open_date done [13:02:04]produce_requested_data done [13:02:04]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:02:04]process_action_free print_text [13:02:04]json_value_free [13:02:04]json_value_free done [13:02:04]process_json_proto returns [13:02:04]Send response to host [13:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69900,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:02:04]free response buf [13:02:04]execute_script done [13:02:04]execute_script returns [13:02:04]free content buf [13:02:04]Sock 9.Close socket [13:02:04]Sock 9.Thread stoped [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:18]accept exits with 7 [13:03:18]New connection [13:03:18]New thread 3066858852 created [13:03:18]Thread 3067002212 joined [13:03:18]Waiting for new connection... [13:03:18] Sock 7.Parse request [13:03:18]Sock 7.Check first char [13:03:18]Sock 7.First char is OK [13:03:18]request: POST /json_proto HTTP/1.0 [13:03:18]Method: POST [13:03:18]URL: /json_proto [13:03:18]Method is POST - this is cgi request [13:03:18]url: /json_proto [13:03:18]query_string will be loaded in cgi processing [13:03:18]execute_cgi json_proto POST (null) [13:03:18]execute_cgi path=json_proto method=POST [13:03:18]POST find Content-Length [13:03:18]Host: 172.17.49.132:8080 [13:03:18]Content-Length: 622 [13:03:18]Content-Type: application/json [13:03:18] [13:03:18]POST finish read [13:03:18]Found Content-Length = 622 [13:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137129", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:18]execute_script... [13:03: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 : (3)137129", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:18]POST & json_proto [13:03:18]process_json_proto [13:03:18]json parsed OK: [13:03:18]protocol is kg_v1.0 [13:03:18]action value=close_receipt [13:03:18]process_action close_receipt [13:03:18]cmd_close_receipt [13:03:18]MH_GetDate [13:03:18]Write to MH i2c: F0 00 00 34 B0 D3 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: F0 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: F0 09 00 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: F0 09 00 34 B0 00 A9 87 AB 66 E7 4B C0 64 73 [13:03:18]GetLastDocTimeStamp 1722516442 [13:03:18]current date 1722517417 [13:03:18]FM_GetShiftState [13:03:18]SAM_PROTO_GetShiftState [13:03:18]wFMCommunicate request_size=4 [13:03:18]MH_SAM_APDU [13:03:18]CAPDU: 80 13 01 00 [13:03:18]Write to MH i2c: E2 08 00 35 B0 80 13 01 00 00 00 00 00 62 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:18]Read from MH i2c: E2 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 0E 00 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 0E 00 35 B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 9B [13:03:18]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:03:18]wFMCommunicate OK [13:03:18]SAM_PROTO_GetShiftState done [13:03:18]FM_GetShiftState done [13:03:18]opened in 1722472772 [13:03:18]opened+sec_in_day 1722559172 [13:03:18]quantity*price = 15000 [13:03:18]sum+1 = 15001 [13:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 64 01.08.2024 13:03 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69901 ФПД: 174843680741651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T130337&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69901&fm=174843680741651&tin=02508201610067®Number=0000000000092638&sum=15000 0 [13:03:19]StoreToDocumentArchive [13:03:19]shift 433 fd 69901 [13:03:19]save to /storage/0433/doc_00069901 [13:03:19]save last doc name /storage/0433/doc_00069901 to /storage/kkm_last_doc_name [13:03:19]save OK [13:03:19]Clear old archive folders... [13:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:03:19]tlvbuf is 012847D0 [13:03:19]SAM_PROTO_ClearQueue [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 09 00 00 [13:03:19]Write to MH i2c: E2 08 00 42 B0 80 09 00 00 00 00 00 00 64 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 42 B0 00 90 00 66 [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]SAM_PROTO_ClearQueue done [13:03:19]KKMCreateOFDPacket [13:03:19]OFDProtocolAddRootSTLVToBuf [13:03:19]FM_MakeSignedData [13:03:19]FM_MakeSignedData [13:03:19]SAM_PROTO_SignData [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 01 02 [13:03:19]Write to MH i2c: E2 08 00 43 B0 80 0D 01 02 00 00 00 00 6C [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:20]Read from MH i2c: E2 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 03 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 03 00 43 B0 00 90 00 67 [13:03:20]RAPDU: 90 00 [13:03:20]wFMCommunicate OK [13:03:20]wFMCommunicate request_size=255 [13:03:20]MH_SAM_APDU [13:03:20]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 87 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 [13:03:20]Write to MH i2c: E2 02 01 44 B0 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 87 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 00 00 3F [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:20]Read from MH i2c: E2 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 03 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 03 00 44 B0 00 90 00 68 [13:03:20]RAPDU: 90 00 [13:03:20]wFMCommunicate OK [13:03:20]wFMCommunicate request_size=33 [13:03:20]MH_SAM_APDU [13:03:20]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0D 11 01 00 35 04 06 00 9F 04 F7 7B 59 13 [13:03:20]Write to MH i2c: E2 24 00 45 B0 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0D 11 01 00 35 04 06 00 9F 04 F7 7B 59 13 00 00 A7 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:20]Read from MH i2c: E2 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 03 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 03 00 45 B0 00 90 00 69 [13:03:20]RAPDU: 90 00 [13:03:20]wFMCommunicate OK [13:03:20]wFMCommunicate request_size=4 [13:03:20]MH_SAM_APDU [13:03:20]CAPDU: 80 0D 03 02 [13:03:20]Write to MH i2c: E2 08 00 46 B0 80 0D 03 02 00 00 00 00 71 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:20]Read from MH i2c: E2 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 0B 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 0B 00 46 B0 00 B8 9E 7B 55 2A 53 04 E7 90 00 00 [13:03:20]RAPDU: B8 9E 7B 55 2A 53 04 E7 90 00 [13:03:20]wFMCommunicate OK [13:03:20]SAM_PROTO_SignData done [13:03:20]FM_MakeSignedData done [13:03:20]CreateOFDProtocolMessage [13:03:20]wFMCommunicate request_size=4 [13:03:20]MH_SAM_APDU [13:03:20]CAPDU: 80 11 00 00 [13:03:20]Write to MH i2c: E2 08 00 47 B0 80 11 00 00 00 00 00 00 71 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:20]Read from MH i2c: E2 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 17 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: E2 17 00 47 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CD [13:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:03:20]wFMCommunicate OK [13:03:20]CreateOFDProtocolMessage done [13:03:20]OFDSenderStorePacket 69901 [13:03:20]StoreOFDPacket docnum=69901 [13:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 26 01 00 00 EE 5B 1E 01 DA 88 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 87 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0D 11 01 00 35 04 06 00 9F 04 F7 7B 59 13 B8 9E 7B 55 2A 53 04 E7 [13:03:20]CheckFolder [13:03:20]dirname=/storage/ofd_packets [13:03:20]CheckFolder done [13:03:20]ProducePacketName [13:03:20]name=ofd_packets/00069901 [13:03:20]NVStorageSaveData ofd_packets/00069901 [13:03:20]File name is /storage/ofd_packets/00069901 [13:03:20]Write 324 bytes [13:03:20]NVStorageSaveData done [13:03:20]OFDSenderStorePacket done [13:03:20]KKMCreateOFDPacket done [13:03:20]NVStorageSaveData kkm_last_timestamp [13:03:20]File name is /storage/kkm_last_timestamp [13:03:20]Write 4 bytes [13:03:20]NVStorageSaveData done [13:03:20]ExternCall_PrintAddStr [13:03:20]wPrintStart [13:03:20]Write to MH i2c: 01 00 00 48 B0 F8 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 07 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 07 00 48 B0 00 00 00 00 00 FF 0F 0D [13:03:20]RasterBufferAndPrint [13:03:20]line Счет N : (3)137129 [13:03:20]line ИНН: 02508201610067 [13:03:20]line Контрольно-Кассовый Чек [13:03:20]line ПРОДАЖА [13:03:20]line Товар: 4640030091645 [13:03:20]line Сигареты ESSE Exchange M [13:03:20]line 1.000 * 150.00 [13:03:20]line = 150.00 [13:03:20]line НДС 12% НСП 1% [13:03:20]line > о реализуемом товаре [13:03:20]line ИТОГО: 150.00 [13:03:20]line НСП 1% : 1.33 [13:03:20]line НДС 12% : 15.93 [13:03:20]line Наличными: 150.00 [13:03:20]line Безнал.: 0.00 [13:03:20]line Место: АЗС № 125 "Партнер Нефть" [13:03:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:03:20]line СНО: Общий режим [13:03:20]line Чек 64 01.08.2024 13:03 [13:03:20]line Смена: 433 ФФД: 1.0 [13:03:20]line ЗНМ: 0300000049 [13:03:20]line РНМ: 0000000000092638 [13:03:20]line Версия ККМ: 001 [13:03:20]line ФМ: 0000000000874949 [13:03:20]line ФД: 69901 [13:03:20]line ФПД: 174843680741651 [13:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T130337&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69901&fm=174843680741651&tin=02508201610067®Number=0000000000092638&sum=15000 [13:03:20]line 0 [13:03:20]written 0, free lines is 4095 [13:03:20]OFD Sender: Processing packet 69901 [packets to send 19, broken 18] [13:03:20]ProducePacketName [13:03:20]name=ofd_packets/00069901 [13:03:20]OFD Sender: To server: pG, [13:03:20]CommunicateWithHost lk.salyk.kg:30040 [13:03:20]ConnectInit lk.salyk.kg [13:03:20]Connected sock=10 [13:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 26 01 00 00 EE 5B 1E 01 DA 88 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 87 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0D 11 01 00 35 04 06 00 9F 04 F7 7B 59 13 B8 9E 7B 55 2A 53 04 E7 [13:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 10 E0 47 00 3B 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 34 39 34 39 10 04 04 00 0D 11 01 00 F4 03 04 00 0A 2E AB 66 B6 04 01 00 00 96 AD C6 C7 01 ED B2 9A [13:03:21]CommunicateWithHost err = 0 [13:03:21]CheckOFDResponse [13:03:21]1017 (14) - 77093643461234 [13:03:21]1041 (16) - 0000000000874949 [13:03:21]1040 (4) - 69901 [13:03:21]1012 (4) - 01.08.2024 06:41 [13:03:21]1206 (1) - 0 [13:03:21]OFD Sender: Remove packet 69901 [13:03:21]ProducePacketName [13:03:21]name=ofd_packets/00069901 [13:03:21]NVStorageDeleteData [13:03:21]Write to MH i2c: 01 00 00 70 B0 20 [13:03:21]Write i2c OK [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: 01 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: 01 07 00 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: 01 07 00 70 B0 00 00 00 00 00 24 0D 58 [13:03:21]RasterBufferAndPrint [13:03:21]line [13:03:21]line [13:03:21]line [13:03:21]line [13:03:21]line [13:03:21]written 0, free lines is 3370 [13:03:21]MH_Cut [13:03:21]Write to MH i2c: D1 01 00 77 B0 01 F9 [13:03:21]Write i2c OK [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: D1 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: D1 01 00 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: D1 01 00 77 B0 00 F8 [13:03:21]Write to MH i2c: 01 00 00 78 B0 28 [13:03:21]Write i2c OK [13:03:21]MH_I2C_Read... [13:03:21]OFD Sender: No OFD packet to send [13:03:21]*** Cut start [13:03:21]*** Partial cut [13:03:21]*** CUTSNS_PIN = 1 [13:03:21]*** CUTSNS_PIN = 0 [13:03:22]*** Brake cut motor [13:03:22]Read from MH i2c: 01 [13:03:22]MH_I2C_Read... [13:03:22]*** Stop cut motor [13:03:22]*** Cut end [13:03:22]Read from MH i2c: 01 07 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: 01 07 00 78 B0 00 00 00 00 00 FF 0F 3D [13:03:22]process_action close_receipt done [13:03:22]requested_data is exist [13:03:22]produce_requested_data [13:03:22]requested_item fm.sn is exist - process it [13:03:22]wFMCommunicate request_size=4 [13:03:22]MH_SAM_APDU [13:03:22]CAPDU: 80 11 00 00 [13:03:22]Write to MH i2c: E2 08 00 79 B0 80 11 00 00 00 00 00 00 A3 [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:22]Read from MH i2c: E2 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 17 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 17 00 79 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 FF [13:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:03:22]wFMCommunicate OK [13:03:22]requested_item fd.num is exist - process it [13:03:22]SAM_PROTO_GetFieldsCounters [13:03:22]wFMCommunicate request_size=4 [13:03:22]MH_SAM_APDU [13:03:22]CAPDU: 80 13 00 00 [13:03:22]Write to MH i2c: E2 08 00 7A B0 80 13 00 00 00 00 00 00 A6 [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:22]Read from MH i2c: E2 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 62 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 62 00 7A B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0D 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [13:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0D 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:22]wFMCommunicate OK [13:03:22]SAM_PROTO_GetFieldsCounters done [13:03:22]requested_item shift.num is exist - process it [13:03:22]requested_item shift.opened is exist - process it [13:03:22]req_shift_opened [13:03:22]FM_GetShiftState [13:03:22]SAM_PROTO_GetShiftState [13:03:22]wFMCommunicate request_size=4 [13:03:22]MH_SAM_APDU [13:03:22]CAPDU: 80 13 01 00 [13:03:22]Write to MH i2c: E2 08 00 7B B0 80 13 01 00 00 00 00 00 A8 [13:03:22]Write i2c OK [13:03:22]MH_I2C_Read... [13:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:22]Read from MH i2c: E2 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 0E 00 [13:03:22]MH_I2C_Read... [13:03:22]Read from MH i2c: E2 0E 00 7B B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 E1 [13:03:22]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:03:22]wFMCommunicate OK [13:03:22]SAM_PROTO_GetShiftState done [13:03:22]FM_GetShiftState done [13:03:22]req_shift_opened done [13:03:22]requested_item shift.open_date is exist - process it [13:03:22]req_shift_open_date [13:03:22]req_shift_open_date done [13:03:22]produce_requested_data done [13:03:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69901,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:03:22]process_action_free close_receipt [13:03:22]json_value_free [13:03:22]json_value_free done [13:03:22]process_json_proto returns [13:03:22]Send response to host [13:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69901,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:03:22]free response buf [13:03:22]execute_script done [13:03:22]execute_script returns [13:03:22]free content buf [13:03:22]Sock 7.Close socket [13:03:22]Sock 7.Thread stoped [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:15]accept exits with 9 [13:05:15]New connection [13:05:15]New thread 3067002212 created [13:05:15]Thread 3066858852 joined [13:05:15]Waiting for new connection... [13:05:15] Sock 9.Parse request [13:05:15]Sock 9.Check first char [13:05:15]Sock 9.First char is OK [13:05:15]request: POST /json_proto HTTP/1.0 [13:05:15]Method: POST [13:05:15]URL: /json_proto [13:05:15]Method is POST - this is cgi request [13:05:15]url: /json_proto [13:05:15]query_string will be loaded in cgi processing [13:05:15]execute_cgi json_proto POST (null) [13:05:15]execute_cgi path=json_proto method=POST [13:05:15]POST find Content-Length [13:05:15]Host: 172.17.49.132:8080 [13:05:15]Content-Length: 669 [13:05:15]Content-Type: application/json [13:05:15] [13:05:15]POST finish read [13:05:15]Found Content-Length = 669 [13:05:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137130", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:15]execute_script... [13:05: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 : (3)137130", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:15]POST & json_proto [13:05:15]process_json_proto [13:05:15]json parsed OK: [13:05:15]protocol is kg_v1.0 [13:05:15]action value=close_receipt [13:05:15]process_action close_receipt [13:05:15]cmd_close_receipt [13:05:15]MH_GetDate [13:05:15]Write to MH i2c: F0 00 00 7C B0 1B [13:05:15]Write i2c OK [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: F0 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: F0 09 00 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: F0 09 00 7C B0 00 1E 88 AB 66 E7 4B C0 64 31 [13:05:15]GetLastDocTimeStamp 1722517417 [13:05:15]current date 1722517534 [13:05:15]FM_GetShiftState [13:05:15]SAM_PROTO_GetShiftState [13:05:15]wFMCommunicate request_size=4 [13:05:15]MH_SAM_APDU [13:05:15]CAPDU: 80 13 01 00 [13:05:15]Write to MH i2c: E2 08 00 7D B0 80 13 01 00 00 00 00 00 AA [13:05:15]Write i2c OK [13:05:15]MH_I2C_Read... [13:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:15]Read from MH i2c: E2 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: E2 0E 00 [13:05:15]MH_I2C_Read... [13:05:15]Read from MH i2c: E2 0E 00 7D B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 E3 [13:05:15]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:05:15]wFMCommunicate OK [13:05:15]SAM_PROTO_GetShiftState done [13:05:15]FM_GetShiftState done [13:05:15]opened in 1722472772 [13:05:15]opened+sec_in_day 1722559172 [13:05:15]quantity*price = 6500 [13:05:15]sum+1 = 6501 [13:05:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 65 01.08.2024 13:05 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69902 ФПД: 193593468965509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T130534&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69902&fm=193593468965509&tin=02508201610067®Number=0000000000092638&sum=6500 0 [13:05:16]StoreToDocumentArchive [13:05:16]shift 433 fd 69902 [13:05:16]save to /storage/0433/doc_00069902 [13:05:16]save last doc name /storage/0433/doc_00069902 to /storage/kkm_last_doc_name [13:05:16]save OK [13:05:16]Clear old archive folders... [13:05:16]ProcessDocumentItem done err = 0, tmpTLVsize=284 [13:05:16]tlvbuf is 0125DBE0 [13:05:16]SAM_PROTO_ClearQueue [13:05:16]wFMCommunicate request_size=4 [13:05:16]MH_SAM_APDU [13:05:16]CAPDU: 80 09 00 00 [13:05:16]Write to MH i2c: E2 08 00 8A B0 80 09 00 00 00 00 00 00 AC [13:05:16]Write i2c OK [13:05:16]MH_I2C_Read... [13:05:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:16]Read from MH i2c: E2 [13:05:16]MH_I2C_Read... [13:05:16]Read from MH i2c: E2 03 00 [13:05:16]MH_I2C_Read... [13:05:16]Read from MH i2c: E2 03 00 8A B0 00 90 00 AE [13:05:16]RAPDU: 90 00 [13:05:16]wFMCommunicate OK [13:05:16]SAM_PROTO_ClearQueue done [13:05:16]KKMCreateOFDPacket [13:05:16]OFDProtocolAddRootSTLVToBuf [13:05:16]FM_MakeSignedData [13:05:16]FM_MakeSignedData [13:05:16]SAM_PROTO_SignData [13:05:16]wFMCommunicate request_size=4 [13:05:16]MH_SAM_APDU [13:05:16]CAPDU: 80 0D 01 02 [13:05:16]Write to MH i2c: E2 08 00 8B B0 80 0D 01 02 00 00 00 00 B4 [13:05:16]Write i2c OK [13:05:16]MH_I2C_Read... [13:05:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:16]Read from MH i2c: E2 [13:05:16]MH_I2C_Read... [13:05:16]Read from MH i2c: E2 03 00 [13:05:16]MH_I2C_Read... [13:05:16]Read from MH i2c: E2 03 00 8B B0 00 90 00 AF [13:05:16]RAPDU: 90 00 [13:05:16]wFMCommunicate OK [13:05:16]wFMCommunicate request_size=255 [13:05:16]MH_SAM_APDU [13:05:16]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1E 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [13:05:16]Write to MH i2c: E2 02 01 8C B0 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1E 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 ED [13:05:16]Write i2c OK [13:05:16]MH_I2C_Read... [13:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:17]Read from MH i2c: E2 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 03 00 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 03 00 8C B0 00 90 00 B0 [13:05:17]RAPDU: 90 00 [13:05:17]wFMCommunicate OK [13:05:17]wFMCommunicate request_size=43 [13:05:17]MH_SAM_APDU [13:05:17]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0E 11 01 00 35 04 06 00 B0 12 7D F2 D2 85 [13:05:17]Write to MH i2c: E2 2E 00 8D B0 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0E 11 01 00 35 04 06 00 B0 12 7D F2 D2 85 00 00 50 [13:05:17]Write i2c OK [13:05:17]MH_I2C_Read... [13:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:17]Read from MH i2c: E2 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 03 00 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 03 00 8D B0 00 90 00 B1 [13:05:17]RAPDU: 90 00 [13:05:17]wFMCommunicate OK [13:05:17]wFMCommunicate request_size=4 [13:05:17]MH_SAM_APDU [13:05:17]CAPDU: 80 0D 03 02 [13:05:17]Write to MH i2c: E2 08 00 8E B0 80 0D 03 02 00 00 00 00 B9 [13:05:17]Write i2c OK [13:05:17]MH_I2C_Read... [13:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:17]Read from MH i2c: E2 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 0B 00 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 0B 00 8E B0 00 5A 64 DF 6A D9 54 65 EB 90 00 3E [13:05:17]RAPDU: 5A 64 DF 6A D9 54 65 EB 90 00 [13:05:17]wFMCommunicate OK [13:05:17]SAM_PROTO_SignData done [13:05:17]FM_MakeSignedData done [13:05:17]CreateOFDProtocolMessage [13:05:17]wFMCommunicate request_size=4 [13:05:17]MH_SAM_APDU [13:05:17]CAPDU: 80 11 00 00 [13:05:17]Write to MH i2c: E2 08 00 8F B0 80 11 00 00 00 00 00 00 B9 [13:05:17]Write i2c OK [13:05:17]MH_I2C_Read... [13:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:17]Read from MH i2c: E2 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 17 00 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: E2 17 00 8F B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 15 [13:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:05:17]wFMCommunicate OK [13:05:17]CreateOFDProtocolMessage done [13:05:17]OFDSenderStorePacket 69902 [13:05:17]StoreOFDPacket docnum=69902 [13:05:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 30 01 00 00 75 08 28 01 6B AA 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1E 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0E 11 01 00 35 04 06 00 B0 12 7D F2 D2 85 5A 64 DF 6A D9 54 65 EB [13:05:17]CheckFolder [13:05:17]dirname=/storage/ofd_packets [13:05:17]CheckFolder done [13:05:17]ProducePacketName [13:05:17]name=ofd_packets/00069902 [13:05:17]NVStorageSaveData ofd_packets/00069902 [13:05:17]File name is /storage/ofd_packets/00069902 [13:05:17]Write 334 bytes [13:05:17]NVStorageSaveData done [13:05:17]OFDSenderStorePacket done [13:05:17]KKMCreateOFDPacket done [13:05:17]NVStorageSaveData kkm_last_timestamp [13:05:17]File name is /storage/kkm_last_timestamp [13:05:17]Write 4 bytes [13:05:17]NVStorageSaveData done [13:05:17]ExternCall_PrintAddStr [13:05:17]wPrintStart [13:05:17]Write to MH i2c: 01 00 00 90 B0 40 [13:05:17]Write i2c OK [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: 01 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: 01 07 00 [13:05:17]MH_I2C_Read... [13:05:17]Read from MH i2c: 01 07 00 90 B0 00 00 00 00 00 FF 0F 55 [13:05:17]RasterBufferAndPrint [13:05:17]line Счет N : (3)137130 [13:05:17]line ИНН: 02508201610067 [13:05:17]line Контрольно-Кассовый Чек [13:05:17]line ПРОДАЖА [13:05:17]line Товар: 4700040114137 [13:05:17]line Султан чай 1л. зел лимон [13:05:17]line 1.000 * 65.00 [13:05:17]line = 65.00 [13:05:17]line НДС 12% НСП 1% [13:05:17]line > о реализуемом товаре [13:05:17]line ИТОГО: 65.00 [13:05:17]line НСП 1% : 0.57 [13:05:17]line НДС 12% : 6.90 [13:05:17]line Наличными: 65.00 [13:05:17]line Безнал.: 0.00 [13:05:17]line Место: АЗС № 125 "Партнер Нефть" [13:05:17]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:05:17]line СНО: Общий режим [13:05:17]line Чек 65 01.08.2024 13:05 [13:05:17]line Смена: 433 ФФД: 1.0 [13:05:17]line ЗНМ: 0300000049 [13:05:17]line РНМ: 0000000000092638 [13:05:17]line Версия ККМ: 001 [13:05:17]line ФМ: 0000000000874949 [13:05:17]line ФД: 69902 [13:05:17]line ФПД: 193593468965509 [13:05:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T130534&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69902&fm=193593468965509&tin=02508201610067®Number=0000000000092638&sum=6500 [13:05:17]OFD Sender: Processing packet 69902 [packets to send 19, broken 18] [13:05:17]ProducePacketName [13:05:17]name=ofd_packets/00069902 [13:05:17]OFD Sender: To server: pG, [13:05:17]CommunicateWithHost lk.salyk.kg:30040 [13:05:17]ConnectInit lk.salyk.kg [13:05:17]line 0 [13:05:17]written 0, free lines is 4095 [13:05:17]Connected sock=10 [13:05:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 30 01 00 00 75 08 28 01 6B AA 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1E 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0E 11 01 00 35 04 06 00 B0 12 7D F2 D2 85 5A 64 DF 6A D9 54 65 EB [13:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 AE 3D 47 00 E5 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0E 11 01 00 F4 03 04 00 7F 2E AB 66 B6 04 01 00 00 AC 15 70 68 AB 84 36 86 [13:05:18]CommunicateWithHost err = 0 [13:05:18]CheckOFDResponse [13:05:18]1017 (14) - 77093643461234 [13:05:18]1041 (16) - 0000000000874949 [13:05:18]1040 (4) - 69902 [13:05:18]1012 (4) - 01.08.2024 06:43 [13:05:18]1206 (1) - 0 [13:05:18]OFD Sender: Remove packet 69902 [13:05:18]ProducePacketName [13:05:18]name=ofd_packets/00069902 [13:05:18]NVStorageDeleteData [13:05:18]Write to MH i2c: 01 00 00 B8 B0 68 [13:05:18]Write i2c OK [13:05:18]MH_I2C_Read... [13:05:18]Read from MH i2c: 01 [13:05:18]MH_I2C_Read... [13:05:18]Read from MH i2c: 01 07 00 [13:05:18]MH_I2C_Read... [13:05:18]Read from MH i2c: 01 07 00 B8 B0 00 00 00 00 00 24 0D A0 [13:05:18]RasterBufferAndPrint [13:05:18]line [13:05:18]line [13:05:18]line [13:05:18]line [13:05:18]line [13:05:18]written 0, free lines is 3370 [13:05:18]MH_Cut [13:05:18]Write to MH i2c: D1 01 00 BF B0 01 41 [13:05:18]Write i2c OK [13:05:18]MH_I2C_Read... [13:05:18]Read from MH i2c: D1 [13:05:18]MH_I2C_Read... [13:05:18]Read from MH i2c: D1 01 00 [13:05:18]MH_I2C_Read... [13:05:18]Read from MH i2c: D1 01 00 BF B0 00 40 [13:05:18]Write to MH i2c: 01 00 00 C0 B0 70 [13:05:18]Write i2c OK [13:05:18]MH_I2C_Read... [13:05:18]OFD Sender: No OFD packet to send [13:05:18]*** Cut start [13:05:18]*** Partial cut [13:05:18]*** CUTSNS_PIN = 1 [13:05:18]*** CUTSNS_PIN = 0 [13:05:19]*** Brake cut motor [13:05:19]Read from MH i2c: 01 [13:05:19]MH_I2C_Read... [13:05:19]*** Stop cut motor [13:05:19]*** Cut end [13:05:19]Read from MH i2c: 01 07 00 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: 01 07 00 C0 B0 00 00 00 00 00 FF 0F 85 [13:05:19]process_action close_receipt done [13:05:19]requested_data is exist [13:05:19]produce_requested_data [13:05:19]requested_item fm.sn is exist - process it [13:05:19]wFMCommunicate request_size=4 [13:05:19]MH_SAM_APDU [13:05:19]CAPDU: 80 11 00 00 [13:05:19]Write to MH i2c: E2 08 00 C1 B0 80 11 00 00 00 00 00 00 EB [13:05:19]Write i2c OK [13:05:19]MH_I2C_Read... [13:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:19]Read from MH i2c: E2 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 17 00 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 17 00 C1 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 47 [13:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:05:19]wFMCommunicate OK [13:05:19]requested_item fd.num is exist - process it [13:05:19]SAM_PROTO_GetFieldsCounters [13:05:19]wFMCommunicate request_size=4 [13:05:19]MH_SAM_APDU [13:05:19]CAPDU: 80 13 00 00 [13:05:19]Write to MH i2c: E2 08 00 C2 B0 80 13 00 00 00 00 00 00 EE [13:05:19]Write i2c OK [13:05:19]MH_I2C_Read... [13:05:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:19]Read from MH i2c: E2 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 62 00 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 62 00 C2 B0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0E 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:05:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0E 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:19]wFMCommunicate OK [13:05:19]SAM_PROTO_GetFieldsCounters done [13:05:19]requested_item shift.num is exist - process it [13:05:19]requested_item shift.opened is exist - process it [13:05:19]req_shift_opened [13:05:19]FM_GetShiftState [13:05:19]SAM_PROTO_GetShiftState [13:05:19]wFMCommunicate request_size=4 [13:05:19]MH_SAM_APDU [13:05:19]CAPDU: 80 13 01 00 [13:05:19]Write to MH i2c: E2 08 00 C3 B0 80 13 01 00 00 00 00 00 F0 [13:05:19]Write i2c OK [13:05:19]MH_I2C_Read... [13:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:19]Read from MH i2c: E2 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 0E 00 [13:05:19]MH_I2C_Read... [13:05:19]Read from MH i2c: E2 0E 00 C3 B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 29 [13:05:19]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:05:19]wFMCommunicate OK [13:05:19]SAM_PROTO_GetShiftState done [13:05:19]FM_GetShiftState done [13:05:19]req_shift_opened done [13:05:19]requested_item shift.open_date is exist - process it [13:05:19]req_shift_open_date [13:05:19]req_shift_open_date done [13:05:19]produce_requested_data done [13:05:19]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69902,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:05:19]process_action_free close_receipt [13:05:19]json_value_free [13:05:19]json_value_free done [13:05:19]process_json_proto returns [13:05:19]Send response to host [13:05:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69902,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:05:19]free response buf [13:05:19]execute_script done [13:05:19]execute_script returns [13:05:19]free content buf [13:05:19]Sock 9.Close socket [13:05:19]Sock 9.Thread stoped [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [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:05:58]accept exits with 7 [13:05:58]New connection [13:05:58]New thread 3066858852 created [13:05:58]Thread 3067002212 joined [13:05:58]Waiting for new connection... [13:05:58] Sock 7.Parse request [13:05:58]Sock 7.Check first char [13:05:58]Sock 7.First char is OK [13:05:58]request: POST /json_proto HTTP/1.0 [13:05:58]Method: POST [13:05:58]URL: /json_proto [13:05:58]Method is POST - this is cgi request [13:05:58]url: /json_proto [13:05:58]query_string will be loaded in cgi processing [13:05:58]execute_cgi json_proto POST (null) [13:05:58]execute_cgi path=json_proto method=POST [13:05:58]POST find Content-Length [13:05:58]Host: 172.17.49.132:8080 [13:05:58]Content-Length: 883 [13:05:58]Content-Type: application/json [13:05:58] [13:05:58]POST finish read [13:05:58]Found Content-Length = 883 [13:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137131", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:58]execute_script... [13:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137131", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:58]POST & json_proto [13:05:58]process_json_proto [13:05:58]json parsed OK: [13:05:58]protocol is kg_v1.0 [13:05:58]action value=close_receipt [13:05:58]process_action close_receipt [13:05:58]cmd_close_receipt [13:05:58]MH_GetDate [13:05:58]Write to MH i2c: F0 00 00 C4 B0 63 [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: F0 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: F0 09 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: F0 09 00 C4 B0 00 49 88 AB 66 E7 4B C0 64 A4 [13:05:58]GetLastDocTimeStamp 1722517534 [13:05:58]current date 1722517577 [13:05:58]FM_GetShiftState [13:05:58]SAM_PROTO_GetShiftState [13:05:58]wFMCommunicate request_size=4 [13:05:58]MH_SAM_APDU [13:05:58]CAPDU: 80 13 01 00 [13:05:58]Write to MH i2c: E2 08 00 C5 B0 80 13 01 00 00 00 00 00 F2 [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:58]Read from MH i2c: E2 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: E2 0E 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: E2 0E 00 C5 B0 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 2B [13:05:58]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:05:58]wFMCommunicate OK [13:05:58]SAM_PROTO_GetShiftState done [13:05:58]FM_GetShiftState done [13:05:58]opened in 1722472772 [13:05:58]opened+sec_in_day 1722559172 [13:05:58]quantity*price = 6000 [13:05:58]sum+1 = 6001 [13:05:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 66 01.08.2024 13:06 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69903 ФПД: 67319718124458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T130617&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69903&fm=67319718124458&tin=02508201610067®Number=0000000000092638&sum=20000 0 [13:06:00]StoreToDocumentArchive [13:06:00]shift 433 fd 69903 [13:06:00]save to /storage/0433/doc_00069903 [13:06:00]save last doc name /storage/0433/doc_00069903 to /storage/kkm_last_doc_name [13:06:00]save OK [13:06:00]Clear old archive folders... [13:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=379 [13:06:00]tlvbuf is 012F00C0 [13:06:00]SAM_PROTO_ClearQueue [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 09 00 00 [13:06:00]Write to MH i2c: E2 08 00 D2 B0 80 09 00 00 00 00 00 00 F4 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 D2 B0 00 90 00 F6 [13:06:00]RAPDU: 90 00 [13:06:00]wFMCommunicate OK [13:06:00]SAM_PROTO_ClearQueue done [13:06:00]KKMCreateOFDPacket [13:06:00]OFDProtocolAddRootSTLVToBuf [13:06:00]FM_MakeSignedData [13:06:00]FM_MakeSignedData [13:06:00]SAM_PROTO_SignData [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 0D 01 02 [13:06:00]Write to MH i2c: E2 08 00 D3 B0 80 0D 01 02 00 00 00 00 FC [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 D3 B0 00 90 00 F7 [13:06:00]RAPDU: 90 00 [13:06:00]wFMCommunicate OK [13:06:00]wFMCommunicate request_size=255 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 [13:06:00]Write to MH i2c: E2 02 01 D4 B0 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 00 13 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 D4 B0 00 90 00 F8 [13:06:00]RAPDU: 90 00 [13:06:00]wFMCommunicate OK [13:06:00]wFMCommunicate request_size=138 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 49 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0F 11 01 00 35 04 06 00 3D 3A 17 E2 9B AA [13:06:00]Write to MH i2c: E2 8D 00 D5 B0 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 49 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0F 11 01 00 35 04 06 00 3D 3A 17 E2 9B AA 00 00 B0 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 03 00 D5 B0 00 90 00 F9 [13:06:00]RAPDU: 90 00 [13:06:00]wFMCommunicate OK [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 0D 03 02 [13:06:00]Write to MH i2c: E2 08 00 D6 B0 80 0D 03 02 00 00 00 00 01 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0B 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 0B 00 D6 B0 00 ED D0 E9 FF EF C9 B9 FC 90 00 14 [13:06:00]RAPDU: ED D0 E9 FF EF C9 B9 FC 90 00 [13:06:00]wFMCommunicate OK [13:06:00]SAM_PROTO_SignData done [13:06:00]FM_MakeSignedData done [13:06:00]CreateOFDProtocolMessage [13:06:00]wFMCommunicate request_size=4 [13:06:00]MH_SAM_APDU [13:06:00]CAPDU: 80 11 00 00 [13:06:00]Write to MH i2c: E2 08 00 D7 B0 80 11 00 00 00 00 00 00 01 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:00]Read from MH i2c: E2 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 17 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: E2 17 00 D7 B0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 5D [13:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:06:00]wFMCommunicate OK [13:06:00]CreateOFDProtocolMessage done [13:06:00]OFDSenderStorePacket 69903 [13:06:00]StoreOFDPacket docnum=69903 [13:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8F 01 00 00 C9 3D 87 01 2A 2D 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 49 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0F 11 01 00 35 04 06 00 3D 3A 17 E2 9B AA ED D0 E9 FF EF C9 B9 FC [13:06:00]CheckFolder [13:06:00]dirname=/storage/ofd_packets [13:06:00]CheckFolder done [13:06:00]ProducePacketName [13:06:00]name=ofd_packets/00069903 [13:06:00]NVStorageSaveData ofd_packets/00069903 [13:06:00]File name is /storage/ofd_packets/00069903 [13:06:00]Write 429 bytes [13:06:00]NVStorageSaveData done [13:06:00]OFDSenderStorePacket done [13:06:00]KKMCreateOFDPacket done [13:06:00]NVStorageSaveData kkm_last_timestamp [13:06:00]File name is /storage/kkm_last_timestamp [13:06:00]Write 4 bytes [13:06:00]NVStorageSaveData done [13:06:00]ExternCall_PrintAddStr [13:06:00]wPrintStart [13:06:00]Write to MH i2c: 01 00 00 D8 B0 88 [13:06:00]Write i2c OK [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 07 00 [13:06:00]MH_I2C_Read... [13:06:00]Read from MH i2c: 01 07 00 D8 B0 00 00 00 00 00 FF 0F 9D [13:06:00]RasterBufferAndPrint [13:06:00]line Счет N : (3)137131 [13:06:00]line ИНН: 02508201610067 [13:06:00]line Контрольно-Кассовый Чек [13:06:00]line ПРОДАЖА [13:06:00]line Товар: 4700000310043 [13:06:00]line Вода Жалалабат 27 1л [13:06:00]line 1.000 * 60.00 [13:06:00]line = 60.00 [13:06:00]line НДС 12% НСП 1% [13:06:01]line > о реализуемом товаре [13:06:01]line Товар: 48743570 [13:06:01]line Сигареты Winston XStyle Blue [13:06:01]line 1.000 * 140.00 [13:06:01]line = 140.00 [13:06:01]line НДС 12% НСП 1% [13:06:01]line > о реализуемом товаре [13:06:01]line ИТОГО: 200.00 [13:06:01]line НСП 1% : 1.77 [13:06:01]line НДС 12% : 21.24 [13:06:01]line Наличными: 200.00 [13:06:01]line Безнал.: 0.00 [13:06:01]line Место: АЗС № 125 "Партнер Нефть" [13:06:01]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:06:01]line СНО: Общий режим [13:06:01]line Чек 66 01.08.2024 13:06 [13:06:01]line Смена: 433 ФФД: 1.0 [13:06:01]line ЗНМ: 0300000049 [13:06:01]line РНМ: 0000000000092638 [13:06:01]line Версия ККМ: 001 [13:06:01]line ФМ: 0000000000874949 [13:06:01]line ФД: 69903 [13:06:01]line ФПД: 67319718124458 [13:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T130617&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69903&fm=67319718124458&tin=02508201610067®Number=0000000000092638&sum=20000 [13:06:01]line 0 [13:06:01]OFD Sender: Processing packet 69903 [packets to send 19, broken 18] [13:06:01]ProducePacketName [13:06:01]name=ofd_packets/00069903 [13:06:01]OFD Sender: To server: pG, [13:06:01]CommunicateWithHost lk.salyk.kg:30040 [13:06:01]ConnectInit lk.salyk.kg [13:06:01]written 0, free lines is 4095 [13:06:01]Connected sock=10 [13:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 8F 01 00 00 C9 3D 87 01 2A 2D 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 49 88 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0F 11 01 00 35 04 06 00 3D 3A 17 E2 9B AA ED D0 E9 FF EF C9 B9 FC [13:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 72 2E 47 00 4D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 0F 11 01 00 F4 03 04 00 AA 2E AB 66 B6 04 01 00 00 97 11 AE 93 50 7E 1A FB [13:06:01]CommunicateWithHost err = 0 [13:06:01]CheckOFDResponse [13:06:01]1017 (14) - 77093643461234 [13:06:01]1041 (16) - 0000000000874949 [13:06:01]1040 (4) - 69903 [13:06:01]1012 (4) - 01.08.2024 06:43 [13:06:01]1206 (1) - 0 [13:06:01]OFD Sender: Remove packet 69903 [13:06:01]ProducePacketName [13:06:01]name=ofd_packets/00069903 [13:06:01]NVStorageDeleteData [13:06:01]Write to MH i2c: 01 00 00 06 B1 B7 [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: 01 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: 01 07 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: 01 07 00 06 B1 00 00 00 00 00 F7 0C C1 [13:06:01]RasterBufferAndPrint [13:06:01]line [13:06:01]line [13:06:01]line [13:06:01]line [13:06:01]line [13:06:01]written 0, free lines is 3328 [13:06:01]MH_Cut [13:06:01]Write to MH i2c: D1 01 00 0D B1 01 90 [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: D1 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: D1 01 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: D1 01 00 0D B1 00 8F [13:06:01]Write to MH i2c: 01 00 00 0E B1 BF [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]OFD Sender: No OFD packet to send [13:06:02]*** Cut start [13:06:02]*** Partial cut [13:06:02]*** CUTSNS_PIN = 1 [13:06:02]*** CUTSNS_PIN = 0 [13:06:02]*** Brake cut motor [13:06:02]Read from MH i2c: 01 [13:06:02]MH_I2C_Read... [13:06:02]*** Stop cut motor [13:06:02]*** Cut end [13:06:02]Read from MH i2c: 01 07 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 0E B1 00 00 00 00 00 FF 0F D4 [13:06:02]process_action close_receipt done [13:06:02]requested_data is exist [13:06:02]produce_requested_data [13:06:02]requested_item fm.sn is exist - process it [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 11 00 00 [13:06:02]Write to MH i2c: E2 08 00 0F B1 80 11 00 00 00 00 00 00 3A [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 0F B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 96 [13:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:06:02]wFMCommunicate OK [13:06:02]requested_item fd.num is exist - process it [13:06:02]SAM_PROTO_GetFieldsCounters [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 13 00 00 [13:06:02]Write to MH i2c: E2 08 00 10 B1 80 13 00 00 00 00 00 00 3D [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:03]Read from MH i2c: E2 [13:06:03]MH_I2C_Read... [13:06:03]Read from MH i2c: E2 62 00 [13:06:03]MH_I2C_Read... [13:06:03]Read from MH i2c: E2 62 00 10 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [13:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:03]wFMCommunicate OK [13:06:03]SAM_PROTO_GetFieldsCounters done [13:06:03]requested_item shift.num is exist - process it [13:06:03]requested_item shift.opened is exist - process it [13:06:03]req_shift_opened [13:06:03]FM_GetShiftState [13:06:03]SAM_PROTO_GetShiftState [13:06:03]wFMCommunicate request_size=4 [13:06:03]MH_SAM_APDU [13:06:03]CAPDU: 80 13 01 00 [13:06:03]Write to MH i2c: E2 08 00 11 B1 80 13 01 00 00 00 00 00 3F [13:06:03]Write i2c OK [13:06:03]MH_I2C_Read... [13:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:03]Read from MH i2c: E2 [13:06:03]MH_I2C_Read... [13:06:03]Read from MH i2c: E2 0E 00 [13:06:03]MH_I2C_Read... [13:06:03]Read from MH i2c: E2 0E 00 11 B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 78 [13:06:03]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:06:03]wFMCommunicate OK [13:06:03]SAM_PROTO_GetShiftState done [13:06:03]FM_GetShiftState done [13:06:03]req_shift_opened done [13:06:03]requested_item shift.open_date is exist - process it [13:06:03]req_shift_open_date [13:06:03]req_shift_open_date done [13:06:03]produce_requested_data done [13:06:03]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69903,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:06:03]process_action_free close_receipt [13:06:03]json_value_free [13:06:03]json_value_free done [13:06:03]process_json_proto returns [13:06:03]Send response to host [13:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69903,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:06:03]free response buf [13:06:03]execute_script done [13:06:03]execute_script returns [13:06:03]free content buf [13:06:03]Sock 7.Close socket [13:06:03]Sock 7.Thread stoped [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:43]accept exits with 9 [13:06:43]New connection [13:06:43]New thread 3067002212 created [13:06:43]Thread 3066858852 joined [13:06:43]Waiting for new connection... [13:06:43] Sock 9.Parse request [13:06:43]Sock 9.Check first char [13:06:43]Sock 9.First char is OK [13:06:43]request: POST /json_proto HTTP/1.0 [13:06:43]Method: POST [13:06:43]URL: /json_proto [13:06:43]Method is POST - this is cgi request [13:06:43]url: /json_proto [13:06:43]query_string will be loaded in cgi processing [13:06:43]execute_cgi json_proto POST (null) [13:06:43]execute_cgi path=json_proto method=POST [13:06:43]POST find Content-Length [13:06:43]Host: 172.17.49.132:8080 [13:06:43]Content-Length: 1251 [13:06:43]Content-Type: application/json [13:06:43] [13:06:43]POST finish read [13:06:43]Found Content-Length = 1251 [13:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874780\u000A01.08.2024 12:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548719;720;721;722;723;724;725;726;727;728\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:43]execute_script... [13:06:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874780\u000A01.08.2024 12:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548719;720;721;722;723;724;725;726;727;728\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:43]POST & json_proto [13:06:43]process_json_proto [13:06:43]json parsed OK: [13:06:43]protocol is kg_v1.0 [13:06:43]action value=print_text [13:06:43]process_action print_text [13:06:43]cmd_print_text [13:06:43]ExternCall_PrintAddStr [13:06:43]wPrintStart [13:06:43]Write to MH i2c: 01 00 00 12 B1 C3 [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 12 B1 00 00 00 00 00 FF 0F D8 [13:06:43]RasterBufferAndPrint [13:06:43]line *****ТОВАРНЫЙ ЧЕК***** [13:06:43]line АЗС 125 [13:06:43]line Партнер нефть [13:06:43]line 02508201610067 [13:06:43]line Кассир : Мадаминова Б. [13:06:43]line Счет N : (1)874780 [13:06:43]line 01.08.2024 12:27 [13:06:43]line ПРОДАЖА [13:06:43]line ТРК (МРК, ГНК): 52 [13:06:43]line Вид ГСМ : 2710124130 [13:06:43]line Аи-92-К-5 [13:06:43]line 100.000 x 67.80 [13:06:43]line ИТОГ: 6780.00 [13:06:43]line Тип оплаты: Талоны: Топливные Талоны [13:06:43]line 3548719;720;721;722;723;724;725;726;727;728 [13:06:43]line ______________________ [13:06:43]line (подпись) [13:06:43]written 0, free lines is 4095 [13:06:43]Write to MH i2c: 01 00 00 27 B1 D8 [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 27 B1 00 00 00 00 00 0B 0E F8 [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 3596 [13:06:43]MH_Cut [13:06:43]Write to MH i2c: D1 01 00 2E B1 01 B1 [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 2E B1 00 B0 [13:06:43]Write to MH i2c: 01 00 00 2F B1 E0 [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [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:44]Read from MH i2c: 01 [13:06:44]MH_I2C_Read... [13:06:44]*** Stop cut motor [13:06:44]*** Cut end [13:06:44]Read from MH i2c: 01 07 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 2F B1 00 00 00 00 00 FF 0F F5 [13:06:44]process_action print_text done [13:06:44]requested_data is exist [13:06:44]produce_requested_data [13:06:44]requested_item fm.sn is exist - process it [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 11 00 00 [13:06:44]Write to MH i2c: E2 08 00 30 B1 80 11 00 00 00 00 00 00 5B [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 30 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B7 [13:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:06:44]wFMCommunicate OK [13:06:44]requested_item fd.num is exist - process it [13:06:44]SAM_PROTO_GetFieldsCounters [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 13 00 00 [13:06:44]Write to MH i2c: E2 08 00 31 B1 80 13 00 00 00 00 00 00 5E [13:06:44]Write i2c OK [13:06:44]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 31 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 32 B1 80 13 01 00 00 00 00 00 60 [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 32 B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 99 [13:06:45]RAPDU: 09 00 01 44 D9 AA 66 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":"0000000000874949","fd.num":69903,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:06:45]process_action_free print_text [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":"0000000000874949","fd.num":69903,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [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:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:09]accept exits with 7 [13:09:09]New connection [13:09:09]New thread 3066858852 created [13:09:09]Thread 3067002212 joined [13:09:09]Waiting for new connection... [13:09:09] Sock 7.Parse request [13:09:09]Sock 7.Check first char [13:09:09]Sock 7.First char is OK [13:09:09]request: POST /json_proto HTTP/1.0 [13:09:09]Method: POST [13:09:09]URL: /json_proto [13:09:09]Method is POST - this is cgi request [13:09:09]url: /json_proto [13:09:09]query_string will be loaded in cgi processing [13:09:09]execute_cgi json_proto POST (null) [13:09:09]execute_cgi path=json_proto method=POST [13:09:09]POST find Content-Length [13:09:09]Host: 172.17.49.132:8080 [13:09:09]Content-Length: 1251 [13:09:09]Content-Type: application/json [13:09:09] [13:09:09]POST finish read [13:09:09]Found Content-Length = 1251 [13:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874783\u000A01.08.2024 12:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548709;710;711;712;713;714;715;716;717;718\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:09]execute_script... [13:09:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874783\u000A01.08.2024 12:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548709;710;711;712;713;714;715;716;717;718\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:09]POST & json_proto [13:09:09]process_json_proto [13:09:09]json parsed OK: [13:09:09]protocol is kg_v1.0 [13:09:09]action value=print_text [13:09:09]process_action print_text [13:09:09]cmd_print_text [13:09:09]ExternCall_PrintAddStr [13:09:09]wPrintStart [13:09:09]Write to MH i2c: 01 00 00 33 B1 E4 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 33 B1 00 00 00 00 00 FF 0F F9 [13:09:09]RasterBufferAndPrint [13:09:09]line *****ТОВАРНЫЙ ЧЕК***** [13:09:09]line АЗС 125 [13:09:09]line Партнер нефть [13:09:09]line 02508201610067 [13:09:09]line Кассир : Мадаминова Б. [13:09:09]line Счет N : (1)874783 [13:09:09]line 01.08.2024 12:30 [13:09:09]line ПРОДАЖА [13:09:09]line ТРК (МРК, ГНК): 62 [13:09:09]line Вид ГСМ : 2710124130 [13:09:09]line Аи-92-К-5 [13:09:09]line 100.000 x 67.80 [13:09:09]line ИТОГ: 6780.00 [13:09:09]line Тип оплаты: Талоны: Топливные Талоны [13:09:09]line 3548709;710;711;712;713;714;715;716;717;718 [13:09:09]line ______________________ [13:09:10]line (подпись) [13:09:10]written 0, free lines is 4095 [13:09:10]Write to MH i2c: 01 00 00 48 B1 F9 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 48 B1 00 00 00 00 00 06 0E 14 [13:09:10]RasterBufferAndPrint [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]written 0, free lines is 3592 [13:09:10]MH_Cut [13:09:10]Write to MH i2c: D1 01 00 4F B1 01 D2 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 4F B1 00 D1 [13:09:10]Write to MH i2c: 01 00 00 50 B1 01 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]*** Cut start [13:09:10]*** Partial cut [13:09:10]*** CUTSNS_PIN = 1 [13:09:10]*** CUTSNS_PIN = 0 [13:09:11]*** Brake cut motor [13:09:11]Read from MH i2c: 01 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: 01 07 00 [13:09:11]MH_I2C_Read... [13:09:11]*** Stop cut motor [13:09:11]*** Cut end [13:09:11]Read from MH i2c: 01 07 00 50 B1 00 00 00 00 00 FF 0F 16 [13:09:11]process_action print_text done [13:09:11]requested_data is exist [13:09:11]produce_requested_data [13:09:11]requested_item fm.sn is exist - process it [13:09:11]wFMCommunicate request_size=4 [13:09:11]MH_SAM_APDU [13:09:11]CAPDU: 80 11 00 00 [13:09:11]Write to MH i2c: E2 08 00 51 B1 80 11 00 00 00 00 00 00 7C [13:09:11]Write i2c OK [13:09:11]MH_I2C_Read... [13:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:11]Read from MH i2c: E2 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 17 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 17 00 51 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D8 [13:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:09:11]wFMCommunicate OK [13:09:11]requested_item fd.num is exist - process it [13:09:11]SAM_PROTO_GetFieldsCounters [13:09:11]wFMCommunicate request_size=4 [13:09:11]MH_SAM_APDU [13:09:11]CAPDU: 80 13 00 00 [13:09:11]Write to MH i2c: E2 08 00 52 B1 80 13 00 00 00 00 00 00 7F [13:09:11]Write i2c OK [13:09:11]MH_I2C_Read... [13:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:11]Read from MH i2c: E2 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 62 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 62 00 52 B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [13:09:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 0F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:11]wFMCommunicate OK [13:09:11]SAM_PROTO_GetFieldsCounters done [13:09:11]requested_item shift.num is exist - process it [13:09:11]requested_item shift.opened is exist - process it [13:09:11]req_shift_opened [13:09:11]FM_GetShiftState [13:09:11]SAM_PROTO_GetShiftState [13:09:11]wFMCommunicate request_size=4 [13:09:11]MH_SAM_APDU [13:09:11]CAPDU: 80 13 01 00 [13:09:11]Write to MH i2c: E2 08 00 53 B1 80 13 01 00 00 00 00 00 81 [13:09:11]Write i2c OK [13:09:11]MH_I2C_Read... [13:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:11]Read from MH i2c: E2 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 0E 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 0E 00 53 B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BA [13:09:11]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:09:11]wFMCommunicate OK [13:09:11]SAM_PROTO_GetShiftState done [13:09:11]FM_GetShiftState done [13:09:11]req_shift_opened done [13:09:11]requested_item shift.open_date is exist - process it [13:09:11]req_shift_open_date [13:09:11]req_shift_open_date done [13:09:11]produce_requested_data done [13:09:11]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69903,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:09:11]process_action_free print_text [13:09:11]json_value_free [13:09:11]json_value_free done [13:09:11]process_json_proto returns [13:09:11]Send response to host [13:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69903,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:09:11]free response buf [13:09:11]execute_script done [13:09:11]execute_script returns [13:09:11]free content buf [13:09:11]Sock 7.Close socket [13:09:11]Sock 7.Thread stoped [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:41]accept exits with 9 [13:09:41]New connection [13:09:41]New thread 3067002212 created [13:09:41]Thread 3066858852 joined [13:09:41]Waiting for new connection... [13:09:41] Sock 9.Parse request [13:09:41]Sock 9.Check first char [13:09:41]Sock 9.First char is OK [13:09:41]request: POST /json_proto HTTP/1.0 [13:09:41]Method: POST [13:09:41]URL: /json_proto [13:09:41]Method is POST - this is cgi request [13:09:41]url: /json_proto [13:09:41]query_string will be loaded in cgi processing [13:09:41]execute_cgi json_proto POST (null) [13:09:41]execute_cgi path=json_proto method=POST [13:09:41]POST find Content-Length [13:09:41]Host: 172.17.49.132:8080 [13:09:41]Content-Length: 601 [13:09:41]Content-Type: application/json [13:09:41] [13:09:41]POST finish read [13:09:41]Found Content-Length = 601 [13:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137132", "tax_sys" : 0, "items" : [ { "code": "4008177155321", "name": "\u041C\u041C Castrol Magnatec 10W40 1\u043B", "price" : 900.00, "quantity" : 1.000, "sum" : 900.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:41]execute_script... [13:09: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 : (3)137132", "tax_sys" : 0, "items" : [ { "code": "4008177155321", "name": "\u041C\u041C Castrol Magnatec 10W40 1\u043B", "price" : 900.00, "quantity" : 1.000, "sum" : 900.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 900.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:41]POST & json_proto [13:09:41]process_json_proto [13:09:41]json parsed OK: [13:09:41]protocol is kg_v1.0 [13:09:41]action value=close_receipt [13:09:41]process_action close_receipt [13:09:41]cmd_close_receipt [13:09:41]MH_GetDate [13:09:41]Write to MH i2c: F0 00 00 54 B1 F4 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: F0 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: F0 09 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: F0 09 00 54 B1 00 28 89 AB 66 E7 4B C0 64 15 [13:09:41]GetLastDocTimeStamp 1722517577 [13:09:41]current date 1722517800 [13:09:41]FM_GetShiftState [13:09:41]SAM_PROTO_GetShiftState [13:09:41]wFMCommunicate request_size=4 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 13 01 00 [13:09:41]Write to MH i2c: E2 08 00 55 B1 80 13 01 00 00 00 00 00 83 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:41]Read from MH i2c: E2 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 0E 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: E2 0E 00 55 B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BC [13:09:41]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:09:41]wFMCommunicate OK [13:09:41]SAM_PROTO_GetShiftState done [13:09:41]FM_GetShiftState done [13:09:41]opened in 1722472772 [13:09:41]opened+sec_in_day 1722559172 [13:09:41]quantity*price = 90000 [13:09:41]sum+1 = 90001 [13:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.00 НСП 1% : 7.96 НДС 12% : 95.57 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 67 01.08.2024 13:10 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69904 ФПД: 215851983375745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T131000&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69904&fm=215851983375745&tin=02508201610067®Number=0000000000092638&sum=90000 0 [13:09:42]StoreToDocumentArchive [13:09:42]shift 433 fd 69904 [13:09:42]save to /storage/0433/doc_00069904 [13:09:42]save last doc name /storage/0433/doc_00069904 to /storage/kkm_last_doc_name [13:09:42]save OK [13:09:42]Clear old archive folders... [13:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:09:42]tlvbuf is 01504780 [13:09:42]SAM_PROTO_ClearQueue [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 09 00 00 [13:09:42]Write to MH i2c: E2 08 00 62 B1 80 09 00 00 00 00 00 00 85 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 03 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 03 00 62 B1 00 90 00 87 [13:09:42]RAPDU: 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_ClearQueue done [13:09:42]KKMCreateOFDPacket [13:09:42]OFDProtocolAddRootSTLVToBuf [13:09:42]FM_MakeSignedData [13:09:42]FM_MakeSignedData [13:09:42]SAM_PROTO_SignData [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 0D 01 02 [13:09:42]Write to MH i2c: E2 08 00 63 B1 80 0D 01 02 00 00 00 00 8D [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 63 B1 00 90 00 88 [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]wFMCommunicate request_size=255 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 35 35 33 32 31 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 5F 01 00 00 00 13 04 06 00 90 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 55 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 28 89 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 [13:09:43]Write to MH i2c: E2 02 01 64 B1 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 35 35 33 32 31 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 5F 01 00 00 00 13 04 06 00 90 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 55 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 28 89 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 00 00 07 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 64 B1 00 90 00 89 [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]wFMCommunicate request_size=32 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 34 39 10 04 04 00 10 11 01 00 35 04 06 00 C4 50 F4 CB 0D 81 [13:09:43]Write to MH i2c: E2 23 00 65 B1 80 0D 02 02 1B 00 30 30 30 38 37 34 39 34 39 10 04 04 00 10 11 01 00 35 04 06 00 C4 50 F4 CB 0D 81 00 00 79 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 03 00 65 B1 00 90 00 8A [13:09:43]RAPDU: 90 00 [13:09:43]wFMCommunicate OK [13:09:43]wFMCommunicate request_size=4 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 0D 03 02 [13:09:43]Write to MH i2c: E2 08 00 66 B1 80 0D 03 02 00 00 00 00 92 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 0B 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 0B 00 66 B1 00 86 2E F8 AF C0 0F 76 A1 90 00 D4 [13:09:43]RAPDU: 86 2E F8 AF C0 0F 76 A1 90 00 [13:09:43]wFMCommunicate OK [13:09:43]SAM_PROTO_SignData done [13:09:43]FM_MakeSignedData done [13:09:43]CreateOFDProtocolMessage [13:09:43]wFMCommunicate request_size=4 [13:09:43]MH_SAM_APDU [13:09:43]CAPDU: 80 11 00 00 [13:09:43]Write to MH i2c: E2 08 00 67 B1 80 11 00 00 00 00 00 00 92 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:43]Read from MH i2c: E2 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 17 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: E2 17 00 67 B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 EE [13:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:09:43]wFMCommunicate OK [13:09:43]CreateOFDProtocolMessage done [13:09:43]OFDSenderStorePacket 69904 [13:09:43]StoreOFDPacket docnum=69904 [13:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 86 B8 1D 01 F7 43 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 35 35 33 32 31 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 5F 01 00 00 00 13 04 06 00 90 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 55 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 28 89 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 11 01 00 35 04 06 00 C4 50 F4 CB 0D 81 86 2E F8 AF C0 0F 76 A1 [13:09:43]CheckFolder [13:09:43]dirname=/storage/ofd_packets [13:09:43]CheckFolder done [13:09:43]ProducePacketName [13:09:43]name=ofd_packets/00069904 [13:09:43]NVStorageSaveData ofd_packets/00069904 [13:09:43]File name is /storage/ofd_packets/00069904 [13:09:43]Write 323 bytes [13:09:43]NVStorageSaveData done [13:09:43]OFDSenderStorePacket done [13:09:43]KKMCreateOFDPacket done [13:09:43]NVStorageSaveData kkm_last_timestamp [13:09:43]File name is /storage/kkm_last_timestamp [13:09:43]Write 4 bytes [13:09:43]NVStorageSaveData done [13:09:43]ExternCall_PrintAddStr [13:09:43]wPrintStart [13:09:43]Write to MH i2c: 01 00 00 68 B1 19 [13:09:43]Write i2c OK [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: 01 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: 01 07 00 [13:09:43]MH_I2C_Read... [13:09:43]Read from MH i2c: 01 07 00 68 B1 00 00 00 00 00 FF 0F 2E [13:09:43]RasterBufferAndPrint [13:09:43]line Счет N : (3)137132 [13:09:43]line ИНН: 02508201610067 [13:09:43]line Контрольно-Кассовый Чек [13:09:43]line ПРОДАЖА [13:09:43]line Товар: 4008177155321 [13:09:43]line ММ Castrol Magnatec 10W40 1л [13:09:43]line 1.000 * 900.00 [13:09:43]line = 900.00 [13:09:43]line НДС 12% НСП 1% [13:09:43]line > о реализуемом товаре [13:09:43]line ИТОГО: 900.00 [13:09:43]line НСП 1% : 7.96 [13:09:43]line НДС 12% : 95.57 [13:09:43]line Наличными: 900.00 [13:09:43]line Безнал.: 0.00 [13:09:43]line Место: АЗС № 125 "Партнер Нефть" [13:09:43]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:09:43]line СНО: Общий режим [13:09:43]line Чек 67 01.08.2024 13:10 [13:09:43]line Смена: 433 ФФД: 1.0 [13:09:43]line ЗНМ: 0300000049 [13:09:43]line РНМ: 0000000000092638 [13:09:43]line Версия ККМ: 001 [13:09:43]line ФМ: 0000000000874949 [13:09:43]line ФД: 69904 [13:09:43]line ФПД: 215851983375745 [13:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T131000&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69904&fm=215851983375745&tin=02508201610067®Number=0000000000092638&sum=90000 [13:09:43]line 0 [13:09:43]OFD Sender: Processing packet 69904 [packets to send 19, broken 18] [13:09:43]ProducePacketName [13:09:43]name=ofd_packets/00069904 [13:09:43]OFD Sender: To server: pG, [13:09:43]CommunicateWithHost lk.salyk.kg:30040 [13:09:43]ConnectInit lk.salyk.kg [13:09:43]written 0, free lines is 4095 [13:09:43]Connected sock=11 [13:09:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 25 01 00 00 86 B8 1D 01 F7 43 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 30 30 38 31 37 37 31 35 35 33 32 31 06 04 1F 00 D0 9C D0 9C 20 43 61 73 74 72 6F 6C 20 4D 61 67 6E 61 74 65 63 20 31 30 57 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 5F 01 00 00 00 13 04 06 00 90 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 55 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 28 89 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 11 01 00 35 04 06 00 C4 50 F4 CB 0D 81 86 2E F8 AF C0 0F 76 A1 [13:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 5E 5B 47 00 F0 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 10 11 01 00 F4 03 04 00 89 2F AB 66 B6 04 01 00 00 56 13 F3 57 B7 03 CE 52 [13:09:44]CommunicateWithHost err = 0 [13:09:44]CheckOFDResponse [13:09:44]1017 (14) - 77093643461234 [13:09:44]1041 (16) - 0000000000874949 [13:09:44]1040 (4) - 69904 [13:09:44]1012 (4) - 01.08.2024 06:47 [13:09:44]1206 (1) - 0 [13:09:44]OFD Sender: Remove packet 69904 [13:09:44]ProducePacketName [13:09:44]name=ofd_packets/00069904 [13:09:44]NVStorageDeleteData [13:09:44]Write to MH i2c: 01 00 00 91 B1 42 [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 07 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: 01 07 00 91 B1 00 00 00 00 00 0A 0D 60 [13:09:44]RasterBufferAndPrint [13:09:44]line [13:09:44]line [13:09:44]line [13:09:44]line [13:09:44]line [13:09:44]written 0, free lines is 3344 [13:09:44]MH_Cut [13:09:44]Write to MH i2c: D1 01 00 98 B1 01 1B [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: D1 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: D1 01 00 [13:09:44]MH_I2C_Read... [13:09:44]Read from MH i2c: D1 01 00 98 B1 00 1A [13:09:44]Write to MH i2c: 01 00 00 99 B1 4A [13:09:44]Write i2c OK [13:09:44]MH_I2C_Read... [13:09:44]OFD Sender: No OFD packet to send [13:09:44]*** Cut start [13:09:44]*** Partial cut [13:09:44]*** CUTSNS_PIN = 1 [13:09:44]*** CUTSNS_PIN = 0 [13:09:45]*** Brake cut motor [13:09:45]Read from MH i2c: 01 [13:09:45]MH_I2C_Read... [13:09:45]*** Stop cut motor [13:09:45]*** Cut end [13:09:45]Read from MH i2c: 01 07 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: 01 07 00 99 B1 00 00 00 00 00 FF 0F 5F [13:09:45]process_action close_receipt done [13:09:45]requested_data is exist [13:09:45]produce_requested_data [13:09:45]requested_item fm.sn is exist - process it [13:09:45]wFMCommunicate request_size=4 [13:09:45]MH_SAM_APDU [13:09:45]CAPDU: 80 11 00 00 [13:09:45]Write to MH i2c: E2 08 00 9A B1 80 11 00 00 00 00 00 00 C5 [13:09:45]Write i2c OK [13:09:45]MH_I2C_Read... [13:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:45]Read from MH i2c: E2 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 17 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 17 00 9A B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 21 [13:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:09:45]wFMCommunicate OK [13:09:45]requested_item fd.num is exist - process it [13:09:45]SAM_PROTO_GetFieldsCounters [13:09:45]wFMCommunicate request_size=4 [13:09:45]MH_SAM_APDU [13:09:45]CAPDU: 80 13 00 00 [13:09:45]Write to MH i2c: E2 08 00 9B B1 80 13 00 00 00 00 00 00 C8 [13:09:45]Write i2c OK [13:09:45]MH_I2C_Read... [13:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:45]Read from MH i2c: E2 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 62 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 62 00 9B B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:09:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:45]wFMCommunicate OK [13:09:45]SAM_PROTO_GetFieldsCounters done [13:09:45]requested_item shift.num is exist - process it [13:09:45]requested_item shift.opened is exist - process it [13:09:45]req_shift_opened [13:09:45]FM_GetShiftState [13:09:45]SAM_PROTO_GetShiftState [13:09:45]wFMCommunicate request_size=4 [13:09:45]MH_SAM_APDU [13:09:45]CAPDU: 80 13 01 00 [13:09:45]Write to MH i2c: E2 08 00 9C B1 80 13 01 00 00 00 00 00 CA [13:09:45]Write i2c OK [13:09:45]MH_I2C_Read... [13:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:45]Read from MH i2c: E2 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 0E 00 [13:09:45]MH_I2C_Read... [13:09:45]Read from MH i2c: E2 0E 00 9C B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 03 [13:09:45]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:09:45]wFMCommunicate OK [13:09:45]SAM_PROTO_GetShiftState done [13:09:45]FM_GetShiftState done [13:09:45]req_shift_opened done [13:09:45]requested_item shift.open_date is exist - process it [13:09:45]req_shift_open_date [13:09:45]req_shift_open_date done [13:09:45]produce_requested_data done [13:09:45]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:09:45]process_action_free close_receipt [13:09:45]json_value_free [13:09:45]json_value_free done [13:09:45]process_json_proto returns [13:09:45]Send response to host [13:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:09:45]free response buf [13:09:45]execute_script done [13:09:45]execute_script returns [13:09:45]free content buf [13:09:45]Sock 9.Close socket [13:09:45]Sock 9.Thread stoped [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14: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:21]accept exits with 7 [13:15:21]New connection [13:15:21]New thread 3066858852 created [13:15:21]Thread 3067002212 joined [13:15:21]Waiting for new connection... [13:15:21] Sock 7.Parse request [13:15:21]Sock 7.Check first char [13:15:21]Sock 7.First char is OK [13:15:21]request: POST /json_proto HTTP/1.0 [13:15:21]Method: POST [13:15:21]URL: /json_proto [13:15:21]Method is POST - this is cgi request [13:15:21]url: /json_proto [13:15:21]query_string will be loaded in cgi processing [13:15:21]execute_cgi json_proto POST (null) [13:15:21]execute_cgi path=json_proto method=POST [13:15:21]POST find Content-Length [13:15:21]Host: 172.17.49.132:8080 [13:15:21]Content-Length: 1251 [13:15:21]Content-Type: application/json [13:15:21] [13:15:21]POST finish read [13:15:21]Found Content-Length = 1251 [13:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874791\u000A01.08.2024 12:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548699;700;701;702;703;704;705;706;707;708\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:21]execute_script... [13:15:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874791\u000A01.08.2024 12:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548699;700;701;702;703;704;705;706;707;708\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:21]POST & json_proto [13:15:21]process_json_proto [13:15:21]json parsed OK: [13:15:21]protocol is kg_v1.0 [13:15:21]action value=print_text [13:15:21]process_action print_text [13:15:21]cmd_print_text [13:15:21]ExternCall_PrintAddStr [13:15:21]wPrintStart [13:15:21]Write to MH i2c: 01 00 00 9D B1 4E [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 9D B1 00 00 00 00 00 FF 0F 63 [13:15:21]RasterBufferAndPrint [13:15:21]line *****ТОВАРНЫЙ ЧЕК***** [13:15:21]line АЗС 125 [13:15:21]line Партнер нефть [13:15:21]line 02508201610067 [13:15:21]line Кассир : Мадаминова Б. [13:15:21]line Счет N : (1)874791 [13:15:21]line 01.08.2024 12:36 [13:15:21]line ПРОДАЖА [13:15:21]line ТРК (МРК, ГНК): 62 [13:15:21]line Вид ГСМ : 2710124130 [13:15:21]line Аи-92-К-5 [13:15:21]line 100.000 x 67.80 [13:15:21]line ИТОГ: 6780.00 [13:15:21]line Тип оплаты: Талоны: Топливные Талоны [13:15:21]line 3548699;700;701;702;703;704;705;706;707;708 [13:15:21]line ______________________ [13:15:21]line (подпись) [13:15:21]written 0, free lines is 4095 [13:15:21]Write to MH i2c: 01 00 00 B2 B1 63 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: 01 07 00 B2 B1 00 00 00 00 00 09 0E 81 [13:15:21]RasterBufferAndPrint [13:15:21]line [13:15:21]line [13:15:21]line [13:15:21]line [13:15:21]line [13:15:21]written 0, free lines is 3596 [13:15:21]MH_Cut [13:15:21]Write to MH i2c: D1 01 00 B9 B1 01 3C [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: D1 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: D1 01 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: D1 01 00 B9 B1 00 3B [13:15:21]Write to MH i2c: 01 00 00 BA B1 6B [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:22]*** Cut start [13:15:22]*** Partial cut [13:15:22]*** CUTSNS_PIN = 1 [13:15:22]*** CUTSNS_PIN = 0 [13:15:22]*** Brake cut motor [13:15:22]Read from MH i2c: 01 [13:15:22]MH_I2C_Read... [13:15:22]*** Stop cut motor [13:15:22]*** Cut end [13:15:22]Read from MH i2c: 01 07 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 07 00 BA B1 00 00 00 00 00 FF 0F 80 [13:15:22]process_action print_text done [13:15:22]requested_data is exist [13:15:22]produce_requested_data [13:15:22]requested_item fm.sn is exist - process it [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 11 00 00 [13:15:22]Write to MH i2c: E2 08 00 BB B1 80 11 00 00 00 00 00 00 E6 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 17 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 17 00 BB B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 42 [13:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:15:22]wFMCommunicate OK [13:15:22]requested_item fd.num is exist - process it [13:15:22]SAM_PROTO_GetFieldsCounters [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 13 00 00 [13:15:22]Write to MH i2c: E2 08 00 BC B1 80 13 00 00 00 00 00 00 E9 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:23]Read from MH i2c: E2 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 62 00 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 62 00 BC B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [13:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:23]wFMCommunicate OK [13:15:23]SAM_PROTO_GetFieldsCounters done [13:15:23]requested_item shift.num is exist - process it [13:15:23]requested_item shift.opened is exist - process it [13:15:23]req_shift_opened [13:15:23]FM_GetShiftState [13:15:23]SAM_PROTO_GetShiftState [13:15:23]wFMCommunicate request_size=4 [13:15:23]MH_SAM_APDU [13:15:23]CAPDU: 80 13 01 00 [13:15:23]Write to MH i2c: E2 08 00 BD B1 80 13 01 00 00 00 00 00 EB [13:15:23]Write i2c OK [13:15:23]MH_I2C_Read... [13:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:23]Read from MH i2c: E2 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 0E 00 [13:15:23]MH_I2C_Read... [13:15:23]Read from MH i2c: E2 0E 00 BD B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 24 [13:15:23]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:15:23]wFMCommunicate OK [13:15:23]SAM_PROTO_GetShiftState done [13:15:23]FM_GetShiftState done [13:15:23]req_shift_opened done [13:15:23]requested_item shift.open_date is exist - process it [13:15:23]req_shift_open_date [13:15:23]req_shift_open_date done [13:15:23]produce_requested_data done [13:15:23]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:15:23]process_action_free print_text [13:15:23]json_value_free [13:15:23]json_value_free done [13:15:23]process_json_proto returns [13:15:23]Send response to host [13:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:15:23]free response buf [13:15:23]execute_script done [13:15:23]execute_script returns [13:15:23]free content buf [13:15:23]Sock 7.Close socket [13:15:23]Sock 7.Thread stoped [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:25]accept exits with 9 [13:17:25]New connection [13:17:25]New thread 3067002212 created [13:17:25]Thread 3066858852 joined [13:17:25]Waiting for new connection... [13:17:25] Sock 9.Parse request [13:17:25]Sock 9.Check first char [13:17:25]Sock 9.First char is OK [13:17:25]request: POST /json_proto HTTP/1.0 [13:17:25]Method: POST [13:17:25]URL: /json_proto [13:17:25]Method is POST - this is cgi request [13:17:25]url: /json_proto [13:17:25]query_string will be loaded in cgi processing [13:17:25]execute_cgi json_proto POST (null) [13:17:25]execute_cgi path=json_proto method=POST [13:17:25]POST find Content-Length [13:17:25]Host: 172.17.49.132:8080 [13:17:25]Content-Length: 1252 [13:17:25]Content-Type: application/json [13:17:25] [13:17:25]POST finish read [13:17:25]Found Content-Length = 1252 [13:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874793\u000A01.08.2024 12:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548689;690;691;692;693;694;695;696;697;698;\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:25]execute_script... [13:17:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874793\u000A01.08.2024 12:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548689;690;691;692;693;694;695;696;697;698;\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:25]POST & json_proto [13:17:25]process_json_proto [13:17:25]json parsed OK: [13:17:25]protocol is kg_v1.0 [13:17:25]action value=print_text [13:17:25]process_action print_text [13:17:25]cmd_print_text [13:17:25]ExternCall_PrintAddStr [13:17:25]wPrintStart [13:17:25]Write to MH i2c: 01 00 00 BE B1 6F [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 BE B1 00 00 00 00 00 FF 0F 84 [13:17:25]RasterBufferAndPrint [13:17:25]line *****ТОВАРНЫЙ ЧЕК***** [13:17:25]line АЗС 125 [13:17:25]line Партнер нефть [13:17:25]line 02508201610067 [13:17:25]line Кассир : Мадаминова Б. [13:17:25]line Счет N : (1)874793 [13:17:25]line 01.08.2024 12:38 [13:17:25]line ПРОДАЖА [13:17:25]line ТРК (МРК, ГНК): 52 [13:17:25]line Вид ГСМ : 2710124130 [13:17:25]line Аи-92-К-5 [13:17:25]line 100.000 x 67.80 [13:17:25]line ИТОГ: 6780.00 [13:17:25]line Тип оплаты: Талоны: Топливные Талоны [13:17:25]line 3548689;690;691;692;693;694;695;696;697;698; [13:17:25]line ______________________ [13:17:25]line (подпись) [13:17:25]written 0, free lines is 4095 [13:17:25]Write to MH i2c: 01 00 00 D3 B1 84 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 D3 B1 00 00 00 00 00 10 0E A9 [13:17:25]RasterBufferAndPrint [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]written 0, free lines is 3602 [13:17:25]MH_Cut [13:17:25]Write to MH i2c: D1 01 00 DA B1 01 5D [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: D1 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: D1 01 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: D1 01 00 DA B1 00 5C [13:17:25]Write to MH i2c: 01 00 00 DB B1 8C [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:26]*** Cut start [13:17:26]*** Partial cut [13:17:26]*** CUTSNS_PIN = 1 [13:17:26]*** CUTSNS_PIN = 0 [13:17:26]*** Brake cut motor [13:17:26]Read from MH i2c: 01 [13:17:26]MH_I2C_Read... [13:17:26]*** Stop cut motor [13:17:26]*** Cut end [13:17:26]Read from MH i2c: 01 07 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: 01 07 00 DB B1 00 00 00 00 00 FF 0F A1 [13:17:26]process_action print_text done [13:17:26]requested_data is exist [13:17:26]produce_requested_data [13:17:26]requested_item fm.sn is exist - process it [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 11 00 00 [13:17:26]Write to MH i2c: E2 08 00 DC B1 80 11 00 00 00 00 00 00 07 [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 17 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 17 00 DC B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 63 [13:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:17:26]wFMCommunicate OK [13:17:26]requested_item fd.num is exist - process it [13:17:26]SAM_PROTO_GetFieldsCounters [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 13 00 00 [13:17:26]Write to MH i2c: E2 08 00 DD B1 80 13 00 00 00 00 00 00 0A [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:26]Read from MH i2c: E2 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 62 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: E2 62 00 DD B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [13:17:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:26]wFMCommunicate OK [13:17:26]SAM_PROTO_GetFieldsCounters done [13:17:26]requested_item shift.num is exist - process it [13:17:26]requested_item shift.opened is exist - process it [13:17:26]req_shift_opened [13:17:26]FM_GetShiftState [13:17:26]SAM_PROTO_GetShiftState [13:17:26]wFMCommunicate request_size=4 [13:17:26]MH_SAM_APDU [13:17:26]CAPDU: 80 13 01 00 [13:17:26]Write to MH i2c: E2 08 00 DE B1 80 13 01 00 00 00 00 00 0C [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 DE B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 45 [13:17:27]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetShiftState done [13:17:27]FM_GetShiftState done [13:17:27]req_shift_opened done [13:17:27]requested_item shift.open_date is exist - process it [13:17:27]req_shift_open_date [13:17:27]req_shift_open_date done [13:17:27]produce_requested_data done [13:17:27]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:17:27]process_action_free print_text [13:17:27]json_value_free [13:17:27]json_value_free done [13:17:27]process_json_proto returns [13:17:27]Send response to host [13:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:17:27]free response buf [13:17:27]execute_script done [13:17:27]execute_script returns [13:17:27]free content buf [13:17:27]Sock 9.Close socket [13:17:27]Sock 9.Thread stoped [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:43]accept exits with 7 [13:19:43]New connection [13:19:43]New thread 3066858852 created [13:19:43]Thread 3067002212 joined [13:19:43]Waiting for new connection... [13:19:43] Sock 7.Parse request [13:19:43]Sock 7.Check first char [13:19:43]Sock 7.First char is OK [13:19:43]request: POST /json_proto HTTP/1.0 [13:19:43]Method: POST [13:19:43]URL: /json_proto [13:19:43]Method is POST - this is cgi request [13:19:43]url: /json_proto [13:19:43]query_string will be loaded in cgi processing [13:19:43]execute_cgi json_proto POST (null) [13:19:43]execute_cgi path=json_proto method=POST [13:19:43]POST find Content-Length [13:19:43]Host: 172.17.49.132:8080 [13:19:43]Content-Length: 1251 [13:19:43]Content-Type: application/json [13:19:43] [13:19:43]POST finish read [13:19:43]Found Content-Length = 1251 [13:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874798\u000A01.08.2024 12:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548679;680;681;682;683;684;685;686;687;688\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:43]execute_script... [13:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874798\u000A01.08.2024 12:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548679;680;681;682;683;684;685;686;687;688\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:43]POST & json_proto [13:19:43]process_json_proto [13:19:43]json parsed OK: [13:19:43]protocol is kg_v1.0 [13:19:43]action value=print_text [13:19:43]process_action print_text [13:19:43]cmd_print_text [13:19:43]ExternCall_PrintAddStr [13:19:43]wPrintStart [13:19:43]Write to MH i2c: 01 00 00 DF B1 90 [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: 01 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: 01 07 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: 01 07 00 DF B1 00 00 00 00 00 FF 0F A5 [13:19:43]RasterBufferAndPrint [13:19:43]line *****ТОВАРНЫЙ ЧЕК***** [13:19:43]line АЗС 125 [13:19:43]line Партнер нефть [13:19:43]line 02508201610067 [13:19:43]line Кассир : Мадаминова Б. [13:19:43]line Счет N : (1)874798 [13:19:43]line 01.08.2024 12:40 [13:19:43]line ПРОДАЖА [13:19:43]line ТРК (МРК, ГНК): 62 [13:19:43]line Вид ГСМ : 2710124130 [13:19:43]line Аи-92-К-5 [13:19:43]line 100.000 x 67.80 [13:19:43]line ИТОГ: 6780.00 [13:19:43]line Тип оплаты: Талоны: Топливные Талоны [13:19:43]line 3548679;680;681;682;683;684;685;686;687;688 [13:19:43]line ______________________ [13:19:44]line (подпись) [13:19:44]written 0, free lines is 4095 [13:19:44]Write to MH i2c: 01 00 00 F4 B1 A5 [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: 01 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: 01 07 00 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: 01 07 00 F4 B1 00 00 00 00 00 10 0E CA [13:19:44]RasterBufferAndPrint [13:19:44]line [13:19:44]line [13:19:44]line [13:19:44]line [13:19:44]line [13:19:44]written 0, free lines is 3602 [13:19:44]MH_Cut [13:19:44]Write to MH i2c: D1 01 00 FB B1 01 7E [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: D1 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: D1 01 00 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: D1 01 00 FB B1 00 7D [13:19:44]Write to MH i2c: 01 00 00 FC B1 AD [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:45]*** Cut start [13:19:45]*** Partial cut [13:19:45]*** CUTSNS_PIN = 1 [13:19:45]*** CUTSNS_PIN = 0 [13:19:45]OFD Sender: No OFD packet to send [13:19:45]*** Brake cut motor [13:19:45]Read from MH i2c: 01 [13:19:45]MH_I2C_Read... [13:19:45]*** Stop cut motor [13:19:45]*** Cut end [13:19:45]Read from MH i2c: 01 07 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: 01 07 00 FC B1 00 00 00 00 00 FF 0F C2 [13:19:45]process_action print_text done [13:19:45]requested_data is exist [13:19:45]produce_requested_data [13:19:45]requested_item fm.sn is exist - process it [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 11 00 00 [13:19:45]Write to MH i2c: E2 08 00 FD B1 80 11 00 00 00 00 00 00 28 [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 17 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 17 00 FD B1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 84 [13:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:19:45]wFMCommunicate OK [13:19:45]requested_item fd.num is exist - process it [13:19:45]SAM_PROTO_GetFieldsCounters [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 13 00 00 [13:19:45]Write to MH i2c: E2 08 00 FE B1 80 13 00 00 00 00 00 00 2B [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 62 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 62 00 FE B1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [13:19:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 10 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:45]wFMCommunicate OK [13:19:45]SAM_PROTO_GetFieldsCounters done [13:19:45]requested_item shift.num is exist - process it [13:19:45]requested_item shift.opened is exist - process it [13:19:45]req_shift_opened [13:19:45]FM_GetShiftState [13:19:45]SAM_PROTO_GetShiftState [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 13 01 00 [13:19:45]Write to MH i2c: E2 08 00 FF B1 80 13 01 00 00 00 00 00 2D [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 0E 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 0E 00 FF B1 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 66 [13:19:45]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:19:45]wFMCommunicate OK [13:19:45]SAM_PROTO_GetShiftState done [13:19:45]FM_GetShiftState done [13:19:45]req_shift_opened done [13:19:45]requested_item shift.open_date is exist - process it [13:19:45]req_shift_open_date [13:19:45]req_shift_open_date done [13:19:45]produce_requested_data done [13:19:45]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:19:45]process_action_free print_text [13:19:45]json_value_free [13:19:45]json_value_free done [13:19:45]process_json_proto returns [13:19:45]Send response to host [13:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69904,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:19:45]free response buf [13:19:45]execute_script done [13:19:45]execute_script returns [13:19:45]free content buf [13:19:45]Sock 7.Close socket [13:19:45]Sock 7.Thread stoped [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:01]accept exits with 9 [13:20:01]New connection [13:20:01]New thread 3067002212 created [13:20:01]Thread 3066858852 joined [13:20:01]Waiting for new connection... [13:20:01] Sock 9.Parse request [13:20:01]Sock 9.Check first char [13:20:01]Sock 9.First char is OK [13:20:01]request: POST /json_proto HTTP/1.0 [13:20:01]Method: POST [13:20:01]URL: /json_proto [13:20:01]Method is POST - this is cgi request [13:20:01]url: /json_proto [13:20:01]query_string will be loaded in cgi processing [13:20:01]execute_cgi json_proto POST (null) [13:20:01]execute_cgi path=json_proto method=POST [13:20:01]POST find Content-Length [13:20:01]Host: 172.17.49.132:8080 [13:20:01]Content-Length: 1168 [13:20:01]Content-Type: application/json [13:20:01] [13:20:01]POST finish read [13:20:01]Found Content-Length = 1168 [13:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137133", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:01]execute_script... [13:20: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 : (3)137133", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:01]POST & json_proto [13:20:01]process_json_proto [13:20:01]json parsed OK: [13:20:01]protocol is kg_v1.0 [13:20:01]action value=close_receipt [13:20:01]process_action close_receipt [13:20:01]cmd_close_receipt [13:20:01]MH_GetDate [13:20:01]Write to MH i2c: F0 00 00 00 B2 A1 [13:20:01]Write i2c OK [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 09 00 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 09 00 00 B2 00 94 8B AB 66 E7 4B C0 64 30 [13:20:01]GetLastDocTimeStamp 1722517800 [13:20:01]current date 1722518420 [13:20:01]FM_GetShiftState [13:20:01]SAM_PROTO_GetShiftState [13:20:01]wFMCommunicate request_size=4 [13:20:01]MH_SAM_APDU [13:20:01]CAPDU: 80 13 01 00 [13:20:01]Write to MH i2c: E2 08 00 01 B2 80 13 01 00 00 00 00 00 30 [13:20:01]Write i2c OK [13:20:01]MH_I2C_Read... [13:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:01]Read from MH i2c: E2 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: E2 0E 00 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: E2 0E 00 01 B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 69 [13:20:01]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:20:01]wFMCommunicate OK [13:20:01]SAM_PROTO_GetShiftState done [13:20:01]FM_GetShiftState done [13:20:01]opened in 1722472772 [13:20:01]opened+sec_in_day 1722559172 [13:20:01]quantity*price = 18000 [13:20:01]sum+1 = 18001 [13:20:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 0.00 Безнал.: 230.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 68 01.08.2024 13:20 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69905 ФПД: 197454297421007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T132020&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69905&fm=197454297421007&tin=02508201610067®Number=0000000000092638&sum=23000 0 [13:20:03]StoreToDocumentArchive [13:20:03]shift 433 fd 69905 [13:20:03]save to /storage/0433/doc_00069905 [13:20:03]save last doc name /storage/0433/doc_00069905 to /storage/kkm_last_doc_name [13:20:03]save OK [13:20:03]Clear old archive folders... [13:20:03]ProcessDocumentItem done err = 0, tmpTLVsize=407 [13:20:03]tlvbuf is 014D1760 [13:20:03]SAM_PROTO_ClearQueue [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 09 00 00 [13:20:03]Write to MH i2c: E2 08 00 0E B2 80 09 00 00 00 00 00 00 32 [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 0E B2 00 90 00 34 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]SAM_PROTO_ClearQueue done [13:20:03]KKMCreateOFDPacket [13:20:03]OFDProtocolAddRootSTLVToBuf [13:20:03]FM_MakeSignedData [13:20:03]FM_MakeSignedData [13:20:03]SAM_PROTO_SignData [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 01 02 [13:20:03]Write to MH i2c: E2 08 00 0F B2 80 0D 01 02 00 00 00 00 3A [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 0F B2 00 90 00 35 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=255 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [13:20:03]Write to MH i2c: E2 02 01 10 B2 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 7E [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 10 B2 00 90 00 36 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=166 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 02 02 A1 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 94 8B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 11 01 00 35 04 06 00 B3 95 69 41 D4 CF [13:20:03]Write to MH i2c: E2 A9 00 11 B2 80 0D 02 02 A1 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 94 8B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 11 01 00 35 04 06 00 B3 95 69 41 D4 CF 00 00 66 [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 11 B2 00 90 00 37 [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 03 02 [13:20:03]Write to MH i2c: E2 08 00 12 B2 80 0D 03 02 00 00 00 00 3F [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 0B 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 0B 00 12 B2 00 0A AB 24 C0 F4 5E 7C 0A 90 00 B1 [13:20:03]RAPDU: 0A AB 24 C0 F4 5E 7C 0A 90 00 [13:20:03]wFMCommunicate OK [13:20:03]SAM_PROTO_SignData done [13:20:03]FM_MakeSignedData done [13:20:03]CreateOFDProtocolMessage [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 11 00 00 [13:20:03]Write to MH i2c: E2 08 00 13 B2 80 11 00 00 00 00 00 00 3F [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 17 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 17 00 13 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9B [13:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:20:03]wFMCommunicate OK [13:20:03]CreateOFDProtocolMessage done [13:20:03]OFDSenderStorePacket 69905 [13:20:03]StoreOFDPacket docnum=69905 [13:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 AB 01 00 00 17 C8 A3 01 81 1A 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 94 8B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 11 01 00 35 04 06 00 B3 95 69 41 D4 CF 0A AB 24 C0 F4 5E 7C 0A [13:20:03]CheckFolder [13:20:03]dirname=/storage/ofd_packets [13:20:03]CheckFolder done [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00069905 [13:20:03]NVStorageSaveData ofd_packets/00069905 [13:20:03]File name is /storage/ofd_packets/00069905 [13:20:03]Write 457 bytes [13:20:03]NVStorageSaveData done [13:20:03]OFDSenderStorePacket done [13:20:03]KKMCreateOFDPacket done [13:20:03]NVStorageSaveData kkm_last_timestamp [13:20:03]File name is /storage/kkm_last_timestamp [13:20:03]Write 4 bytes [13:20:03]NVStorageSaveData done [13:20:03]ExternCall_PrintAddStr [13:20:03]wPrintStart [13:20:03]Write to MH i2c: 01 00 00 14 B2 C6 [13:20:04]OFD Sender: Processing packet 69905 [packets to send 19, broken 18] [13:20:04]ProducePacketName [13:20:04]name=ofd_packets/00069905 [13:20:04]OFD Sender: To server: pG, [13:20:04]CommunicateWithHost lk.salyk.kg:30040 [13:20:04]ConnectInit lk.salyk.kg [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 14 B2 00 00 00 00 00 FF 0F DB [13:20:04]RasterBufferAndPrint [13:20:04]line Счет N : (3)137133 [13:20:04]line ИНН: 02508201610067 [13:20:04]line Контрольно-Кассовый Чек [13:20:04]line ПРОДАЖА [13:20:04]line Товар: 5449000273673 [13:20:04]line Сок Piko Pulpy красный виноград ПЭТ 1л [13:20:04]line 1.000 * 180.00 [13:20:04]line = 180.00 [13:20:04]line НДС 12% НСП 1% [13:20:04]line > о реализуемом товаре [13:20:04]line Товар: 5449000005489 [13:20:04]line Вода Бонаква 1л б/г [13:20:04]line 1.000 * 50.00 [13:20:04]line = 50.00 [13:20:04]line НДС 12% НСП 1% [13:20:04]line > о реализуемом товаре [13:20:04]line ИТОГО: 230.00 [13:20:04]line НСП 1% : 2.03 [13:20:04]line НДС 12% : 24.42 [13:20:04]line Наличными: 0.00 [13:20:04]line Безнал.: 230.00 [13:20:04]line Место: АЗС № 125 "Партнер Нефть" [13:20:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:20:04]line СНО: Общий режим [13:20:04]line Чек 68 01.08.2024 13:20 [13:20:04]line Смена: 433 ФФД: 1.0 [13:20:04]line ЗНМ: 0300000049 [13:20:04]line РНМ: 0000000000092638 [13:20:04]line Версия ККМ: 001 [13:20:04]line Платежная система: АКБ Кыргызстан [13:20:04]line ФМ: 0000000000874949 [13:20:04]line ФД: 69905 [13:20:04]line ФПД: 197454297421007 [13:20:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T132020&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69905&fm=197454297421007&tin=02508201610067®Number=0000000000092638&sum=23000 [13:20:04]line 0 [13:20:04]written 0, free lines is 4095 [13:20:04]Connected sock=10 [13:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 AB 01 00 00 17 C8 A3 01 81 1A 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 59 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 94 8B AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 11 01 00 35 04 06 00 B3 95 69 41 D4 CF 0A AB 24 C0 F4 5E 7C 0A [13:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 7F 16 47 00 E2 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 11 11 01 00 F4 03 04 00 F5 31 AB 66 B6 04 01 00 00 B1 F3 86 92 58 7C E5 4F [13:20:04]CommunicateWithHost err = 0 [13:20:04]CheckOFDResponse [13:20:04]1017 (14) - 77093643461234 [13:20:04]1041 (16) - 0000000000874949 [13:20:04]1040 (4) - 69905 [13:20:04]1012 (4) - 01.08.2024 06:57 [13:20:04]1206 (1) - 0 [13:20:04]OFD Sender: Remove packet 69905 [13:20:04]ProducePacketName [13:20:04]name=ofd_packets/00069905 [13:20:04]NVStorageDeleteData [13:20:04]Write to MH i2c: 01 00 00 45 B2 F7 [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 45 B2 00 00 00 00 00 BB 0C C5 [13:20:04]RasterBufferAndPrint [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]written 0, free lines is 3269 [13:20:04]MH_Cut [13:20:04]Write to MH i2c: D1 01 00 4C B2 01 D0 [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: D1 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: D1 01 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: D1 01 00 4C B2 00 CF [13:20:04]Write to MH i2c: 01 00 00 4D B2 FF [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]OFD Sender: No OFD packet to send [13:20:05]*** Cut start [13:20:05]*** Partial cut [13:20:05]*** CUTSNS_PIN = 1 [13:20:05]*** CUTSNS_PIN = 0 [13:20:05]*** Brake cut motor [13:20:05]Read from MH i2c: 01 [13:20:05]MH_I2C_Read... [13:20:05]*** Stop cut motor [13:20:05]*** Cut end [13:20:05]Read from MH i2c: 01 07 00 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: 01 07 00 4D B2 00 00 00 00 00 FF 0F 14 [13:20:05]process_action close_receipt done [13:20:05]requested_data is exist [13:20:05]produce_requested_data [13:20:05]requested_item fm.sn is exist - process it [13:20:05]wFMCommunicate request_size=4 [13:20:05]MH_SAM_APDU [13:20:05]CAPDU: 80 11 00 00 [13:20:05]Write to MH i2c: E2 08 00 4E B2 80 11 00 00 00 00 00 00 7A [13:20:05]Write i2c OK [13:20:05]MH_I2C_Read... [13:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:05]Read from MH i2c: E2 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 17 00 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 17 00 4E B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D6 [13:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:20:05]wFMCommunicate OK [13:20:05]requested_item fd.num is exist - process it [13:20:05]SAM_PROTO_GetFieldsCounters [13:20:05]wFMCommunicate request_size=4 [13:20:05]MH_SAM_APDU [13:20:05]CAPDU: 80 13 00 00 [13:20:05]Write to MH i2c: E2 08 00 4F B2 80 13 00 00 00 00 00 00 7D [13:20:05]Write i2c OK [13:20:05]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 62 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 62 00 4F B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 11 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [13:20:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 11 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:06]wFMCommunicate OK [13:20:06]SAM_PROTO_GetFieldsCounters done [13:20:06]requested_item shift.num is exist - process it [13:20:06]requested_item shift.opened is exist - process it [13:20:06]req_shift_opened [13:20:06]FM_GetShiftState [13:20:06]SAM_PROTO_GetShiftState [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 13 01 00 [13:20:06]Write to MH i2c: E2 08 00 50 B2 80 13 01 00 00 00 00 00 7F [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 0E 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 0E 00 50 B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 B8 [13:20:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:20:06]wFMCommunicate OK [13:20:06]SAM_PROTO_GetShiftState done [13:20:06]FM_GetShiftState done [13:20:06]req_shift_opened done [13:20:06]requested_item shift.open_date is exist - process it [13:20:06]req_shift_open_date [13:20:06]req_shift_open_date done [13:20:06]produce_requested_data done [13:20:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69905,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:20:06]process_action_free close_receipt [13:20:06]json_value_free [13:20:06]json_value_free done [13:20:06]process_json_proto returns [13:20:06]Send response to host [13:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69905,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:20:06]free response buf [13:20:06]execute_script done [13:20:06]execute_script returns [13:20:06]free content buf [13:20:06]Sock 9.Close socket [13:20:06]Sock 9.Thread stoped [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]accept exits with 7 [13:22:39]New connection [13:22:39]New thread 3066858852 created [13:22:39]Thread 3067002212 joined [13:22:39]Waiting for new connection... [13:22:39] Sock 7.Parse request [13:22:39]Sock 7.Check first char [13:22:39]Sock 7.First char is OK [13:22:39]request: POST /json_proto HTTP/1.0 [13:22:39]Method: POST [13:22:39]URL: /json_proto [13:22:39]Method is POST - this is cgi request [13:22:39]url: /json_proto [13:22:39]query_string will be loaded in cgi processing [13:22:39]execute_cgi json_proto POST (null) [13:22:39]execute_cgi path=json_proto method=POST [13:22:39]POST find Content-Length [13:22:39]Host: 172.17.49.132:8080 [13:22:39]Content-Length: 1251 [13:22:39]Content-Type: application/json [13:22:39] [13:22:39]POST finish read [13:22:39]Found Content-Length = 1251 [13:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874804\u000A01.08.2024 12:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548669;670;671;672;673;674;675;676;677;678\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:39]execute_script... [13:22:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874804\u000A01.08.2024 12:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548669;670;671;672;673;674;675;676;677;678\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:39]POST & json_proto [13:22:39]process_json_proto [13:22:39]json parsed OK: [13:22:39]protocol is kg_v1.0 [13:22:39]action value=print_text [13:22:39]process_action print_text [13:22:39]cmd_print_text [13:22:39]ExternCall_PrintAddStr [13:22:39]wPrintStart [13:22:39]Write to MH i2c: 01 00 00 51 B2 03 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 07 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 07 00 51 B2 00 00 00 00 00 FF 0F 18 [13:22:39]RasterBufferAndPrint [13:22:39]line *****ТОВАРНЫЙ ЧЕК***** [13:22:39]line АЗС 125 [13:22:39]line Партнер нефть [13:22:39]line 02508201610067 [13:22:39]line Кассир : Мадаминова Б. [13:22:39]line Счет N : (1)874804 [13:22:39]line 01.08.2024 12:43 [13:22:39]line ПРОДАЖА [13:22:39]line ТРК (МРК, ГНК): 52 [13:22:39]line Вид ГСМ : 2710124130 [13:22:39]line Аи-92-К-5 [13:22:39]line 100.000 x 67.80 [13:22:39]line ИТОГ: 6780.00 [13:22:39]line Тип оплаты: Талоны: Топливные Талоны [13:22:39]line 3548669;670;671;672;673;674;675;676;677;678 [13:22:39]line ______________________ [13:22:39]line (подпись) [13:22:39]written 0, free lines is 4095 [13:22:39]Write to MH i2c: 01 00 00 66 B2 18 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 07 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 07 00 66 B2 00 00 00 00 00 0E 0E 3B [13:22:39]RasterBufferAndPrint [13:22:39]line [13:22:39]line [13:22:39]line [13:22:39]line [13:22:39]line [13:22:39]written 0, free lines is 3600 [13:22:39]MH_Cut [13:22:39]Write to MH i2c: D1 01 00 6D B2 01 F1 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: D1 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: D1 01 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: D1 01 00 6D B2 00 F0 [13:22:39]Write to MH i2c: 01 00 00 6E B2 20 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]OFD Sender: No OFD packet to send [13:22:40]*** Cut start [13:22:40]*** Partial cut [13:22:40]*** CUTSNS_PIN = 1 [13:22:40]*** CUTSNS_PIN = 0 [13:22:40]*** Brake cut motor [13:22:40]Read from MH i2c: 01 [13:22:40]MH_I2C_Read... [13:22:40]*** Stop cut motor [13:22:40]*** Cut end [13:22:40]Read from MH i2c: 01 07 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 07 00 6E B2 00 00 00 00 00 FF 0F 35 [13:22:40]process_action print_text done [13:22:40]requested_data is exist [13:22:40]produce_requested_data [13:22:40]requested_item fm.sn is exist - process it [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 11 00 00 [13:22:40]Write to MH i2c: E2 08 00 6F B2 80 11 00 00 00 00 00 00 9B [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 17 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 17 00 6F B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F7 [13:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:22:40]wFMCommunicate OK [13:22:40]requested_item fd.num is exist - process it [13:22:40]SAM_PROTO_GetFieldsCounters [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 13 00 00 [13:22:40]Write to MH i2c: E2 08 00 70 B2 80 13 00 00 00 00 00 00 9E [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 62 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 62 00 70 B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 11 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [13:22:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 11 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_GetFieldsCounters done [13:22:40]requested_item shift.num is exist - process it [13:22:40]requested_item shift.opened is exist - process it [13:22:40]req_shift_opened [13:22:40]FM_GetShiftState [13:22:40]SAM_PROTO_GetShiftState [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 13 01 00 [13:22:40]Write to MH i2c: E2 08 00 71 B2 80 13 01 00 00 00 00 00 A0 [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 0E 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 0E 00 71 B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D9 [13:22:40]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_GetShiftState done [13:22:40]FM_GetShiftState done [13:22:40]req_shift_opened done [13:22:40]requested_item shift.open_date is exist - process it [13:22:40]req_shift_open_date [13:22:40]req_shift_open_date done [13:22:40]produce_requested_data done [13:22:40]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69905,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:22:40]process_action_free print_text [13:22:40]json_value_free [13:22:40]json_value_free done [13:22:40]process_json_proto returns [13:22:40]Send response to host [13:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69905,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:22:40]free response buf [13:22:40]execute_script done [13:22:40]execute_script returns [13:22:40]free content buf [13:22:40]Sock 7.Close socket [13:22:40]Sock 7.Thread stoped [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23: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:53]accept exits with 9 [13:23:53]New connection [13:23:53]New thread 3067002212 created [13:23:53]Thread 3066858852 joined [13:23:53]Waiting for new connection... [13:23:53] Sock 9.Parse request [13:23:53]Sock 9.Check first char [13:23:53]Sock 9.First char is OK [13:23:53]request: POST /json_proto HTTP/1.0 [13:23:53]Method: POST [13:23:53]URL: /json_proto [13:23:53]Method is POST - this is cgi request [13:23:53]url: /json_proto [13:23:53]query_string will be loaded in cgi processing [13:23:53]execute_cgi json_proto POST (null) [13:23:53]execute_cgi path=json_proto method=POST [13:23:53]POST find Content-Length [13:23:53]Host: 172.17.49.132:8080 [13:23:53]Content-Length: 678 [13:23:53]Content-Type: application/json [13:23:53] [13:23:53]POST finish read [13:23:53]Found Content-Length = 678 [13:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:53]execute_script... [13:23: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)874810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 13.300, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:53]POST & json_proto [13:23:53]process_json_proto [13:23:53]json parsed OK: [13:23:53]protocol is kg_v1.0 [13:23:53]action value=close_receipt [13:23:53]process_action close_receipt [13:23:53]cmd_close_receipt [13:23:53]MH_GetDate [13:23:53]Write to MH i2c: F0 00 00 72 B2 13 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: F0 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: F0 09 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: F0 09 00 72 B2 00 7C 8C AB 66 E7 4B C0 64 8B [13:23:53]GetLastDocTimeStamp 1722518420 [13:23:53]current date 1722518652 [13:23:53]FM_GetShiftState [13:23:53]SAM_PROTO_GetShiftState [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 13 01 00 [13:23:53]Write to MH i2c: E2 08 00 73 B2 80 13 01 00 00 00 00 00 A2 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0E 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0E 00 73 B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 DB [13:23:53]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:23:53]wFMCommunicate OK [13:23:53]SAM_PROTO_GetShiftState done [13:23:53]FM_GetShiftState done [13:23:53]opened in 1722472772 [13:23:53]opened+sec_in_day 1722559172 [13:23:53]quantity*price = 100016 [13:23:53]sum+1 = 100017 [13:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 69 01.08.2024 13:24 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69906 ФПД: 91883510962603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T132412&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69906&fm=91883510962603&tin=02508201610067®Number=0000000000092638&sum=100000 [13:23:55]StoreToDocumentArchive [13:23:55]shift 433 fd 69906 [13:23:55]save to /storage/0433/doc_00069906 [13:23:55]save last doc name /storage/0433/doc_00069906 to /storage/kkm_last_doc_name [13:23:55]save OK [13:23:55]Clear old archive folders... [13:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:23:55]tlvbuf is 01196990 [13:23:55]SAM_PROTO_ClearQueue [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 09 00 00 [13:23:55]Write to MH i2c: E2 08 00 80 B2 80 09 00 00 00 00 00 00 A4 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]OFD Sender: No OFD packet to send [13:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 80 B2 00 90 00 A6 [13:23:55]RAPDU: 90 00 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_ClearQueue done [13:23:55]KKMCreateOFDPacket [13:23:55]OFDProtocolAddRootSTLVToBuf [13:23:55]FM_MakeSignedData [13:23:55]FM_MakeSignedData [13:23:55]SAM_PROTO_SignData [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 0D 01 02 [13:23:55]Write to MH i2c: E2 08 00 81 B2 80 0D 01 02 00 00 00 00 AC [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 81 B2 00 90 00 A7 [13:23:55]RAPDU: 90 00 [13:23:55]wFMCommunicate OK [13:23:55]wFMCommunicate request_size=255 [13:23:55]MH_SAM_APDU [13:23: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 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 8C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 11 01 00 35 04 06 00 53 91 4C 08 [13:23:55]Write to MH i2c: E2 02 01 82 B2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 8C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 11 01 00 35 04 06 00 53 91 4C 08 00 00 C8 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 82 B2 00 90 00 A8 [13:23:55]RAPDU: 90 00 [13:23:55]wFMCommunicate OK [13:23:55]wFMCommunicate request_size=7 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 0D 02 02 02 19 AB [13:23:55]Write to MH i2c: E2 0A 00 83 B2 80 0D 02 02 02 00 19 AB 00 00 77 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 03 00 83 B2 00 90 00 A9 [13:23:55]RAPDU: 90 00 [13:23:55]wFMCommunicate OK [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 0D 03 02 [13:23:55]Write to MH i2c: E2 08 00 84 B2 80 0D 03 02 00 00 00 00 B1 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 0B 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 0B 00 84 B2 00 F8 2D 3F 78 CE 1B ED 83 90 00 E7 [13:23:55]RAPDU: F8 2D 3F 78 CE 1B ED 83 90 00 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_SignData done [13:23:55]FM_MakeSignedData done [13:23:55]CreateOFDProtocolMessage [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 11 00 00 [13:23:55]Write to MH i2c: E2 08 00 85 B2 80 11 00 00 00 00 00 00 B1 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 85 B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 0D [13:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:23:55]wFMCommunicate OK [13:23:55]CreateOFDProtocolMessage done [13:23:55]OFDSenderStorePacket 69906 [13:23:55]StoreOFDPacket docnum=69906 [13:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 46 3B 04 01 C1 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 8C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 11 01 00 35 04 06 00 53 91 4C 08 19 AB F8 2D 3F 78 CE 1B ED 83 [13:23:55]CheckFolder [13:23:55]dirname=/storage/ofd_packets [13:23:55]CheckFolder done [13:23:55]ProducePacketName [13:23:55]name=ofd_packets/00069906 [13:23:55]NVStorageSaveData ofd_packets/00069906 [13:23:55]File name is /storage/ofd_packets/00069906 [13:23:55]Write 298 bytes [13:23:55]NVStorageSaveData done [13:23:55]OFDSenderStorePacket done [13:23:55]KKMCreateOFDPacket done [13:23:55]NVStorageSaveData kkm_last_timestamp [13:23:55]File name is /storage/kkm_last_timestamp [13:23:55]Write 4 bytes [13:23:55]NVStorageSaveData done [13:23:55]ExternCall_PrintAddStr [13:23:55]wPrintStart [13:23:55]Write to MH i2c: 01 00 00 86 B2 38 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 86 B2 00 00 00 00 00 FF 0F 4D [13:23:55]RasterBufferAndPrint [13:23:55]line Счет N : (1)874810 [13:23:55]line ИНН: 02508201610067 [13:23:55]line Контрольно-Кассовый Чек [13:23:55]line ПРОДАЖА [13:23:55]line ТРК (МРК, ГНК) : 2 [13:23:55]line Товар: 2710194210 [13:23:55]line ДТ-К-5 [13:23:55]line 13.300 * 75.20 [13:23:55]line = 1000.16 [13:23:55]line НДС 12% НСП 1% [13:23:55]line > о реализуемом товаре [13:23:55]line ОКРУГЛЕНИЕ: -0.16 [13:23:55]line ИТОГО: 1000.00 [13:23:55]line Внесено: 1000.00 [13:23:55]line СДАЧА: 0.00 [13:23:55]line НСП 1% : 8.85 [13:23:55]line НДС 12% : 106.21 [13:23:55]line Наличными: 1000.00 [13:23:55]line Безнал.: 0.00 [13:23:55]line Место: АЗС № 125 "Партнер Нефть" [13:23:55]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:23:55]line СНО: Общий режим [13:23:55]line Чек 69 01.08.2024 13:24 [13:23:55]line Смена: 433 ФФД: 1.0 [13:23:55]line ЗНМ: 0300000049 [13:23:55]line РНМ: 0000000000092638 [13:23:55]line Версия ККМ: 001 [13:23:55]line ФМ: 0000000000874949 [13:23:55]line ФД: 69906 [13:23:55]line ФПД: 91883510962603 [13:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T132412&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69906&fm=91883510962603&tin=02508201610067®Number=0000000000092638&sum=100000 [13:23:55]OFD Sender: Processing packet 69906 [packets to send 19, broken 18] [13:23:55]ProducePacketName [13:23:55]name=ofd_packets/00069906 [13:23:55]OFD Sender: To server: pG, [13:23:55]CommunicateWithHost lk.salyk.kg:30040 [13:23:55]ConnectInit lk.salyk.kg [13:23:55]written 0, free lines is 4095 [13:23:55]Connected sock=10 [13:23:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 46 3B 04 01 C1 DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 33 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 8C AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 11 01 00 35 04 06 00 53 91 4C 08 19 AB F8 2D 3F 78 CE 1B ED 83 [13:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 44 21 47 00 97 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 12 11 01 00 F4 03 04 00 DD 32 AB 66 B6 04 01 00 00 22 15 42 7D F6 39 D1 F0 [13:23:56]CommunicateWithHost err = 0 [13:23:56]CheckOFDResponse [13:23:56]1017 (14) - 77093643461234 [13:23:56]1041 (16) - 0000000000874949 [13:23:56]1040 (4) - 69906 [13:23:56]1012 (4) - 01.08.2024 07:01 [13:23:56]1206 (1) - 0 [13:23:56]OFD Sender: Remove packet 69906 [13:23:56]ProducePacketName [13:23:56]name=ofd_packets/00069906 [13:23:56]NVStorageDeleteData [13:23:56]Write to MH i2c: 01 00 00 B1 B2 63 [13:23:56]Write i2c OK [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: 01 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: 01 07 00 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: 01 07 00 B1 B2 00 00 00 00 00 EC 0C 62 [13:23:56]RasterBufferAndPrint [13:23:56]line [13:23:56]line [13:23:56]line [13:23:56]line [13:23:56]line [13:23:56]written 0, free lines is 3314 [13:23:56]MH_Cut [13:23:56]Write to MH i2c: D1 01 00 B8 B2 01 3C [13:23:56]Write i2c OK [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: D1 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: D1 01 00 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: D1 01 00 B8 B2 00 3B [13:23:56]Write to MH i2c: 01 00 00 B9 B2 6B [13:23:56]Write i2c OK [13:23:56]MH_I2C_Read... [13:23:56]OFD Sender: No OFD packet to send [13:23:56]*** Cut start [13:23:56]*** Partial cut [13:23:56]*** CUTSNS_PIN = 1 [13:23:57]*** CUTSNS_PIN = 0 [13:23:57]*** Brake cut motor [13:23:57]Read from MH i2c: 01 [13:23:57]MH_I2C_Read... [13:23:57]*** Stop cut motor [13:23:57]*** Cut end [13:23:57]Read from MH i2c: 01 07 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: 01 07 00 B9 B2 00 00 00 00 00 FF 0F 80 [13:23:57]process_action close_receipt done [13:23:57]requested_data is exist [13:23:57]produce_requested_data [13:23:57]requested_item fm.sn is exist - process it [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 11 00 00 [13:23:57]Write to MH i2c: E2 08 00 BA B2 80 11 00 00 00 00 00 00 E6 [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 17 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 17 00 BA B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 42 [13:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:23:57]wFMCommunicate OK [13:23:57]requested_item fd.num is exist - process it [13:23:57]SAM_PROTO_GetFieldsCounters [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 13 00 00 [13:23:57]Write to MH i2c: E2 08 00 BB B2 80 13 00 00 00 00 00 00 E9 [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 62 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 62 00 BB B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:57]wFMCommunicate OK [13:23:57]SAM_PROTO_GetFieldsCounters done [13:23:57]requested_item shift.num is exist - process it [13:23:57]requested_item shift.opened is exist - process it [13:23:57]req_shift_opened [13:23:57]FM_GetShiftState [13:23:57]SAM_PROTO_GetShiftState [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 13 01 00 [13:23:57]Write to MH i2c: E2 08 00 BC B2 80 13 01 00 00 00 00 00 EB [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 0E 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 0E 00 BC B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 24 [13:23:57]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:23:57]wFMCommunicate OK [13:23:57]SAM_PROTO_GetShiftState done [13:23:57]FM_GetShiftState done [13:23:57]req_shift_opened done [13:23:57]requested_item shift.open_date is exist - process it [13:23:57]req_shift_open_date [13:23:57]req_shift_open_date done [13:23:57]produce_requested_data done [13:23:57]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69906,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:23:57]process_action_free close_receipt [13:23:57]json_value_free [13:23:57]json_value_free done [13:23:57]process_json_proto returns [13:23:57]Send response to host [13:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69906,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:23:57]free response buf [13:23:57]execute_script done [13:23:57]execute_script returns [13:23:57]free content buf [13:23:57]Sock 9.Close socket [13:23:57]Sock 9.Thread stoped [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:38]accept exits with 7 [13:24:38]New connection [13:24:38]New thread 3066858852 created [13:24:38]Thread 3067002212 joined [13:24:38]Waiting for new connection... [13:24:38] Sock 7.Parse request [13:24:38]Sock 7.Check first char [13:24:38]Sock 7.First char is OK [13:24:38]request: POST /json_proto HTTP/1.0 [13:24:38]Method: POST [13:24:38]URL: /json_proto [13:24:38]Method is POST - this is cgi request [13:24:38]url: /json_proto [13:24:38]query_string will be loaded in cgi processing [13:24:38]execute_cgi json_proto POST (null) [13:24:38]execute_cgi path=json_proto method=POST [13:24:38]POST find Content-Length [13:24:38]Host: 172.17.49.132:8080 [13:24:38]Content-Length: 1251 [13:24:38]Content-Type: application/json [13:24:38] [13:24:38]POST finish read [13:24:38]Found Content-Length = 1251 [13:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874808\u000A01.08.2024 12:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548659;660;661;662;663;664;665;666;667;668\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:38]execute_script... [13:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874808\u000A01.08.2024 12:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548659;660;661;662;663;664;665;666;667;668\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:38]POST & json_proto [13:24:38]process_json_proto [13:24:38]json parsed OK: [13:24:38]protocol is kg_v1.0 [13:24:38]action value=print_text [13:24:38]process_action print_text [13:24:38]cmd_print_text [13:24:38]ExternCall_PrintAddStr [13:24:38]wPrintStart [13:24:38]Write to MH i2c: 01 00 00 BD B2 6F [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 BD B2 00 00 00 00 00 FF 0F 84 [13:24:38]RasterBufferAndPrint [13:24:38]line *****ТОВАРНЫЙ ЧЕК***** [13:24:38]line АЗС 125 [13:24:38]line Партнер нефть [13:24:38]line 02508201610067 [13:24:38]line Кассир : Мадаминова Б. [13:24:38]line Счет N : (1)874808 [13:24:38]line 01.08.2024 12:45 [13:24:38]line ПРОДАЖА [13:24:38]line ТРК (МРК, ГНК): 62 [13:24:38]line Вид ГСМ : 2710124130 [13:24:38]line Аи-92-К-5 [13:24:38]line 100.000 x 67.80 [13:24:38]line ИТОГ: 6780.00 [13:24:38]line Тип оплаты: Талоны: Топливные Талоны [13:24:38]line 3548659;660;661;662;663;664;665;666;667;668 [13:24:38]line ______________________ [13:24:39]line (подпись) [13:24:39]written 0, free lines is 4095 [13:24:39]Write to MH i2c: 01 00 00 D2 B2 84 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 07 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 07 00 D2 B2 00 00 00 00 00 0C 0E A5 [13:24:39]RasterBufferAndPrint [13:24:39]line [13:24:39]line [13:24:39]line [13:24:39]line [13:24:39]line [13:24:39]written 0, free lines is 3600 [13:24:39]MH_Cut [13:24:39]Write to MH i2c: D1 01 00 D9 B2 01 5D [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: D1 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: D1 01 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: D1 01 00 D9 B2 00 5C [13:24:39]Write to MH i2c: 01 00 00 DA B2 8C [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** Cut start [13:24:39]*** Partial cut [13:24:39]*** CUTSNS_PIN = 1 [13:24:39]*** CUTSNS_PIN = 0 [13:24:40]*** Brake cut motor [13:24:40]Read from MH i2c: 01 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: 01 07 00 [13:24:40]MH_I2C_Read... [13:24:40]*** Stop cut motor [13:24:40]*** Cut end [13:24:40]Read from MH i2c: 01 07 00 DA B2 00 00 00 00 00 FF 0F A1 [13:24:40]process_action print_text done [13:24:40]requested_data is exist [13:24:40]produce_requested_data [13:24:40]requested_item fm.sn is exist - process it [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 11 00 00 [13:24:40]Write to MH i2c: E2 08 00 DB B2 80 11 00 00 00 00 00 00 07 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 17 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 17 00 DB B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 63 [13:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:24:40]wFMCommunicate OK [13:24:40]requested_item fd.num is exist - process it [13:24:40]SAM_PROTO_GetFieldsCounters [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 13 00 00 [13:24:40]Write to MH i2c: E2 08 00 DC B2 80 13 00 00 00 00 00 00 0A [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 62 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 62 00 DC B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [13:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetFieldsCounters done [13:24:40]requested_item shift.num is exist - process it [13:24:40]requested_item shift.opened is exist - process it [13:24:40]req_shift_opened [13:24:40]FM_GetShiftState [13:24:40]SAM_PROTO_GetShiftState [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 13 01 00 [13:24:40]Write to MH i2c: E2 08 00 DD B2 80 13 01 00 00 00 00 00 0C [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0E 00 DD B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 45 [13:24:40]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_GetShiftState done [13:24:40]FM_GetShiftState done [13:24:40]req_shift_opened done [13:24:40]requested_item shift.open_date is exist - process it [13:24:40]req_shift_open_date [13:24:40]req_shift_open_date done [13:24:40]produce_requested_data done [13:24:40]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69906,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:24:40]process_action_free print_text [13:24:40]json_value_free [13:24:40]json_value_free done [13:24:40]process_json_proto returns [13:24:40]Send response to host [13:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69906,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:24:40]free response buf [13:24:40]execute_script done [13:24:40]execute_script returns [13:24:40]free content buf [13:24:40]Sock 7.Close socket [13:24:40]Sock 7.Thread stoped [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:39]accept exits with 9 [13:27:39]New connection [13:27:39]New thread 3067002212 created [13:27:39]Thread 3066858852 joined [13:27:39]Waiting for new connection... [13:27:39] Sock 9.Parse request [13:27:39]Sock 9.Check first char [13:27:39]Sock 9.First char is OK [13:27:39]request: POST /json_proto HTTP/1.0 [13:27:39]Method: POST [13:27:39]URL: /json_proto [13:27:39]Method is POST - this is cgi request [13:27:39]url: /json_proto [13:27:39]query_string will be loaded in cgi processing [13:27:39]execute_cgi json_proto POST (null) [13:27:39]execute_cgi path=json_proto method=POST [13:27:39]POST find Content-Length [13:27:39]Host: 172.17.49.132:8080 [13:27:39]Content-Length: 1252 [13:27:39]Content-Type: application/json [13:27:39] [13:27:39]POST finish read [13:27:39]Found Content-Length = 1252 [13:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874812\u000A01.08.2024 12:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548649;650;651;652;653;654;655;656;657;658;\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:39]execute_script... [13:27:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874812\u000A01.08.2024 12:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3548649;650;651;652;653;654;655;656;657;658;\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:39]POST & json_proto [13:27:39]process_json_proto [13:27:39]json parsed OK: [13:27:39]protocol is kg_v1.0 [13:27:39]action value=print_text [13:27:39]process_action print_text [13:27:39]cmd_print_text [13:27:39]ExternCall_PrintAddStr [13:27:39]wPrintStart [13:27:39]Write to MH i2c: 01 00 00 DE B2 90 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 DE B2 00 00 00 00 00 FF 0F A5 [13:27:39]RasterBufferAndPrint [13:27:39]line *****ТОВАРНЫЙ ЧЕК***** [13:27:39]line АЗС 125 [13:27:39]line Партнер нефть [13:27:39]line 02508201610067 [13:27:39]line Кассир : Мадаминова Б. [13:27:39]line Счет N : (1)874812 [13:27:39]line 01.08.2024 12:48 [13:27:39]line ПРОДАЖА [13:27:39]line ТРК (МРК, ГНК): 52 [13:27:39]line Вид ГСМ : 2710124130 [13:27:39]line Аи-92-К-5 [13:27:39]line 100.000 x 67.80 [13:27:39]line ИТОГ: 6780.00 [13:27:39]line Тип оплаты: Талоны: Топливные Талоны [13:27:39]line 3548649;650;651;652;653;654;655;656;657;658; [13:27:39]line ______________________ [13:27:39]line (подпись) [13:27:39]written 0, free lines is 4095 [13:27:39]Write to MH i2c: 01 00 00 F3 B2 A5 [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: 01 07 00 F3 B2 00 00 00 00 00 0B 0E C5 [13:27:39]RasterBufferAndPrint [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]line [13:27:39]written 0, free lines is 3596 [13:27:39]MH_Cut [13:27:39]Write to MH i2c: D1 01 00 FA B2 01 7E [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 01 00 [13:27:39]MH_I2C_Read... [13:27:39]Read from MH i2c: D1 01 00 FA B2 00 7D [13:27:39]Write to MH i2c: 01 00 00 FB B2 AD [13:27:39]Write i2c OK [13:27:39]MH_I2C_Read... [13:27:40]*** Cut start [13:27:40]*** Partial cut [13:27:40]*** CUTSNS_PIN = 1 [13:27:40]*** CUTSNS_PIN = 0 [13:27:40]*** Brake cut motor [13:27:40]Read from MH i2c: 01 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: 01 07 00 [13:27:40]MH_I2C_Read... [13:27:40]*** Stop cut motor [13:27:40]*** Cut end [13:27:40]Read from MH i2c: 01 07 00 FB B2 00 00 00 00 00 FF 0F C2 [13:27:40]process_action print_text done [13:27:40]requested_data is exist [13:27:40]produce_requested_data [13:27:40]requested_item fm.sn is exist - process it [13:27:40]wFMCommunicate request_size=4 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 11 00 00 [13:27:40]Write to MH i2c: E2 08 00 FC B2 80 11 00 00 00 00 00 00 28 [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 17 00 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 17 00 FC B2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 84 [13:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:27:40]wFMCommunicate OK [13:27:40]requested_item fd.num is exist - process it [13:27:40]SAM_PROTO_GetFieldsCounters [13:27:40]wFMCommunicate request_size=4 [13:27:40]MH_SAM_APDU [13:27:40]CAPDU: 80 13 00 00 [13:27:40]Write to MH i2c: E2 08 00 FD B2 80 13 00 00 00 00 00 00 2B [13:27:40]Write i2c OK [13:27:40]MH_I2C_Read... [13:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:40]Read from MH i2c: E2 [13:27:40]MH_I2C_Read... [13:27:40]Read from MH i2c: E2 62 00 [13:27:40]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 62 00 FD B2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [13:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 12 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:41]wFMCommunicate OK [13:27:41]SAM_PROTO_GetFieldsCounters done [13:27:41]requested_item shift.num is exist - process it [13:27:41]requested_item shift.opened is exist - process it [13:27:41]req_shift_opened [13:27:41]FM_GetShiftState [13:27:41]SAM_PROTO_GetShiftState [13:27:41]wFMCommunicate request_size=4 [13:27:41]MH_SAM_APDU [13:27:41]CAPDU: 80 13 01 00 [13:27:41]Write to MH i2c: E2 08 00 FE B2 80 13 01 00 00 00 00 00 2D [13:27:41]Write i2c OK [13:27:41]MH_I2C_Read... [13:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:41]Read from MH i2c: E2 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 0E 00 [13:27:41]MH_I2C_Read... [13:27:41]Read from MH i2c: E2 0E 00 FE B2 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 66 [13:27:41]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:27:41]wFMCommunicate OK [13:27:41]SAM_PROTO_GetShiftState done [13:27:41]FM_GetShiftState done [13:27:41]req_shift_opened done [13:27:41]requested_item shift.open_date is exist - process it [13:27:41]req_shift_open_date [13:27:41]req_shift_open_date done [13:27:41]produce_requested_data done [13:27:41]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69906,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:27:41]process_action_free print_text [13:27:41]json_value_free [13:27:41]json_value_free done [13:27:41]process_json_proto returns [13:27:41]Send response to host [13:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69906,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:27:41]free response buf [13:27:41]execute_script done [13:27:41]execute_script returns [13:27:41]free content buf [13:27:41]Sock 9.Close socket [13:27:41]Sock 9.Thread stoped [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:02]accept exits with 7 [13:30:02]New connection [13:30:02]New thread 3066858852 created [13:30:02]Thread 3067002212 joined [13:30:02]Waiting for new connection... [13:30:02] Sock 7.Parse request [13:30:02]Sock 7.Check first char [13:30:02]Sock 7.First char is OK [13:30:02]request: POST /json_proto HTTP/1.0 [13:30:02]Method: POST [13:30:02]URL: /json_proto [13:30:02]Method is POST - this is cgi request [13:30:02]url: /json_proto [13:30:02]query_string will be loaded in cgi processing [13:30:02]execute_cgi json_proto POST (null) [13:30:02]execute_cgi path=json_proto method=POST [13:30:02]POST find Content-Length [13:30:02]Host: 172.17.49.132:8080 [13:30:02]Content-Length: 836 [13:30:02]Content-Type: application/json [13:30:02] [13:30:02]POST finish read [13:30:02]Found Content-Length = 836 [13:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 6.650, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:02]execute_script... [13:30: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)874821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 6.650, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:02]POST & json_proto [13:30:02]process_json_proto [13:30:02]json parsed OK: [13:30:02]protocol is kg_v1.0 [13:30:02]action value=close_receipt [13:30:02]process_action close_receipt [13:30:02]cmd_close_receipt [13:30:02]MH_GetDate [13:30:02]Write to MH i2c: F0 00 00 FF B2 A0 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: F0 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: F0 09 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: F0 09 00 FF B2 00 EC 8D AB 66 E7 4B C0 64 89 [13:30:02]GetLastDocTimeStamp 1722518652 [13:30:02]current date 1722519020 [13:30:02]FM_GetShiftState [13:30:02]SAM_PROTO_GetShiftState [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 13 01 00 [13:30:02]Write to MH i2c: E2 08 00 00 B3 80 13 01 00 00 00 00 00 30 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0E 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0E 00 00 B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 69 [13:30:02]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_GetShiftState done [13:30:02]FM_GetShiftState done [13:30:02]opened in 1722472772 [13:30:02]opened+sec_in_day 1722559172 [13:30:02]quantity*price = 50008 [13:30:02]sum+1 = 50009 [13:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.08 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.08 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 70 01.08.2024 13:30 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69907 ФПД: 145421669155470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133020&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69907&fm=145421669155470&tin=02508201610067®Number=0000000000092638&sum=50008 [13:30:03]StoreToDocumentArchive [13:30:03]shift 433 fd 69907 [13:30:03]save to /storage/0433/doc_00069907 [13:30:03]save last doc name /storage/0433/doc_00069907 to /storage/kkm_last_doc_name [13:30:03]save OK [13:30:03]Clear old archive folders... [13:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:03]tlvbuf is 0151EC90 [13:30:03]SAM_PROTO_ClearQueue [13:30:03]wFMCommunicate request_size=4 [13:30:03]MH_SAM_APDU [13:30:03]CAPDU: 80 09 00 00 [13:30:03]Write to MH i2c: E2 08 00 0D B3 80 09 00 00 00 00 00 00 32 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:03]Read from MH i2c: E2 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 0D B3 00 90 00 34 [13:30:03]RAPDU: 90 00 [13:30:03]wFMCommunicate OK [13:30:03]SAM_PROTO_ClearQueue done [13:30:03]KKMCreateOFDPacket [13:30:03]OFDProtocolAddRootSTLVToBuf [13:30:03]FM_MakeSignedData [13:30:03]FM_MakeSignedData [13:30:03]SAM_PROTO_SignData [13:30:03]wFMCommunicate request_size=4 [13:30:03]MH_SAM_APDU [13:30:03]CAPDU: 80 0D 01 02 [13:30:03]Write to MH i2c: E2 08 00 0E B3 80 0D 01 02 00 00 00 00 3A [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:03]Read from MH i2c: E2 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 0E B3 00 90 00 35 [13:30:03]RAPDU: 90 00 [13:30:03]wFMCommunicate OK [13:30:03]wFMCommunicate request_size=255 [13:30:03]MH_SAM_APDU [13:30:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EC 8D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 11 01 00 35 04 06 00 84 42 9E EE [13:30:03]Write to MH i2c: E2 02 01 0F B3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EC 8D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 11 01 00 35 04 06 00 84 42 9E EE 00 00 0B [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:03]Read from MH i2c: E2 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 0F B3 00 90 00 36 [13:30:03]RAPDU: 90 00 [13:30:03]wFMCommunicate OK [13:30:03]wFMCommunicate request_size=7 [13:30:03]MH_SAM_APDU [13:30:03]CAPDU: 80 0D 02 02 02 C2 8E [13:30:03]Write to MH i2c: E2 0A 00 10 B3 80 0D 02 02 02 00 C2 8E 00 00 91 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:03]Read from MH i2c: E2 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 03 00 10 B3 00 90 00 37 [13:30:03]RAPDU: 90 00 [13:30:03]wFMCommunicate OK [13:30:03]wFMCommunicate request_size=4 [13:30:03]MH_SAM_APDU [13:30:03]CAPDU: 80 0D 03 02 [13:30:03]Write to MH i2c: E2 08 00 11 B3 80 0D 03 02 00 00 00 00 3F [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0B 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0B 00 11 B3 00 6D 0F 3D D0 DC 51 70 58 90 00 BE [13:30:04]RAPDU: 6D 0F 3D D0 DC 51 70 58 90 00 [13:30:04]wFMCommunicate OK [13:30:04]SAM_PROTO_SignData done [13:30:04]FM_MakeSignedData done [13:30:04]CreateOFDProtocolMessage [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 11 00 00 [13:30:04]Write to MH i2c: E2 08 00 12 B3 80 11 00 00 00 00 00 00 3F [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 17 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 17 00 12 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9B [13:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:30:04]wFMCommunicate OK [13:30:04]CreateOFDProtocolMessage done [13:30:04]OFDSenderStorePacket 69907 [13:30:04]StoreOFDPacket docnum=69907 [13:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 32 D0 04 01 96 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EC 8D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 11 01 00 35 04 06 00 84 42 9E EE C2 8E 6D 0F 3D D0 DC 51 70 58 [13:30:04]CheckFolder [13:30:04]dirname=/storage/ofd_packets [13:30:04]CheckFolder done [13:30:04]ProducePacketName [13:30:04]name=ofd_packets/00069907 [13:30:04]NVStorageSaveData ofd_packets/00069907 [13:30:04]File name is /storage/ofd_packets/00069907 [13:30:04]Write 298 bytes [13:30:04]NVStorageSaveData done [13:30:04]OFDSenderStorePacket done [13:30:04]KKMCreateOFDPacket done [13:30:04]NVStorageSaveData kkm_last_timestamp [13:30:04]File name is /storage/kkm_last_timestamp [13:30:04]Write 4 bytes [13:30:04]NVStorageSaveData done [13:30:04]ExternCall_PrintAddStr [13:30:04]wPrintStart [13:30:04]Write to MH i2c: 01 00 00 13 B3 C6 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 07 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 07 00 13 B3 00 00 00 00 00 FF 0F DB [13:30:04]RasterBufferAndPrint [13:30:04]line Счет N : (1)874821 [13:30:04]line ИНН: 02508201610067 [13:30:04]line Контрольно-Кассовый Чек [13:30:04]line ПРОДАЖА [13:30:04]line ТРК (МРК, ГНК) : 2 [13:30:04]line Товар: 2710194210 [13:30:04]line ДТ-К-5 [13:30:04]line 6.650 * 75.20 [13:30:04]line = 500.08 [13:30:04]line НДС 12% НСП 1% [13:30:04]line > о реализуемом товаре [13:30:04]line ИТОГО: 500.08 [13:30:04]line НСП 1% : 4.42 [13:30:04]line НДС 12% : 53.11 [13:30:04]line Наличными: 0.00 [13:30:04]line Безнал.: 500.08 [13:30:04]line Место: АЗС № 125 "Партнер Нефть" [13:30:04]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:30:04]line СНО: Общий режим [13:30:04]line Чек 70 01.08.2024 13:30 [13:30:04]line Смена: 433 ФФД: 1.0 [13:30:04]line ЗНМ: 0300000049 [13:30:04]line РНМ: 0000000000092638 [13:30:04]line Версия ККМ: 001 [13:30:04]line Платежная система: АКБ Кыргызстан [13:30:04]line ФМ: 0000000000874949 [13:30:04]line ФД: 69907 [13:30:04]line ФПД: 145421669155470 [13:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133020&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69907&fm=145421669155470&tin=02508201610067®Number=0000000000092638&sum=50008 [13:30:04]OFD Sender: Processing packet 69907 [packets to send 19, broken 18] [13:30:04]ProducePacketName [13:30:04]name=ofd_packets/00069907 [13:30:04]OFD Sender: To server: pG, [13:30:04]CommunicateWithHost lk.salyk.kg:30040 [13:30:04]ConnectInit lk.salyk.kg [13:30:04]written 0, free lines is 4095 [13:30:04]Connected sock=10 [13:30:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 32 D0 04 01 96 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 19 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 EC 8D AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 11 01 00 35 04 06 00 84 42 9E EE C2 8E 6D 0F 3D D0 DC 51 70 58 [13:30:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 75 62 47 00 CE 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 13 11 01 00 F4 03 04 00 4E 34 AB 66 B6 04 01 00 00 F4 5F 26 9C 50 F9 9E 62 [13:30:04]CommunicateWithHost err = 0 [13:30:04]CheckOFDResponse [13:30:04]1017 (14) - 77093643461234 [13:30:04]1041 (16) - 0000000000874949 [13:30:04]1040 (4) - 69907 [13:30:04]1012 (4) - 01.08.2024 07:07 [13:30:04]1206 (1) - 0 [13:30:04]OFD Sender: Remove packet 69907 [13:30:04]ProducePacketName [13:30:04]name=ofd_packets/00069907 [13:30:04]NVStorageDeleteData [13:30:04]Write to MH i2c: 01 00 00 3D B3 F0 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 07 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 07 00 3D B3 00 00 00 00 00 1E 0D 22 [13:30:04]RasterBufferAndPrint [13:30:04]line [13:30:04]line [13:30:04]line [13:30:04]line [13:30:04]line [13:30:04]written 0, free lines is 3363 [13:30:04]MH_Cut [13:30:04]Write to MH i2c: D1 01 00 44 B3 01 C9 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: D1 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: D1 01 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: D1 01 00 44 B3 00 C8 [13:30:04]Write to MH i2c: 01 00 00 45 B3 F8 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:05]OFD Sender: No OFD packet to send [13:30:05]*** Cut start [13:30:05]*** Partial cut [13:30:05]*** CUTSNS_PIN = 1 [13:30:05]*** CUTSNS_PIN = 0 [13:30:05]*** Brake cut motor [13:30:06]Read from MH i2c: 01 [13:30:06]MH_I2C_Read... [13:30:06]*** Stop cut motor [13:30:06]*** Cut end [13:30:06]Read from MH i2c: 01 07 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: 01 07 00 45 B3 00 00 00 00 00 FF 0F 0D [13:30:06]process_action close_receipt done [13:30:06]requested_data is exist [13:30:06]produce_requested_data [13:30:06]requested_item fm.sn is exist - process it [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 11 00 00 [13:30:06]Write to MH i2c: E2 08 00 46 B3 80 11 00 00 00 00 00 00 73 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 17 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 17 00 46 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 CF [13:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:30:06]wFMCommunicate OK [13:30:06]requested_item fd.num is exist - process it [13:30:06]SAM_PROTO_GetFieldsCounters [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 13 00 00 [13:30:06]Write to MH i2c: E2 08 00 47 B3 80 13 00 00 00 00 00 00 76 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 62 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 62 00 47 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 13 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [13:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 13 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:06]wFMCommunicate OK [13:30:06]SAM_PROTO_GetFieldsCounters done [13:30:06]requested_item shift.num is exist - process it [13:30:06]requested_item shift.opened is exist - process it [13:30:06]req_shift_opened [13:30:06]FM_GetShiftState [13:30:06]SAM_PROTO_GetShiftState [13:30:06]wFMCommunicate request_size=4 [13:30:06]MH_SAM_APDU [13:30:06]CAPDU: 80 13 01 00 [13:30:06]Write to MH i2c: E2 08 00 48 B3 80 13 01 00 00 00 00 00 78 [13:30:06]Write i2c OK [13:30:06]MH_I2C_Read... [13:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:06]Read from MH i2c: E2 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0E 00 [13:30:06]MH_I2C_Read... [13:30:06]Read from MH i2c: E2 0E 00 48 B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 B1 [13:30:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:30:06]wFMCommunicate OK [13:30:06]SAM_PROTO_GetShiftState done [13:30:06]FM_GetShiftState done [13:30:06]req_shift_opened done [13:30:06]requested_item shift.open_date is exist - process it [13:30:06]req_shift_open_date [13:30:06]req_shift_open_date done [13:30:06]produce_requested_data done [13:30:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69907,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:30:06]process_action_free close_receipt [13:30:06]json_value_free [13:30:06]json_value_free done [13:30:06]process_json_proto returns [13:30:06]Send response to host [13:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69907,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:30:06]free response buf [13:30:06]execute_script done [13:30:06]execute_script returns [13:30:06]free content buf [13:30:06]Sock 7.Close socket [13:30:06]Sock 7.Thread stoped [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:23]accept exits with 9 [13:30:23]New connection [13:30:23]New thread 3067002212 created [13:30:23]Thread 3066858852 joined [13:30:23]Waiting for new connection... [13:30:23] Sock 9.Parse request [13:30:23]Sock 9.Check first char [13:30:23]Sock 9.First char is OK [13:30:23]request: POST /json_proto HTTP/1.0 [13:30:23]Method: POST [13:30:23]URL: /json_proto [13:30:23]Method is POST - this is cgi request [13:30:23]url: /json_proto [13:30:23]query_string will be loaded in cgi processing [13:30:23]execute_cgi json_proto POST (null) [13:30:23]execute_cgi path=json_proto method=POST [13:30:23]POST find Content-Length [13:30:23]Host: 172.17.49.132:8080 [13:30:23]Content-Length: 1255 [13:30:23]Content-Type: application/json [13:30:23] [13:30:23]POST finish read [13:30:23]Found Content-Length = 1255 [13:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874816\u000A01.08.2024 12:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914505;504;3548641;642;643;644;645;646;647;648\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:23]execute_script... [13:30:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874816\u000A01.08.2024 12:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914505;504;3548641;642;643;644;645;646;647;648\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:23]POST & json_proto [13:30:23]process_json_proto [13:30:23]json parsed OK: [13:30:23]protocol is kg_v1.0 [13:30:23]action value=print_text [13:30:23]process_action print_text [13:30:23]cmd_print_text [13:30:23]ExternCall_PrintAddStr [13:30:23]wPrintStart [13:30:23]Write to MH i2c: 01 00 00 49 B3 FC [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 07 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 07 00 49 B3 00 00 00 00 00 FF 0F 11 [13:30:23]RasterBufferAndPrint [13:30:23]line *****ТОВАРНЫЙ ЧЕК***** [13:30:23]line АЗС 125 [13:30:23]line Партнер нефть [13:30:23]line 02508201610067 [13:30:23]line Кассир : Мадаминова Б. [13:30:23]line Счет N : (1)874816 [13:30:23]line 01.08.2024 12:51 [13:30:23]line ПРОДАЖА [13:30:23]line ТРК (МРК, ГНК): 62 [13:30:23]line Вид ГСМ : 2710124130 [13:30:23]line Аи-92-К-5 [13:30:23]line 100.000 x 67.80 [13:30:23]line ИТОГ: 6780.00 [13:30:23]line Тип оплаты: Талоны: Топливные Талоны [13:30:23]line 3914505;504;3548641;642;643;644;645;646;647;648 [13:30:23]line ______________________ [13:30:23]line (подпись) [13:30:23]written 0, free lines is 4095 [13:30:23]Write to MH i2c: 01 00 00 5E B3 11 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 07 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 07 00 5E B3 00 00 00 00 00 0C 0E 32 [13:30:23]RasterBufferAndPrint [13:30:23]line [13:30:23]line [13:30:23]line [13:30:23]line [13:30:23]line [13:30:23]written 0, free lines is 3600 [13:30:23]MH_Cut [13:30:23]Write to MH i2c: D1 01 00 65 B3 01 EA [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: D1 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: D1 01 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: D1 01 00 65 B3 00 E9 [13:30:23]Write to MH i2c: 01 00 00 66 B3 19 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:24]*** Cut start [13:30:24]*** Partial cut [13:30:24]*** CUTSNS_PIN = 1 [13:30:24]*** CUTSNS_PIN = 0 [13:30:24]*** Brake cut motor [13:30:24]Read from MH i2c: 01 [13:30:24]MH_I2C_Read... [13:30:24]*** Stop cut motor [13:30:24]*** Cut end [13:30:24]Read from MH i2c: 01 07 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 66 B3 00 00 00 00 00 FF 0F 2E [13:30:24]process_action print_text done [13:30:24]requested_data is exist [13:30:24]produce_requested_data [13:30:24]requested_item fm.sn is exist - process it [13:30:24]wFMCommunicate request_size=4 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 11 00 00 [13:30:24]Write to MH i2c: E2 08 00 67 B3 80 11 00 00 00 00 00 00 94 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 17 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 17 00 67 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F0 [13:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:30:24]wFMCommunicate OK [13:30:24]requested_item fd.num is exist - process it [13:30:24]SAM_PROTO_GetFieldsCounters [13:30:24]wFMCommunicate request_size=4 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 13 00 00 [13:30:24]Write to MH i2c: E2 08 00 68 B3 80 13 00 00 00 00 00 00 97 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:24]Read from MH i2c: E2 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 62 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: E2 62 00 68 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 13 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [13:30:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 13 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:24]wFMCommunicate OK [13:30:24]SAM_PROTO_GetFieldsCounters done [13:30:24]requested_item shift.num is exist - process it [13:30:24]requested_item shift.opened is exist - process it [13:30:24]req_shift_opened [13:30:24]FM_GetShiftState [13:30:24]SAM_PROTO_GetShiftState [13:30:24]wFMCommunicate request_size=4 [13:30:24]MH_SAM_APDU [13:30:24]CAPDU: 80 13 01 00 [13:30:24]Write to MH i2c: E2 08 00 69 B3 80 13 01 00 00 00 00 00 99 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:25]Read from MH i2c: E2 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 0E 00 [13:30:25]MH_I2C_Read... [13:30:25]Read from MH i2c: E2 0E 00 69 B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D2 [13:30:25]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:30:25]wFMCommunicate OK [13:30:25]SAM_PROTO_GetShiftState done [13:30:25]FM_GetShiftState done [13:30:25]req_shift_opened done [13:30:25]requested_item shift.open_date is exist - process it [13:30:25]req_shift_open_date [13:30:25]req_shift_open_date done [13:30:25]produce_requested_data done [13:30:25]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69907,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:30:25]process_action_free print_text [13:30:25]json_value_free [13:30:25]json_value_free done [13:30:25]process_json_proto returns [13:30:25]Send response to host [13:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69907,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:30:25]free response buf [13:30:25]execute_script done [13:30:25]execute_script returns [13:30:25]free content buf [13:30:25]Sock 9.Close socket [13:30:25]Sock 9.Thread stoped [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [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:22]accept exits with 7 [13:31:22]New connection [13:31:22]New thread 3066858852 created [13:31:22]Thread 3067002212 joined [13:31:22]Waiting for new connection... [13:31:22] Sock 7.Parse request [13:31:22]Sock 7.Check first char [13:31:22]Sock 7.First char is OK [13:31:22]request: POST /json_proto HTTP/1.0 [13:31:22]Method: POST [13:31:22]URL: /json_proto [13:31:22]Method is POST - this is cgi request [13:31:22]url: /json_proto [13:31:22]query_string will be loaded in cgi processing [13:31:22]execute_cgi json_proto POST (null) [13:31:22]execute_cgi path=json_proto method=POST [13:31:22]POST find Content-Length [13:31:22]Host: 172.17.49.132:8080 [13:31:22]Content-Length: 678 [13:31:22]Content-Type: application/json [13:31:22] [13:31:22]POST finish read [13:31:22]Found Content-Length = 678 [13:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:22]execute_script... [13:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:22]POST & json_proto [13:31:22]process_json_proto [13:31:22]json parsed OK: [13:31:22]protocol is kg_v1.0 [13:31:22]action value=close_receipt [13:31:22]process_action close_receipt [13:31:22]cmd_close_receipt [13:31:22]MH_GetDate [13:31:22]Write to MH i2c: F0 00 00 6A B3 0C [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: F0 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: F0 09 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: F0 09 00 6A B3 00 3D 8E AB 66 E7 4B C0 64 47 [13:31:22]GetLastDocTimeStamp 1722519020 [13:31:22]current date 1722519101 [13:31:22]FM_GetShiftState [13:31:22]SAM_PROTO_GetShiftState [13:31:22]wFMCommunicate request_size=4 [13:31:22]MH_SAM_APDU [13:31:22]CAPDU: 80 13 01 00 [13:31:22]Write to MH i2c: E2 08 00 6B B3 80 13 01 00 00 00 00 00 9B [13:31:22]Write i2c OK [13:31:22]MH_I2C_Read... [13:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:22]Read from MH i2c: E2 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 0E 00 [13:31:22]MH_I2C_Read... [13:31:22]Read from MH i2c: E2 0E 00 6B B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D4 [13:31:22]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:31:22]wFMCommunicate OK [13:31:22]SAM_PROTO_GetShiftState done [13:31:22]FM_GetShiftState done [13:31:22]opened in 1722472772 [13:31:22]opened+sec_in_day 1722559172 [13:31:22]quantity*price = 70037 [13:31:22]sum+1 = 70038 [13:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 71 01.08.2024 13:31 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69908 ФПД: 42362768902573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133141&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69908&fm=42362768902573&tin=02508201610067®Number=0000000000092638&sum=70000 [13:31:23]StoreToDocumentArchive [13:31:23]shift 433 fd 69908 [13:31:23]save to /storage/0433/doc_00069908 [13:31:23]save last doc name /storage/0433/doc_00069908 to /storage/kkm_last_doc_name [13:31:23]save OK [13:31:23]Clear old archive folders... [13:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:23]tlvbuf is 013FBBC0 [13:31:23]SAM_PROTO_ClearQueue [13:31:23]wFMCommunicate request_size=4 [13:31:23]MH_SAM_APDU [13:31:23]CAPDU: 80 09 00 00 [13:31:23]Write to MH i2c: E2 08 00 78 B3 80 09 00 00 00 00 00 00 9D [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:23]Read from MH i2c: E2 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: E2 03 00 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: E2 03 00 78 B3 00 90 00 9F [13:31:23]RAPDU: 90 00 [13:31:23]wFMCommunicate OK [13:31:23]SAM_PROTO_ClearQueue done [13:31:23]KKMCreateOFDPacket [13:31:23]OFDProtocolAddRootSTLVToBuf [13:31:23]FM_MakeSignedData [13:31:23]FM_MakeSignedData [13:31:23]SAM_PROTO_SignData [13:31:23]wFMCommunicate request_size=4 [13:31:23]MH_SAM_APDU [13:31:23]CAPDU: 80 0D 01 02 [13:31:23]Write to MH i2c: E2 08 00 79 B3 80 0D 01 02 00 00 00 00 A5 [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:23]Read from MH i2c: E2 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: E2 03 00 [13:31:23]MH_I2C_Read... [13:31:23]Read from MH i2c: E2 03 00 79 B3 00 90 00 A0 [13:31:23]RAPDU: 90 00 [13:31:23]wFMCommunicate OK [13:31:23]wFMCommunicate request_size=255 [13:31:23]MH_SAM_APDU [13:31:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 11 01 00 35 04 06 00 26 [13:31:23]Write to MH i2c: E2 02 01 7A B3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 11 01 00 35 04 06 00 26 00 00 38 [13:31:23]Write i2c OK [13:31:23]MH_I2C_Read... [13:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:24]Read from MH i2c: E2 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 03 00 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 03 00 7A B3 00 90 00 A1 [13:31:24]RAPDU: 90 00 [13:31:24]wFMCommunicate OK [13:31:24]wFMCommunicate request_size=10 [13:31:24]MH_SAM_APDU [13:31:24]CAPDU: 80 0D 02 02 05 87 59 CA C9 AD [13:31:24]Write to MH i2c: E2 0D 00 7B B3 80 0D 02 02 05 00 87 59 CA C9 AD 00 00 D2 [13:31:24]Write i2c OK [13:31:24]MH_I2C_Read... [13:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:24]Read from MH i2c: E2 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 03 00 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 03 00 7B B3 00 90 00 A2 [13:31:24]RAPDU: 90 00 [13:31:24]wFMCommunicate OK [13:31:24]wFMCommunicate request_size=4 [13:31:24]MH_SAM_APDU [13:31:24]CAPDU: 80 0D 03 02 [13:31:24]Write to MH i2c: E2 08 00 7C B3 80 0D 03 02 00 00 00 00 AA [13:31:24]Write i2c OK [13:31:24]MH_I2C_Read... [13:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:24]Read from MH i2c: E2 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 0B 00 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 0B 00 7C B3 00 A3 E9 43 0A CE 73 93 C3 90 00 1B [13:31:24]RAPDU: A3 E9 43 0A CE 73 93 C3 90 00 [13:31:24]wFMCommunicate OK [13:31:24]SAM_PROTO_SignData done [13:31:24]FM_MakeSignedData done [13:31:24]CreateOFDProtocolMessage [13:31:24]wFMCommunicate request_size=4 [13:31:24]MH_SAM_APDU [13:31:24]CAPDU: 80 11 00 00 [13:31:24]Write to MH i2c: E2 08 00 7D B3 80 11 00 00 00 00 00 00 AA [13:31:24]Write i2c OK [13:31:24]MH_I2C_Read... [13:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:24]Read from MH i2c: E2 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 17 00 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: E2 17 00 7D B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 06 [13:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:31:24]wFMCommunicate OK [13:31:24]CreateOFDProtocolMessage done [13:31:24]OFDSenderStorePacket 69908 [13:31:24]StoreOFDPacket docnum=69908 [13:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 6D 19 07 01 09 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 11 01 00 35 04 06 00 26 87 59 CA C9 AD A3 E9 43 0A CE 73 93 C3 [13:31:24]CheckFolder [13:31:24]dirname=/storage/ofd_packets [13:31:24]CheckFolder done [13:31:24]ProducePacketName [13:31:24]name=ofd_packets/00069908 [13:31:24]NVStorageSaveData ofd_packets/00069908 [13:31:24]File name is /storage/ofd_packets/00069908 [13:31:24]Write 301 bytes [13:31:24]NVStorageSaveData done [13:31:24]OFDSenderStorePacket done [13:31:24]KKMCreateOFDPacket done [13:31:24]NVStorageSaveData kkm_last_timestamp [13:31:24]File name is /storage/kkm_last_timestamp [13:31:24]Write 4 bytes [13:31:24]NVStorageSaveData done [13:31:24]ExternCall_PrintAddStr [13:31:24]wPrintStart [13:31:24]Write to MH i2c: 01 00 00 7E B3 31 [13:31:24]Write i2c OK [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: 01 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: 01 07 00 [13:31:24]MH_I2C_Read... [13:31:24]Read from MH i2c: 01 07 00 7E B3 00 00 00 00 00 FF 0F 46 [13:31:24]RasterBufferAndPrint [13:31:24]line Счет N : (1)874822 [13:31:24]line ИНН: 02508201610067 [13:31:24]line Контрольно-Кассовый Чек [13:31:24]line ПРОДАЖА [13:31:24]line ТРК (МРК, ГНК) : 52 [13:31:24]line Товар: 2710124130 [13:31:24]line Аи-92-К-5 [13:31:24]line 10.330 * 67.80 [13:31:24]line = 700.37 [13:31:24]line НДС 12% НСП 1% [13:31:24]line > о реализуемом товаре [13:31:24]line ОКРУГЛЕНИЕ: -0.37 [13:31:24]line ИТОГО: 700.00 [13:31:24]line Внесено: 700.00 [13:31:24]line СДАЧА: 0.00 [13:31:24]line НСП 1% : 6.20 [13:31:24]line НДС 12% : 74.38 [13:31:24]line Наличными: 700.00 [13:31:24]line Безнал.: 0.00 [13:31:24]line Место: АЗС № 125 "Партнер Нефть" [13:31:24]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:31:24]line СНО: Общий режим [13:31:24]line Чек 71 01.08.2024 13:31 [13:31:24]line Смена: 433 ФФД: 1.0 [13:31:24]line ЗНМ: 0300000049 [13:31:24]line РНМ: 0000000000092638 [13:31:24]line Версия ККМ: 001 [13:31:24]line ФМ: 0000000000874949 [13:31:24]line ФД: 69908 [13:31:24]line ФПД: 42362768902573 [13:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133141&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69908&fm=42362768902573&tin=02508201610067®Number=0000000000092638&sum=70000 [13:31:24]written 0, free lines is 4095 [13:31:24]OFD Sender: Processing packet 69908 [packets to send 19, broken 18] [13:31:24]ProducePacketName [13:31:24]name=ofd_packets/00069908 [13:31:24]OFD Sender: To server: pG, [13:31:24]CommunicateWithHost lk.salyk.kg:30040 [13:31:24]ConnectInit lk.salyk.kg [13:31:24]Connected sock=10 [13:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 6D 19 07 01 09 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 3D 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 14 11 01 00 35 04 06 00 26 87 59 CA C9 AD A3 E9 43 0A CE 73 93 C3 [13:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1F 23 47 00 69 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 34 39 34 39 10 04 04 00 14 11 01 00 F4 03 04 00 9E 34 AB 66 B6 04 01 00 00 B5 28 6E BE 67 4F BB A2 [13:31:24]CommunicateWithHost err = 0 [13:31:24]CheckOFDResponse [13:31:24]1017 (14) - 77093643461234 [13:31:24]1041 (16) - 0000000000874949 [13:31:24]1040 (4) - 69908 [13:31:24]1012 (4) - 01.08.2024 07:09 [13:31:24]1206 (1) - 0 [13:31:24]OFD Sender: Remove packet 69908 [13:31:24]ProducePacketName [13:31:24]name=ofd_packets/00069908 [13:31:24]NVStorageDeleteData [13:31:25]Write to MH i2c: 01 00 00 A9 B3 5C [13:31:25]Write i2c OK [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: 01 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: 01 07 00 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: 01 07 00 A9 B3 00 00 00 00 00 ED 0C 5C [13:31:25]RasterBufferAndPrint [13:31:25]line [13:31:25]line [13:31:25]line [13:31:25]line [13:31:25]line [13:31:25]written 0, free lines is 3315 [13:31:25]MH_Cut [13:31:25]Write to MH i2c: D1 01 00 B0 B3 01 35 [13:31:25]Write i2c OK [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: D1 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: D1 01 00 [13:31:25]MH_I2C_Read... [13:31:25]Read from MH i2c: D1 01 00 B0 B3 00 34 [13:31:25]Write to MH i2c: 01 00 00 B1 B3 64 [13:31:25]Write i2c OK [13:31:25]MH_I2C_Read... [13:31:25]OFD Sender: No OFD packet to send [13:31:25]*** Cut start [13:31:25]*** Partial cut [13:31:25]*** CUTSNS_PIN = 1 [13:31:25]*** CUTSNS_PIN = 0 [13:31:26]*** Brake cut motor [13:31:26]Read from MH i2c: 01 [13:31:26]MH_I2C_Read... [13:31:26]*** Stop cut motor [13:31:26]*** Cut end [13:31:26]Read from MH i2c: 01 07 00 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: 01 07 00 B1 B3 00 00 00 00 00 FF 0F 79 [13:31:26]process_action close_receipt done [13:31:26]requested_data is exist [13:31:26]produce_requested_data [13:31:26]requested_item fm.sn is exist - process it [13:31:26]wFMCommunicate request_size=4 [13:31:26]MH_SAM_APDU [13:31:26]CAPDU: 80 11 00 00 [13:31:26]Write to MH i2c: E2 08 00 B2 B3 80 11 00 00 00 00 00 00 DF [13:31:26]Write i2c OK [13:31:26]MH_I2C_Read... [13:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:26]Read from MH i2c: E2 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: E2 17 00 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: E2 17 00 B2 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3B [13:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:31:26]wFMCommunicate OK [13:31:26]requested_item fd.num is exist - process it [13:31:26]SAM_PROTO_GetFieldsCounters [13:31:26]wFMCommunicate request_size=4 [13:31:26]MH_SAM_APDU [13:31:26]CAPDU: 80 13 00 00 [13:31:26]Write to MH i2c: E2 08 00 B3 B3 80 13 00 00 00 00 00 00 E2 [13:31:26]Write i2c OK [13:31:26]MH_I2C_Read... [13:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:26]Read from MH i2c: E2 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: E2 62 00 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: E2 62 00 B3 B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 14 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [13:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 14 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:26]wFMCommunicate OK [13:31:26]SAM_PROTO_GetFieldsCounters done [13:31:26]requested_item shift.num is exist - process it [13:31:26]requested_item shift.opened is exist - process it [13:31:26]req_shift_opened [13:31:26]FM_GetShiftState [13:31:26]SAM_PROTO_GetShiftState [13:31:26]wFMCommunicate request_size=4 [13:31:26]MH_SAM_APDU [13:31:26]CAPDU: 80 13 01 00 [13:31:26]Write to MH i2c: E2 08 00 B4 B3 80 13 01 00 00 00 00 00 E4 [13:31:26]Write i2c OK [13:31:26]MH_I2C_Read... [13:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:26]Read from MH i2c: E2 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: E2 0E 00 [13:31:26]MH_I2C_Read... [13:31:26]Read from MH i2c: E2 0E 00 B4 B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1D [13:31:26]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:31:26]wFMCommunicate OK [13:31:26]SAM_PROTO_GetShiftState done [13:31:26]FM_GetShiftState done [13:31:26]req_shift_opened done [13:31:26]requested_item shift.open_date is exist - process it [13:31:26]req_shift_open_date [13:31:26]req_shift_open_date done [13:31:26]produce_requested_data done [13:31:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69908,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:31:26]process_action_free close_receipt [13:31:26]json_value_free [13:31:26]json_value_free done [13:31:26]process_json_proto returns [13:31:26]Send response to host [13:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69908,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:31:26]free response buf [13:31:26]execute_script done [13:31:26]execute_script returns [13:31:26]free content buf [13:31:26]Sock 7.Close socket [13:31:26]Sock 7.Thread stoped [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:16]accept exits with 9 [13:32:16]New connection [13:32:16]New thread 3067002212 created [13:32:16]Thread 3066858852 joined [13:32:16]Waiting for new connection... [13:32:16] Sock 9.Parse request [13:32:16]Sock 9.Check first char [13:32:16]Sock 9.First char is OK [13:32:16]request: POST /json_proto HTTP/1.0 [13:32:16]Method: POST [13:32:16]URL: /json_proto [13:32:16]Method is POST - this is cgi request [13:32:16]url: /json_proto [13:32:16]query_string will be loaded in cgi processing [13:32:16]execute_cgi json_proto POST (null) [13:32:16]execute_cgi path=json_proto method=POST [13:32:16]POST find Content-Length [13:32:16]Host: 172.17.49.132:8080 [13:32:16]Content-Length: 678 [13:32:16]Content-Type: application/json [13:32:16] [13:32:16]POST finish read [13:32:16]Found Content-Length = 678 [13:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "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" ] } } [13:32:16]execute_script... [13:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 2", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 19.950, "sum" : 1500.24, "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" ] } } [13:32:16]POST & json_proto [13:32:16]process_json_proto [13:32:16]json parsed OK: [13:32:16]protocol is kg_v1.0 [13:32:16]action value=close_receipt [13:32:16]process_action close_receipt [13:32:16]cmd_close_receipt [13:32:16]MH_GetDate [13:32:16]Write to MH i2c: F0 00 00 B5 B3 57 [13:32:16]Write i2c OK [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: F0 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: F0 09 00 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: F0 09 00 B5 B3 00 73 8E AB 66 E7 4B C0 64 C8 [13:32:16]GetLastDocTimeStamp 1722519101 [13:32:16]current date 1722519155 [13:32:16]FM_GetShiftState [13:32:16]SAM_PROTO_GetShiftState [13:32:16]wFMCommunicate request_size=4 [13:32:16]MH_SAM_APDU [13:32:16]CAPDU: 80 13 01 00 [13:32:16]Write to MH i2c: E2 08 00 B6 B3 80 13 01 00 00 00 00 00 E6 [13:32:16]Write i2c OK [13:32:16]MH_I2C_Read... [13:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:16]Read from MH i2c: E2 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: E2 0E 00 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: E2 0E 00 B6 B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1F [13:32:16]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:32:16]wFMCommunicate OK [13:32:16]SAM_PROTO_GetShiftState done [13:32:16]FM_GetShiftState done [13:32:16]opened in 1722472772 [13:32:16]opened+sec_in_day 1722559172 [13:32:16]quantity*price = 150024 [13:32:16]sum+1 = 150025 [13:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 72 01.08.2024 13:32 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69909 ФПД: 62691855514589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133235&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69909&fm=62691855514589&tin=02508201610067®Number=0000000000092638&sum=150000 [13:32:17]StoreToDocumentArchive [13:32:17]shift 433 fd 69909 [13:32:17]save to /storage/0433/doc_00069909 [13:32:17]save last doc name /storage/0433/doc_00069909 to /storage/kkm_last_doc_name [13:32:17]save OK [13:32:17]Clear old archive folders... [13:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:17]tlvbuf is 011AFC00 [13:32:17]SAM_PROTO_ClearQueue [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 09 00 00 [13:32:17]Write to MH i2c: E2 08 00 C3 B3 80 09 00 00 00 00 00 00 E8 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 C3 B3 00 90 00 EA [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]SAM_PROTO_ClearQueue done [13:32:17]KKMCreateOFDPacket [13:32:17]OFDProtocolAddRootSTLVToBuf [13:32:17]FM_MakeSignedData [13:32:17]FM_MakeSignedData [13:32:17]SAM_PROTO_SignData [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 0D 01 02 [13:32:17]Write to MH i2c: E2 08 00 C4 B3 80 0D 01 02 00 00 00 00 F0 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 C4 B3 00 90 00 EB [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]wFMCommunicate request_size=255 [13:32:17]MH_SAM_APDU [13:32: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 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 48 00 00 00 F4 03 04 00 73 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 11 01 00 35 04 06 00 39 04 95 C7 [13:32:17]Write to MH i2c: E2 02 01 C5 B3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 48 00 00 00 F4 03 04 00 73 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 11 01 00 35 04 06 00 39 04 95 C7 00 00 56 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 C5 B3 00 90 00 EC [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=7 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 02 02 02 3B DD [13:32:18]Write to MH i2c: E2 0A 00 C6 B3 80 0D 02 02 02 00 3B DD 00 00 0F [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 C6 B3 00 90 00 ED [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 03 02 [13:32:18]Write to MH i2c: E2 08 00 C7 B3 80 0D 03 02 00 00 00 00 F5 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 C7 B3 00 3F 0D CD 7F 23 EE C2 A8 90 00 09 [13:32:18]RAPDU: 3F 0D CD 7F 23 EE C2 A8 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_SignData done [13:32:18]FM_MakeSignedData done [13:32:18]CreateOFDProtocolMessage [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 11 00 00 [13:32:18]Write to MH i2c: E2 08 00 C8 B3 80 11 00 00 00 00 00 00 F5 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 C8 B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 51 [13:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:32:18]wFMCommunicate OK [13:32:18]CreateOFDProtocolMessage done [13:32:18]OFDSenderStorePacket 69909 [13:32:18]StoreOFDPacket docnum=69909 [13:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 E9 85 04 01 79 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 48 00 00 00 F4 03 04 00 73 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 11 01 00 35 04 06 00 39 04 95 C7 3B DD 3F 0D CD 7F 23 EE C2 A8 [13:32:18]CheckFolder [13:32:18]dirname=/storage/ofd_packets [13:32:18]CheckFolder done [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00069909 [13:32:18]NVStorageSaveData ofd_packets/00069909 [13:32:18]File name is /storage/ofd_packets/00069909 [13:32:18]Write 298 bytes [13:32:18]NVStorageSaveData done [13:32:18]OFDSenderStorePacket done [13:32:18]KKMCreateOFDPacket done [13:32:18]NVStorageSaveData kkm_last_timestamp [13:32:18]File name is /storage/kkm_last_timestamp [13:32:18]Write 4 bytes [13:32:18]NVStorageSaveData done [13:32:18]ExternCall_PrintAddStr [13:32:18]wPrintStart [13:32:18]Write to MH i2c: 01 00 00 C9 B3 7C [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 C9 B3 00 00 00 00 00 FF 0F 91 [13:32:18]RasterBufferAndPrint [13:32:18]line Счет N : (1)874825 [13:32:18]line ИНН: 02508201610067 [13:32:18]line Контрольно-Кассовый Чек [13:32:18]line ПРОДАЖА [13:32:18]line ТРК (МРК, ГНК) : 2 [13:32:18]line Товар: 2710194210 [13:32:18]line ДТ-К-5 [13:32:18]line 19.950 * 75.20 [13:32:18]line = 1500.24 [13:32:18]line НДС 12% НСП 1% [13:32:18]line > о реализуемом товаре [13:32:18]line ОКРУГЛЕНИЕ: -0.24 [13:32:18]line ИТОГО: 1500.00 [13:32:18]line Внесено: 1500.00 [13:32:18]line СДАЧА: 0.00 [13:32:18]line НСП 1% : 13.28 [13:32:18]line НДС 12% : 159.32 [13:32:18]line Наличными: 1500.00 [13:32:18]line Безнал.: 0.00 [13:32:18]line Место: АЗС № 125 "Партнер Нефть" [13:32:18]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:32:18]line СНО: Общий режим [13:32:18]line Чек 72 01.08.2024 13:32 [13:32:18]line Смена: 433 ФФД: 1.0 [13:32:18]line ЗНМ: 0300000049 [13:32:18]line РНМ: 0000000000092638 [13:32:18]line Версия ККМ: 001 [13:32:18]line ФМ: 0000000000874949 [13:32:18]line ФД: 69909 [13:32:18]line ФПД: 62691855514589 [13:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133235&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69909&fm=62691855514589&tin=02508201610067®Number=0000000000092638&sum=150000 [13:32:18]OFD Sender: Processing packet 69909 [packets to send 19, broken 18] [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00069909 [13:32:18]OFD Sender: To server: pG, [13:32:18]CommunicateWithHost lk.salyk.kg:30040 [13:32:18]ConnectInit lk.salyk.kg [13:32:18]written 0, free lines is 4095 [13:32:18]Connected sock=10 [13:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 E9 85 04 01 79 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 08 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 3C 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 48 00 00 00 F4 03 04 00 73 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 11 01 00 35 04 06 00 39 04 95 C7 3B DD 3F 0D CD 7F 23 EE C2 A8 [13:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 37 26 47 00 A7 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 15 11 01 00 F4 03 04 00 D4 34 AB 66 B6 04 01 00 00 7D 07 6B D2 2B 79 20 93 [13:32:18]CommunicateWithHost err = 0 [13:32:18]CheckOFDResponse [13:32:18]1017 (14) - 77093643461234 [13:32:18]1041 (16) - 0000000000874949 [13:32:18]1040 (4) - 69909 [13:32:18]1012 (4) - 01.08.2024 07:10 [13:32:18]1206 (1) - 0 [13:32:18]OFD Sender: Remove packet 69909 [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00069909 [13:32:18]NVStorageDeleteData [13:32:19]Write to MH i2c: 01 00 00 F4 B3 A7 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 F4 B3 00 00 00 00 00 FA 0C B4 [13:32:19]RasterBufferAndPrint [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]written 0, free lines is 3328 [13:32:19]MH_Cut [13:32:19]Write to MH i2c: D1 01 00 FB B3 01 80 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 01 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: D1 01 00 FB B3 00 7F [13:32:19]Write to MH i2c: 01 00 00 FC B3 AF [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]OFD Sender: No OFD packet to send [13:32:19]*** Cut start [13:32:19]*** Partial cut [13:32:19]*** CUTSNS_PIN = 1 [13:32:19]*** CUTSNS_PIN = 0 [13:32:19]*** Brake cut motor [13:32:20]Read from MH i2c: 01 [13:32:20]MH_I2C_Read... [13:32:20]*** Stop cut motor [13:32:20]*** Cut end [13:32:20]Read from MH i2c: 01 07 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: 01 07 00 FC B3 00 00 00 00 00 FF 0F C4 [13:32:20]process_action close_receipt done [13:32:20]requested_data is exist [13:32:20]produce_requested_data [13:32:20]requested_item fm.sn is exist - process it [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 11 00 00 [13:32:20]Write to MH i2c: E2 08 00 FD B3 80 11 00 00 00 00 00 00 2A [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 17 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 17 00 FD B3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 86 [13:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:32:20]wFMCommunicate OK [13:32:20]requested_item fd.num is exist - process it [13:32:20]SAM_PROTO_GetFieldsCounters [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 13 00 00 [13:32:20]Write to MH i2c: E2 08 00 FE B3 80 13 00 00 00 00 00 00 2D [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 62 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 62 00 FE B3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 15 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [13:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 15 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:20]wFMCommunicate OK [13:32:20]SAM_PROTO_GetFieldsCounters done [13:32:20]requested_item shift.num is exist - process it [13:32:20]requested_item shift.opened is exist - process it [13:32:20]req_shift_opened [13:32:20]FM_GetShiftState [13:32:20]SAM_PROTO_GetShiftState [13:32:20]wFMCommunicate request_size=4 [13:32:20]MH_SAM_APDU [13:32:20]CAPDU: 80 13 01 00 [13:32:20]Write to MH i2c: E2 08 00 FF B3 80 13 01 00 00 00 00 00 2F [13:32:20]Write i2c OK [13:32:20]MH_I2C_Read... [13:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:20]Read from MH i2c: E2 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 0E 00 [13:32:20]MH_I2C_Read... [13:32:20]Read from MH i2c: E2 0E 00 FF B3 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 68 [13:32:20]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:32:20]wFMCommunicate OK [13:32:20]SAM_PROTO_GetShiftState done [13:32:20]FM_GetShiftState done [13:32:20]req_shift_opened done [13:32:20]requested_item shift.open_date is exist - process it [13:32:20]req_shift_open_date [13:32:20]req_shift_open_date done [13:32:20]produce_requested_data done [13:32:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69909,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:32:20]process_action_free close_receipt [13:32:20]json_value_free [13:32:20]json_value_free done [13:32:20]process_json_proto returns [13:32:20]Send response to host [13:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69909,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:32:20]free response buf [13:32:20]execute_script done [13:32:20]execute_script returns [13:32:20]free content buf [13:32:20]Sock 9.Close socket [13:32:20]Sock 9.Thread stoped [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:21]accept exits with 7 [13:34:21]New connection [13:34:21]New thread 3066858852 created [13:34:21]Thread 3067002212 joined [13:34:21]Waiting for new connection... [13:34:21] Sock 7.Parse request [13:34:21]Sock 7.Check first char [13:34:21]Sock 7.First char is OK [13:34:21]request: POST /json_proto HTTP/1.0 [13:34:21]Method: POST [13:34:21]URL: /json_proto [13:34:21]Method is POST - this is cgi request [13:34:21]url: /json_proto [13:34:21]query_string will be loaded in cgi processing [13:34:21]execute_cgi json_proto POST (null) [13:34:21]execute_cgi path=json_proto method=POST [13:34:21]POST find Content-Length [13:34:21]Host: 172.17.49.132:8080 [13:34:21]Content-Length: 677 [13:34:21]Content-Type: application/json [13:34:21] [13:34:21]POST finish read [13:34:21]Found Content-Length = 677 [13:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:21]execute_script... [13:34: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)874829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:21]POST & json_proto [13:34:21]process_json_proto [13:34:21]json parsed OK: [13:34:21]protocol is kg_v1.0 [13:34:21]action value=close_receipt [13:34:21]process_action close_receipt [13:34:21]cmd_close_receipt [13:34:21]MH_GetDate [13:34:21]Write to MH i2c: F0 00 00 00 B4 A3 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: F0 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: F0 09 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: F0 09 00 00 B4 00 EF 8E AB 66 E7 4B C0 64 90 [13:34:21]GetLastDocTimeStamp 1722519155 [13:34:21]current date 1722519279 [13:34:21]FM_GetShiftState [13:34:21]SAM_PROTO_GetShiftState [13:34:21]wFMCommunicate request_size=4 [13:34:21]MH_SAM_APDU [13:34:21]CAPDU: 80 13 01 00 [13:34:21]Write to MH i2c: E2 08 00 01 B4 80 13 01 00 00 00 00 00 32 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:21]Read from MH i2c: E2 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: E2 0E 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: E2 0E 00 01 B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 6B [13:34:21]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:34:21]wFMCommunicate OK [13:34:21]SAM_PROTO_GetShiftState done [13:34:21]FM_GetShiftState done [13:34:21]opened in 1722472772 [13:34:21]opened+sec_in_day 1722559172 [13:34:21]quantity*price = 50036 [13:34:21]sum+1 = 50037 [13:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 73 01.08.2024 13:34 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69910 ФПД: 194950129082383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69910&fm=194950129082383&tin=02508201610067®Number=0000000000092638&sum=50000 [13:34:22]StoreToDocumentArchive [13:34:22]shift 433 fd 69910 [13:34:22]save to /storage/0433/doc_00069910 [13:34:22]save last doc name /storage/0433/doc_00069910 to /storage/kkm_last_doc_name [13:34:22]save OK [13:34:22]Clear old archive folders... [13:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:22]tlvbuf is 01491B60 [13:34:22]SAM_PROTO_ClearQueue [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 09 00 00 [13:34:22]Write to MH i2c: E2 08 00 0E B4 80 09 00 00 00 00 00 00 34 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 0E B4 00 90 00 36 [13:34:22]RAPDU: 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_ClearQueue done [13:34:22]KKMCreateOFDPacket [13:34:22]OFDProtocolAddRootSTLVToBuf [13:34:22]FM_MakeSignedData [13:34:22]FM_MakeSignedData [13:34:22]SAM_PROTO_SignData [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 0D 01 02 [13:34:22]Write to MH i2c: E2 08 00 0F B4 80 0D 01 02 00 00 00 00 3C [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 0F B4 00 90 00 37 [13:34:22]RAPDU: 90 00 [13:34:22]wFMCommunicate OK [13:34:22]wFMCommunicate request_size=255 [13:34:22]MH_SAM_APDU [13:34: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F0 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 11 01 00 35 04 06 00 B1 [13:34:22]Write to MH i2c: E2 02 01 10 B4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F0 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 11 01 00 35 04 06 00 B1 00 00 2A [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:23]Read from MH i2c: E2 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 10 B4 00 90 00 38 [13:34:23]RAPDU: 90 00 [13:34:23]wFMCommunicate OK [13:34:23]wFMCommunicate request_size=10 [13:34:23]MH_SAM_APDU [13:34:23]CAPDU: 80 0D 02 02 05 4E 5D 31 60 0F [13:34:23]Write to MH i2c: E2 0D 00 11 B4 80 0D 02 02 05 00 4E 5D 31 60 0F 00 00 94 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:23]Read from MH i2c: E2 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 11 B4 00 90 00 39 [13:34:23]RAPDU: 90 00 [13:34:23]wFMCommunicate OK [13:34:23]wFMCommunicate request_size=4 [13:34:23]MH_SAM_APDU [13:34:23]CAPDU: 80 0D 03 02 [13:34:23]Write to MH i2c: E2 08 00 12 B4 80 0D 03 02 00 00 00 00 41 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:23]Read from MH i2c: E2 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 0B 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 0B 00 12 B4 00 44 DE 25 A9 E0 E5 4E 7F 90 00 C4 [13:34:23]RAPDU: 44 DE 25 A9 E0 E5 4E 7F 90 00 [13:34:23]wFMCommunicate OK [13:34:23]SAM_PROTO_SignData done [13:34:23]FM_MakeSignedData done [13:34:23]CreateOFDProtocolMessage [13:34:23]wFMCommunicate request_size=4 [13:34:23]MH_SAM_APDU [13:34:23]CAPDU: 80 11 00 00 [13:34:23]Write to MH i2c: E2 08 00 13 B4 80 11 00 00 00 00 00 00 41 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:23]Read from MH i2c: E2 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 17 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 17 00 13 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 9D [13:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:34:23]wFMCommunicate OK [13:34:23]CreateOFDProtocolMessage done [13:34:23]OFDSenderStorePacket 69910 [13:34:23]StoreOFDPacket docnum=69910 [13:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 E0 DC 07 01 D5 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F0 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 11 01 00 35 04 06 00 B1 4E 5D 31 60 0F 44 DE 25 A9 E0 E5 4E 7F [13:34:23]CheckFolder [13:34:23]dirname=/storage/ofd_packets [13:34:23]CheckFolder done [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00069910 [13:34:23]NVStorageSaveData ofd_packets/00069910 [13:34:23]File name is /storage/ofd_packets/00069910 [13:34:23]Write 301 bytes [13:34:23]NVStorageSaveData done [13:34:23]OFDSenderStorePacket done [13:34:23]KKMCreateOFDPacket done [13:34:23]NVStorageSaveData kkm_last_timestamp [13:34:23]File name is /storage/kkm_last_timestamp [13:34:23]Write 4 bytes [13:34:23]NVStorageSaveData done [13:34:23]ExternCall_PrintAddStr [13:34:23]wPrintStart [13:34:23]Write to MH i2c: 01 00 00 14 B4 C8 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 07 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 07 00 14 B4 00 00 00 00 00 FF 0F DD [13:34:23]RasterBufferAndPrint [13:34:23]line Счет N : (1)874829 [13:34:23]line ИНН: 02508201610067 [13:34:23]line Контрольно-Кассовый Чек [13:34:23]line ПРОДАЖА [13:34:23]line ТРК (МРК, ГНК) : 52 [13:34:23]line Товар: 2710124130 [13:34:23]line Аи-92-К-5 [13:34:23]line 7.380 * 67.80 [13:34:23]line = 500.36 [13:34:23]line НДС 12% НСП 1% [13:34:23]line > о реализуемом товаре [13:34:23]line ОКРУГЛЕНИЕ: -0.36 [13:34:23]line ИТОГО: 500.00 [13:34:23]line Внесено: 500.00 [13:34:23]line СДАЧА: 0.00 [13:34:23]line НСП 1% : 4.43 [13:34:23]line НДС 12% : 53.14 [13:34:23]line Наличными: 500.00 [13:34:23]line Безнал.: 0.00 [13:34:23]line Место: АЗС № 125 "Партнер Нефть" [13:34:23]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:34:23]line СНО: Общий режим [13:34:23]line Чек 73 01.08.2024 13:34 [13:34:23]line Смена: 433 ФФД: 1.0 [13:34:23]line ЗНМ: 0300000049 [13:34:23]line РНМ: 0000000000092638 [13:34:23]line Версия ККМ: 001 [13:34:23]line ФМ: 0000000000874949 [13:34:23]line ФД: 69910 [13:34:23]line ФПД: 194950129082383 [13:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133440&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69910&fm=194950129082383&tin=02508201610067®Number=0000000000092638&sum=50000 [13:34:23]written 0, free lines is 4095 [13:34:23]OFD Sender: Processing packet 69910 [packets to send 19, broken 18] [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00069910 [13:34:23]OFD Sender: To server: pG, [13:34:23]CommunicateWithHost lk.salyk.kg:30040 [13:34:23]ConnectInit lk.salyk.kg [13:34:23]Connected sock=10 [13:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 E0 DC 07 01 D5 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 F0 8E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 11 01 00 35 04 06 00 B1 4E 5D 31 60 0F 44 DE 25 A9 E0 E5 4E 7F [13:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 32 07 47 00 73 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 16 11 01 00 F4 03 04 00 50 35 AB 66 B6 04 01 00 00 61 22 71 FD FC 2C C7 93 [13:34:23]CommunicateWithHost err = 0 [13:34:23]CheckOFDResponse [13:34:23]1017 (14) - 77093643461234 [13:34:23]1041 (16) - 0000000000874949 [13:34:23]1040 (4) - 69910 [13:34:23]1012 (4) - 01.08.2024 07:12 [13:34:23]1206 (1) - 0 [13:34:23]OFD Sender: Remove packet 69910 [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00069910 [13:34:23]NVStorageDeleteData [13:34:23]Write to MH i2c: 01 00 00 3F B4 F3 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 07 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 07 00 3F B4 00 00 00 00 00 F9 0C FF [13:34:23]RasterBufferAndPrint [13:34:23]line [13:34:23]line [13:34:23]line [13:34:23]line [13:34:23]line [13:34:23]written 0, free lines is 3332 [13:34:23]MH_Cut [13:34:23]Write to MH i2c: D1 01 00 46 B4 01 CC [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: D1 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: D1 01 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: D1 01 00 46 B4 00 CB [13:34:23]Write to MH i2c: 01 00 00 47 B4 FB [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:24]OFD Sender: No OFD packet to send [13:34:24]*** Cut start [13:34:24]*** Partial cut [13:34:24]*** CUTSNS_PIN = 1 [13:34:24]*** CUTSNS_PIN = 0 [13:34:24]*** Brake cut motor [13:34:24]Read from MH i2c: 01 [13:34:24]MH_I2C_Read... [13:34:24]*** Stop cut motor [13:34:24]*** Cut end [13:34:24]Read from MH i2c: 01 07 00 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: 01 07 00 47 B4 00 00 00 00 00 FF 0F 10 [13:34:24]process_action close_receipt done [13:34:24]requested_data is exist [13:34:24]produce_requested_data [13:34:24]requested_item fm.sn is exist - process it [13:34:24]wFMCommunicate request_size=4 [13:34:24]MH_SAM_APDU [13:34:24]CAPDU: 80 11 00 00 [13:34:24]Write to MH i2c: E2 08 00 48 B4 80 11 00 00 00 00 00 00 76 [13:34:24]Write i2c OK [13:34:24]MH_I2C_Read... [13:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:25]Read from MH i2c: E2 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 17 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 17 00 48 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 D2 [13:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:34:25]wFMCommunicate OK [13:34:25]requested_item fd.num is exist - process it [13:34:25]SAM_PROTO_GetFieldsCounters [13:34:25]wFMCommunicate request_size=4 [13:34:25]MH_SAM_APDU [13:34:25]CAPDU: 80 13 00 00 [13:34:25]Write to MH i2c: E2 08 00 49 B4 80 13 00 00 00 00 00 00 79 [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:25]Read from MH i2c: E2 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 62 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 62 00 49 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 16 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [13:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 16 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:25]wFMCommunicate OK [13:34:25]SAM_PROTO_GetFieldsCounters done [13:34:25]requested_item shift.num is exist - process it [13:34:25]requested_item shift.opened is exist - process it [13:34:25]req_shift_opened [13:34:25]FM_GetShiftState [13:34:25]SAM_PROTO_GetShiftState [13:34:25]wFMCommunicate request_size=4 [13:34:25]MH_SAM_APDU [13:34:25]CAPDU: 80 13 01 00 [13:34:25]Write to MH i2c: E2 08 00 4A B4 80 13 01 00 00 00 00 00 7B [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:25]Read from MH i2c: E2 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 0E 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 0E 00 4A B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 B4 [13:34:25]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:34:25]wFMCommunicate OK [13:34:25]SAM_PROTO_GetShiftState done [13:34:25]FM_GetShiftState done [13:34:25]req_shift_opened done [13:34:25]requested_item shift.open_date is exist - process it [13:34:25]req_shift_open_date [13:34:25]req_shift_open_date done [13:34:25]produce_requested_data done [13:34:25]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69910,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:34:25]process_action_free close_receipt [13:34:25]json_value_free [13:34:25]json_value_free done [13:34:25]process_json_proto returns [13:34:25]Send response to host [13:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69910,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:34:25]free response buf [13:34:25]execute_script done [13:34:25]execute_script returns [13:34:25]free content buf [13:34:25]Sock 7.Close socket [13:34:25]Sock 7.Thread stoped [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:18]accept exits with 9 [13:36:18]New connection [13:36:18]New thread 3067002212 created [13:36:18]Thread 3066858852 joined [13:36:18]Waiting for new connection... [13:36:18] Sock 9.Parse request [13:36:18]Sock 9.Check first char [13:36:18]Sock 9.First char is OK [13:36:18]request: POST /json_proto HTTP/1.0 [13:36:18]Method: POST [13:36:18]URL: /json_proto [13:36:18]Method is POST - this is cgi request [13:36:18]url: /json_proto [13:36:18]query_string will be loaded in cgi processing [13:36:18]execute_cgi json_proto POST (null) [13:36:18]execute_cgi path=json_proto method=POST [13:36:18]POST find Content-Length [13:36:18]Host: 172.17.49.132:8080 [13:36:18]Content-Length: 1251 [13:36:18]Content-Type: application/json [13:36:18] [13:36:18]POST finish read [13:36:18]Found Content-Length = 1251 [13:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874827\u000A01.08.2024 12:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914984;985;986;503;987;514;509;508;507;506\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:18]execute_script... [13:36:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874827\u000A01.08.2024 12:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914984;985;986;503;987;514;509;508;507;506\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:18]POST & json_proto [13:36:18]process_json_proto [13:36:18]json parsed OK: [13:36:18]protocol is kg_v1.0 [13:36:18]action value=print_text [13:36:18]process_action print_text [13:36:18]cmd_print_text [13:36:18]ExternCall_PrintAddStr [13:36:18]wPrintStart [13:36:18]Write to MH i2c: 01 00 00 4B B4 FF [13:36:18]Write i2c OK [13:36:18]MH_I2C_Read... [13:36:18]Read from MH i2c: 01 [13:36:18]MH_I2C_Read... [13:36:18]Read from MH i2c: 01 07 00 [13:36:18]MH_I2C_Read... [13:36:18]Read from MH i2c: 01 07 00 4B B4 00 00 00 00 00 FF 0F 14 [13:36:18]RasterBufferAndPrint [13:36:18]line *****ТОВАРНЫЙ ЧЕК***** [13:36:18]line АЗС 125 [13:36:18]line Партнер нефть [13:36:18]line 02508201610067 [13:36:18]line Кассир : Мадаминова Б. [13:36:18]line Счет N : (1)874827 [13:36:18]line 01.08.2024 12:57 [13:36:18]line ПРОДАЖА [13:36:18]line ТРК (МРК, ГНК): 62 [13:36:18]line Вид ГСМ : 2710124130 [13:36:18]line Аи-92-К-5 [13:36:18]line 100.000 x 67.80 [13:36:18]line ИТОГ: 6780.00 [13:36:18]line Тип оплаты: Талоны: Топливные Талоны [13:36:18]line 3914984;985;986;503;987;514;509;508;507;506 [13:36:18]line ______________________ [13:36:19]line (подпись) [13:36:19]OFD Sender: No OFD packet to send [13:36:19]written 0, free lines is 4095 [13:36:19]Write to MH i2c: 01 00 00 60 B4 14 [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: 01 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: 01 07 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: 01 07 00 60 B4 00 00 00 00 00 0B 0E 34 [13:36:19]RasterBufferAndPrint [13:36:19]line [13:36:19]line [13:36:19]line [13:36:19]line [13:36:19]line [13:36:19]written 0, free lines is 3596 [13:36:19]MH_Cut [13:36:19]Write to MH i2c: D1 01 00 67 B4 01 ED [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: D1 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: D1 01 00 [13:36:19]MH_I2C_Read... [13:36:19]Read from MH i2c: D1 01 00 67 B4 00 EC [13:36:19]Write to MH i2c: 01 00 00 68 B4 1C [13:36:19]Write i2c OK [13:36:19]MH_I2C_Read... [13:36:19]*** Cut start [13:36:19]*** Partial cut [13:36:19]*** CUTSNS_PIN = 1 [13:36:20]*** CUTSNS_PIN = 0 [13:36:20]*** Brake cut motor [13:36:20]Read from MH i2c: 01 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: 01 07 00 [13:36:20]MH_I2C_Read... [13:36:20]*** Stop cut motor [13:36:20]*** Cut end [13:36:20]Read from MH i2c: 01 07 00 68 B4 00 00 00 00 00 FF 0F 31 [13:36:20]process_action print_text done [13:36:20]requested_data is exist [13:36:20]produce_requested_data [13:36:20]requested_item fm.sn is exist - process it [13:36:20]wFMCommunicate request_size=4 [13:36:20]MH_SAM_APDU [13:36:20]CAPDU: 80 11 00 00 [13:36:20]Write to MH i2c: E2 08 00 69 B4 80 11 00 00 00 00 00 00 97 [13:36:20]Write i2c OK [13:36:20]MH_I2C_Read... [13:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:20]Read from MH i2c: E2 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 17 00 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 17 00 69 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F3 [13:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:36:20]wFMCommunicate OK [13:36:20]requested_item fd.num is exist - process it [13:36:20]SAM_PROTO_GetFieldsCounters [13:36:20]wFMCommunicate request_size=4 [13:36:20]MH_SAM_APDU [13:36:20]CAPDU: 80 13 00 00 [13:36:20]Write to MH i2c: E2 08 00 6A B4 80 13 00 00 00 00 00 00 9A [13:36:20]Write i2c OK [13:36:20]MH_I2C_Read... [13:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:20]Read from MH i2c: E2 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 62 00 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 62 00 6A B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 16 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:36: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 16 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:20]wFMCommunicate OK [13:36:20]SAM_PROTO_GetFieldsCounters done [13:36:20]requested_item shift.num is exist - process it [13:36:20]requested_item shift.opened is exist - process it [13:36:20]req_shift_opened [13:36:20]FM_GetShiftState [13:36:20]SAM_PROTO_GetShiftState [13:36:20]wFMCommunicate request_size=4 [13:36:20]MH_SAM_APDU [13:36:20]CAPDU: 80 13 01 00 [13:36:20]Write to MH i2c: E2 08 00 6B B4 80 13 01 00 00 00 00 00 9C [13:36:20]Write i2c OK [13:36:20]MH_I2C_Read... [13:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:20]Read from MH i2c: E2 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 0E 00 [13:36:20]MH_I2C_Read... [13:36:20]Read from MH i2c: E2 0E 00 6B B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D5 [13:36:20]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:36:20]wFMCommunicate OK [13:36:20]SAM_PROTO_GetShiftState done [13:36:20]FM_GetShiftState done [13:36:20]req_shift_opened done [13:36:20]requested_item shift.open_date is exist - process it [13:36:20]req_shift_open_date [13:36:20]req_shift_open_date done [13:36:20]produce_requested_data done [13:36:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69910,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:36:20]process_action_free print_text [13:36:20]json_value_free [13:36:20]json_value_free done [13:36:20]process_json_proto returns [13:36:20]Send response to host [13:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69910,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:36:20]free response buf [13:36:20]execute_script done [13:36:20]execute_script returns [13:36:20]free content buf [13:36:20]Sock 9.Close socket [13:36:20]Sock 9.Thread stoped [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:05]accept exits with 7 [13:39:05]New connection [13:39:05]New thread 3066858852 created [13:39:05]Thread 3067002212 joined [13:39:05]Waiting for new connection... [13:39:05] Sock 7.Parse request [13:39:05]Sock 7.Check first char [13:39:05]Sock 7.First char is OK [13:39:05]request: POST /json_proto HTTP/1.0 [13:39:05]Method: POST [13:39:05]URL: /json_proto [13:39:05]Method is POST - this is cgi request [13:39:05]url: /json_proto [13:39:05]query_string will be loaded in cgi processing [13:39:05]execute_cgi json_proto POST (null) [13:39:05]execute_cgi path=json_proto method=POST [13:39:05]POST find Content-Length [13:39:05]Host: 172.17.49.132:8080 [13:39:05]Content-Length: 637 [13:39:05]Content-Type: application/json [13:39:05] [13:39:05]POST finish read [13:39:05]Found Content-Length = 637 [13:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137136", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:05]execute_script... [13:39: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 : (3)137136", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:05]POST & json_proto [13:39:05]process_json_proto [13:39:05]json parsed OK: [13:39:05]protocol is kg_v1.0 [13:39:05]action value=close_receipt [13:39:05]process_action close_receipt [13:39:05]cmd_close_receipt [13:39:05]MH_GetDate [13:39:05]Write to MH i2c: F0 00 00 6C B4 0F [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: F0 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: F0 09 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: F0 09 00 6C B4 00 0C 90 AB 66 E7 4B C0 64 1B [13:39:05]GetLastDocTimeStamp 1722519280 [13:39:05]current date 1722519564 [13:39:05]FM_GetShiftState [13:39:05]SAM_PROTO_GetShiftState [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 13 01 00 [13:39:05]Write to MH i2c: E2 08 00 6D B4 80 13 01 00 00 00 00 00 9E [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0E 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0E 00 6D B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D7 [13:39:05]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:39:05]wFMCommunicate OK [13:39:05]SAM_PROTO_GetShiftState done [13:39:05]FM_GetShiftState done [13:39:05]opened in 1722472772 [13:39:05]opened+sec_in_day 1722559172 [13:39:05]quantity*price = 5000 [13:39:05]sum+1 = 5001 [13:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 74 01.08.2024 13:39 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69911 ФПД: 145020206125191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133924&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69911&fm=145020206125191&tin=02508201610067®Number=0000000000092638&sum=5000 0 [13:39:06]StoreToDocumentArchive [13:39:06]shift 433 fd 69911 [13:39:06]save to /storage/0433/doc_00069911 [13:39:06]save last doc name /storage/0433/doc_00069911 to /storage/kkm_last_doc_name [13:39:06]save OK [13:39:06]Clear old archive folders... [13:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:39:06]tlvbuf is 0125DBC0 [13:39:06]SAM_PROTO_ClearQueue [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 09 00 00 [13:39:06]Write to MH i2c: E2 08 00 7A B4 80 09 00 00 00 00 00 00 A0 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 7A B4 00 90 00 A2 [13:39:06]RAPDU: 90 00 [13:39:06]wFMCommunicate OK [13:39:06]SAM_PROTO_ClearQueue done [13:39:06]KKMCreateOFDPacket [13:39:06]OFDProtocolAddRootSTLVToBuf [13:39:06]FM_MakeSignedData [13:39:06]FM_MakeSignedData [13:39:06]SAM_PROTO_SignData [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 0D 01 02 [13:39:06]Write to MH i2c: E2 08 00 7B B4 80 0D 01 02 00 00 00 00 A8 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 7B B4 00 90 00 A3 [13:39:06]RAPDU: 90 00 [13:39:06]wFMCommunicate OK [13:39:06]wFMCommunicate request_size=255 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 [13:39:06]Write to MH i2c: E2 02 01 7C B4 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 00 00 A1 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 7C B4 00 90 00 A4 [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]wFMCommunicate request_size=31 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 34 39 10 04 04 00 17 11 01 00 35 04 06 00 83 E5 25 DF 10 87 [13:39:07]Write to MH i2c: E2 22 00 7D B4 80 0D 02 02 1A 00 30 30 38 37 34 39 34 39 10 04 04 00 17 11 01 00 35 04 06 00 83 E5 25 DF 10 87 00 00 0B [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 7D B4 00 90 00 A5 [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 0D 03 02 [13:39:07]Write to MH i2c: E2 08 00 7E B4 80 0D 03 02 00 00 00 00 AD [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 0B 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 0B 00 7E B4 00 7F BB 9A 21 B0 36 5B 97 90 00 7B [13:39:07]RAPDU: 7F BB 9A 21 B0 36 5B 97 90 00 [13:39:07]wFMCommunicate OK [13:39:07]SAM_PROTO_SignData done [13:39:07]FM_MakeSignedData done [13:39:07]CreateOFDProtocolMessage [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 11 00 00 [13:39:07]Write to MH i2c: E2 08 00 7F B4 80 11 00 00 00 00 00 00 AD [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 17 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 17 00 7F B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 09 [13:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:39:07]wFMCommunicate OK [13:39:07]CreateOFDProtocolMessage done [13:39:07]OFDSenderStorePacket 69911 [13:39:07]StoreOFDPacket docnum=69911 [13:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 D9 AD 1C 01 ED A3 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 11 01 00 35 04 06 00 83 E5 25 DF 10 87 7F BB 9A 21 B0 36 5B 97 [13:39:07]CheckFolder [13:39:07]dirname=/storage/ofd_packets [13:39:07]CheckFolder done [13:39:07]ProducePacketName [13:39:07]name=ofd_packets/00069911 [13:39:07]NVStorageSaveData ofd_packets/00069911 [13:39:07]File name is /storage/ofd_packets/00069911 [13:39:07]Write 322 bytes [13:39:07]NVStorageSaveData done [13:39:07]OFDSenderStorePacket done [13:39:07]KKMCreateOFDPacket done [13:39:07]NVStorageSaveData kkm_last_timestamp [13:39:07]File name is /storage/kkm_last_timestamp [13:39:07]Write 4 bytes [13:39:07]NVStorageSaveData done [13:39:07]ExternCall_PrintAddStr [13:39:07]wPrintStart [13:39:07]Write to MH i2c: 01 00 00 80 B4 34 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 80 B4 00 00 00 00 00 FF 0F 49 [13:39:07]RasterBufferAndPrint [13:39:07]line Счет N : (3)137136 [13:39:07]line ИНН: 02508201610067 [13:39:07]line Контрольно-Кассовый Чек [13:39:07]line ПРОДАЖА [13:39:07]line Товар: 4700000160051 [13:39:07]line Вода Ыссык Ата 1л [13:39:07]line 1.000 * 50.00 [13:39:07]line = 50.00 [13:39:07]line НДС 12% НСП 1% [13:39:07]line > о реализуемом товаре [13:39:07]line ИТОГО: 50.00 [13:39:07]line НСП 1% : 0.44 [13:39:07]line НДС 12% : 5.31 [13:39:07]line Наличными: 50.00 [13:39:07]line Безнал.: 0.00 [13:39:07]line Место: АЗС № 125 "Партнер Нефть" [13:39:07]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:39:07]line СНО: Общий режим [13:39:07]line Чек 74 01.08.2024 13:39 [13:39:07]line Смена: 433 ФФД: 1.0 [13:39:07]line ЗНМ: 0300000049 [13:39:07]line РНМ: 0000000000092638 [13:39:07]line Версия ККМ: 001 [13:39:07]line ФМ: 0000000000874949 [13:39:07]line ФД: 69911 [13:39:07]line ФПД: 145020206125191 [13:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T133924&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69911&fm=145020206125191&tin=02508201610067®Number=0000000000092638&sum=5000 [13:39:07]line 0 [13:39:07]written 0, free lines is 4095 [13:39:07]OFD Sender: Processing packet 69911 [packets to send 19, broken 18] [13:39:07]ProducePacketName [13:39:07]name=ofd_packets/00069911 [13:39:07]OFD Sender: To server: pG, [13:39:07]CommunicateWithHost lk.salyk.kg:30040 [13:39:07]ConnectInit lk.salyk.kg [13:39:07]Write to MH i2c: 01 00 00 A8 B4 5C [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 A8 B4 00 00 00 00 00 0F 0D 7F [13:39:07]RasterBufferAndPrint [13:39:07]line [13:39:07]line [13:39:07]line [13:39:07]line [13:39:07]line [13:39:07]written 0, free lines is 3350 [13:39:07]Connected sock=10 [13:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 24 01 00 00 D9 AD 1C 01 ED A3 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 11 01 00 35 04 06 00 83 E5 25 DF 10 87 7F BB 9A 21 B0 36 5B 97 [13:39:07]MH_Cut [13:39:07]Write to MH i2c: D1 01 00 AF B4 01 35 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: D1 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: D1 01 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: D1 01 00 AF B4 00 34 [13:39:07]Write to MH i2c: 01 00 00 B0 B4 64 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 D5 86 47 00 9C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 17 11 01 00 F4 03 04 00 6D 36 AB 66 B6 04 01 00 00 52 C6 EE EF B0 2F F5 86 [13:39:08]CommunicateWithHost err = 0 [13:39:08]CheckOFDResponse [13:39:08]1017 (14) - 77093643461234 [13:39:08]1041 (16) - 0000000000874949 [13:39:08]1040 (4) - 69911 [13:39:08]1012 (4) - 01.08.2024 07:17 [13:39:08]1206 (1) - 0 [13:39:08]OFD Sender: Remove packet 69911 [13:39:08]ProducePacketName [13:39:08]name=ofd_packets/00069911 [13:39:08]NVStorageDeleteData [13:39:08]*** Cut start [13:39:08]*** Partial cut [13:39:08]*** CUTSNS_PIN = 1 [13:39:08]*** CUTSNS_PIN = 0 [13:39:08]OFD Sender: No OFD packet to send [13:39:08]*** Brake cut motor [13:39:09]Read from MH i2c: 01 [13:39:09]MH_I2C_Read... [13:39:09]*** Stop cut motor [13:39:09]*** Cut end [13:39:09]Read from MH i2c: 01 07 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: 01 07 00 B0 B4 00 00 00 00 00 FF 0F 79 [13:39:09]process_action close_receipt done [13:39:09]requested_data is exist [13:39:09]produce_requested_data [13:39:09]requested_item fm.sn is exist - process it [13:39:09]wFMCommunicate request_size=4 [13:39:09]MH_SAM_APDU [13:39:09]CAPDU: 80 11 00 00 [13:39:09]Write to MH i2c: E2 08 00 B1 B4 80 11 00 00 00 00 00 00 DF [13:39:09]Write i2c OK [13:39:09]MH_I2C_Read... [13:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:09]Read from MH i2c: E2 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 17 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 17 00 B1 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3B [13:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:39:09]wFMCommunicate OK [13:39:09]requested_item fd.num is exist - process it [13:39:09]SAM_PROTO_GetFieldsCounters [13:39:09]wFMCommunicate request_size=4 [13:39:09]MH_SAM_APDU [13:39:09]CAPDU: 80 13 00 00 [13:39:09]Write to MH i2c: E2 08 00 B2 B4 80 13 00 00 00 00 00 00 E2 [13:39:09]Write i2c OK [13:39:09]MH_I2C_Read... [13:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:09]Read from MH i2c: E2 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 62 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 62 00 B2 B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 17 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 17 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:09]wFMCommunicate OK [13:39:09]SAM_PROTO_GetFieldsCounters done [13:39:09]requested_item shift.num is exist - process it [13:39:09]requested_item shift.opened is exist - process it [13:39:09]req_shift_opened [13:39:09]FM_GetShiftState [13:39:09]SAM_PROTO_GetShiftState [13:39:09]wFMCommunicate request_size=4 [13:39:09]MH_SAM_APDU [13:39:09]CAPDU: 80 13 01 00 [13:39:09]Write to MH i2c: E2 08 00 B3 B4 80 13 01 00 00 00 00 00 E4 [13:39:09]Write i2c OK [13:39:09]MH_I2C_Read... [13:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:09]Read from MH i2c: E2 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 0E 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 0E 00 B3 B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1D [13:39:09]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:39:09]wFMCommunicate OK [13:39:09]SAM_PROTO_GetShiftState done [13:39:09]FM_GetShiftState done [13:39:09]req_shift_opened done [13:39:09]requested_item shift.open_date is exist - process it [13:39:09]req_shift_open_date [13:39:09]req_shift_open_date done [13:39:09]produce_requested_data done [13:39:09]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69911,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:39:09]process_action_free close_receipt [13:39:09]json_value_free [13:39:09]json_value_free done [13:39:09]process_json_proto returns [13:39:09]Send response to host [13:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69911,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:39:09]free response buf [13:39:09]execute_script done [13:39:09]execute_script returns [13:39:09]free content buf [13:39:09]Sock 7.Close socket [13:39:09]Sock 7.Thread stoped [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:32]accept exits with 9 [13:40:32]New connection [13:40:32]New thread 3067002212 created [13:40:32]Thread 3066858852 joined [13:40:32]Waiting for new connection... [13:40:32] Sock 9.Parse request [13:40:32]Sock 9.Check first char [13:40:32]Sock 9.First char is OK [13:40:32]request: POST /json_proto HTTP/1.0 [13:40:32]Method: POST [13:40:32]URL: /json_proto [13:40:32]Method is POST - this is cgi request [13:40:32]url: /json_proto [13:40:32]query_string will be loaded in cgi processing [13:40:32]execute_cgi json_proto POST (null) [13:40:32]execute_cgi path=json_proto method=POST [13:40:32]POST find Content-Length [13:40:32]Host: 172.17.49.132:8080 [13:40:32]Content-Length: 865 [13:40:32]Content-Type: application/json [13:40:32] [13:40:32]POST finish read [13:40:32]Found Content-Length = 865 [13:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137137", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:32]execute_script... [13:40:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137137", "tax_sys" : 0, "items" : [ { "code": "4700003010803", "name": "\u0427\u0430\u0439 \u041B\u0435\u0442\u0441 \u0413\u043E\u0443 \u041C\u0430\u043B\u0438\u043D\u0430 0,9\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:32]POST & json_proto [13:40:32]process_json_proto [13:40:32]json parsed OK: [13:40:32]protocol is kg_v1.0 [13:40:32]action value=close_receipt [13:40:32]process_action close_receipt [13:40:32]cmd_close_receipt [13:40:32]MH_GetDate [13:40:32]Write to MH i2c: F0 00 00 B4 B4 57 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: F0 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: F0 09 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: F0 09 00 B4 B4 00 63 90 AB 66 E7 4B C0 64 BA [13:40:32]GetLastDocTimeStamp 1722519564 [13:40:32]current date 1722519651 [13:40:32]FM_GetShiftState [13:40:32]SAM_PROTO_GetShiftState [13:40:32]wFMCommunicate request_size=4 [13:40:32]MH_SAM_APDU [13:40:32]CAPDU: 80 13 01 00 [13:40:32]Write to MH i2c: E2 08 00 B5 B4 80 13 01 00 00 00 00 00 E6 [13:40:32]Write i2c OK [13:40:32]MH_I2C_Read... [13:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:32]Read from MH i2c: E2 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0E 00 [13:40:32]MH_I2C_Read... [13:40:32]Read from MH i2c: E2 0E 00 B5 B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1F [13:40:32]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:40:32]wFMCommunicate OK [13:40:32]SAM_PROTO_GetShiftState done [13:40:32]FM_GetShiftState done [13:40:32]opened in 1722472772 [13:40:32]opened+sec_in_day 1722559172 [13:40:32]quantity*price = 8500 [13:40:32]sum+1 = 8501 [13:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 75 01.08.2024 13:40 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69912 ФПД: 232682520926308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134051&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69912&fm=232682520926308&tin=02508201610067®Number=0000000000092638&sum=8500 0 [13:40:33]StoreToDocumentArchive [13:40:33]shift 433 fd 69912 [13:40:33]save to /storage/0433/doc_00069912 [13:40:33]save last doc name /storage/0433/doc_00069912 to /storage/kkm_last_doc_name [13:40:33]save OK [13:40:33]Clear old archive folders... [13:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=283 [13:40:33]tlvbuf is 013FB820 [13:40:33]SAM_PROTO_ClearQueue [13:40:33]wFMCommunicate request_size=4 [13:40:33]MH_SAM_APDU [13:40:33]CAPDU: 80 09 00 00 [13:40:33]Write to MH i2c: E2 08 00 C2 B4 80 09 00 00 00 00 00 00 E8 [13:40:33]Write i2c OK [13:40:33]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 C2 B4 00 90 00 EA [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]SAM_PROTO_ClearQueue done [13:40:34]KKMCreateOFDPacket [13:40:34]OFDProtocolAddRootSTLVToBuf [13:40:34]FM_MakeSignedData [13:40:34]FM_MakeSignedData [13:40:34]SAM_PROTO_SignData [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 01 02 [13:40:34]Write to MH i2c: E2 08 00 C3 B4 80 0D 01 02 00 00 00 00 F0 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 C3 B4 00 90 00 EB [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]wFMCommunicate request_size=255 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 [13:40:34]Write to MH i2c: E2 02 01 C4 B4 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 00 00 0A [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 C4 B4 00 90 00 EC [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]wFMCommunicate request_size=42 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 11 01 00 35 04 06 00 D3 9F 9F 01 58 64 [13:40:34]Write to MH i2c: E2 2D 00 C5 B4 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 11 01 00 35 04 06 00 D3 9F 9F 01 58 64 00 00 C9 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 03 00 C5 B4 00 90 00 ED [13:40:34]RAPDU: 90 00 [13:40:34]wFMCommunicate OK [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 0D 03 02 [13:40:34]Write to MH i2c: E2 08 00 C6 B4 80 0D 03 02 00 00 00 00 F5 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0B 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0B 00 C6 B4 00 4E 9A 2B 31 2C 90 53 58 90 00 A1 [13:40:34]RAPDU: 4E 9A 2B 31 2C 90 53 58 90 00 [13:40:34]wFMCommunicate OK [13:40:34]SAM_PROTO_SignData done [13:40:34]FM_MakeSignedData done [13:40:34]CreateOFDProtocolMessage [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 11 00 00 [13:40:34]Write to MH i2c: E2 08 00 C7 B4 80 11 00 00 00 00 00 00 F5 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 17 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 17 00 C7 B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 51 [13:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:40:34]wFMCommunicate OK [13:40:34]CreateOFDProtocolMessage done [13:40:34]OFDSenderStorePacket 69912 [13:40:34]StoreOFDPacket docnum=69912 [13:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 9F 40 27 01 9A CA 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 11 01 00 35 04 06 00 D3 9F 9F 01 58 64 4E 9A 2B 31 2C 90 53 58 [13:40:34]CheckFolder [13:40:34]dirname=/storage/ofd_packets [13:40:34]CheckFolder done [13:40:34]ProducePacketName [13:40:34]name=ofd_packets/00069912 [13:40:34]NVStorageSaveData ofd_packets/00069912 [13:40:34]File name is /storage/ofd_packets/00069912 [13:40:34]Write 333 bytes [13:40:34]NVStorageSaveData done [13:40:34]OFDSenderStorePacket done [13:40:34]KKMCreateOFDPacket done [13:40:34]NVStorageSaveData kkm_last_timestamp [13:40:34]File name is /storage/kkm_last_timestamp [13:40:34]Write 4 bytes [13:40:34]NVStorageSaveData done [13:40:34]ExternCall_PrintAddStr [13:40:34]wPrintStart [13:40:34]Write to MH i2c: 01 00 00 C8 B4 7C [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: 01 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: 01 07 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: 01 07 00 C8 B4 00 00 00 00 00 FF 0F 91 [13:40:34]RasterBufferAndPrint [13:40:34]line Счет N : (3)137137 [13:40:34]line ИНН: 02508201610067 [13:40:34]line Контрольно-Кассовый Чек [13:40:34]line ПРОДАЖА [13:40:34]line Товар: 4700003010803 [13:40:34]line Чай Летс Гоу Малина 0,9л [13:40:34]line 1.000 * 85.00 [13:40:34]line = 85.00 [13:40:34]line НДС 12% НСП 1% [13:40:34]line > о реализуемом товаре [13:40:34]line ИТОГО: 85.00 [13:40:34]line НСП 1% : 0.75 [13:40:34]line НДС 12% : 9.03 [13:40:34]line Наличными: 0.00 [13:40:34]line Безнал.: 85.00 [13:40:34]line Место: АЗС № 125 "Партнер Нефть" [13:40:34]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:40:34]line СНО: Общий режим [13:40:34]line Чек 75 01.08.2024 13:40 [13:40:34]line Смена: 433 ФФД: 1.0 [13:40:34]line ЗНМ: 0300000049 [13:40:34]line РНМ: 0000000000092638 [13:40:34]line Версия ККМ: 001 [13:40:34]line Платежная система: АКБ Кыргызстан [13:40:34]line ФМ: 0000000000874949 [13:40:34]line ФД: 69912 [13:40:34]line ФПД: 232682520926308 [13:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134051&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69912&fm=232682520926308&tin=02508201610067®Number=0000000000092638&sum=8500 [13:40:34]line 0 [13:40:34]OFD Sender: Processing packet 69912 [packets to send 19, broken 18] [13:40:34]ProducePacketName [13:40:34]name=ofd_packets/00069912 [13:40:34]OFD Sender: To server: pG, [13:40:34]CommunicateWithHost lk.salyk.kg:30040 [13:40:34]ConnectInit lk.salyk.kg [13:40:34]written 0, free lines is 4095 [13:40:34]Connected sock=10 [13:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 2F 01 00 00 9F 40 27 01 9A CA 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 38 30 33 06 04 29 00 D0 A7 D0 B0 D0 B9 20 D0 9B D0 B5 D1 82 D1 81 20 D0 93 D0 BE D1 83 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 39 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 63 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 11 01 00 35 04 06 00 D3 9F 9F 01 58 64 4E 9A 2B 31 2C 90 53 58 [13:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 64 B0 47 00 2F 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 18 11 01 00 F4 03 04 00 C4 36 AB 66 B6 04 01 00 00 F5 F3 07 A4 B6 4C BB 94 [13:40:35]CommunicateWithHost err = 0 [13:40:35]CheckOFDResponse [13:40:35]1017 (14) - 77093643461234 [13:40:35]1041 (16) - 0000000000874949 [13:40:35]1040 (4) - 69912 [13:40:35]1012 (4) - 01.08.2024 07:18 [13:40:35]1206 (1) - 0 [13:40:35]OFD Sender: Remove packet 69912 [13:40:35]ProducePacketName [13:40:35]name=ofd_packets/00069912 [13:40:35]NVStorageDeleteData [13:40:35]Write to MH i2c: 01 00 00 F2 B4 A6 [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: 01 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: 01 07 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: 01 07 00 F2 B4 00 00 00 00 00 03 0D BD [13:40:35]RasterBufferAndPrint [13:40:35]line [13:40:35]line [13:40:35]line [13:40:35]line [13:40:35]line [13:40:35]written 0, free lines is 3337 [13:40:35]MH_Cut [13:40:35]Write to MH i2c: D1 01 00 F9 B4 01 7F [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: D1 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: D1 01 00 [13:40:35]MH_I2C_Read... [13:40:35]Read from MH i2c: D1 01 00 F9 B4 00 7E [13:40:35]Write to MH i2c: 01 00 00 FA B4 AE [13:40:35]Write i2c OK [13:40:35]MH_I2C_Read... [13:40:35]OFD Sender: No OFD packet to send [13:40:35]*** Cut start [13:40:35]*** Partial cut [13:40:35]*** CUTSNS_PIN = 1 [13:40:36]*** CUTSNS_PIN = 0 [13:40:36]*** Brake cut motor [13:40:36]Read from MH i2c: 01 [13:40:36]MH_I2C_Read... [13:40:36]*** Stop cut motor [13:40:36]*** Cut end [13:40:36]Read from MH i2c: 01 07 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 FA B4 00 00 00 00 00 FF 0F C3 [13:40:36]process_action close_receipt done [13:40:36]requested_data is exist [13:40:36]produce_requested_data [13:40:36]requested_item fm.sn is exist - process it [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 11 00 00 [13:40:36]Write to MH i2c: E2 08 00 FB B4 80 11 00 00 00 00 00 00 29 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 17 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 17 00 FB B4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 85 [13:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:40:36]wFMCommunicate OK [13:40:36]requested_item fd.num is exist - process it [13:40:36]SAM_PROTO_GetFieldsCounters [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 13 00 00 [13:40:36]Write to MH i2c: E2 08 00 FC B4 80 13 00 00 00 00 00 00 2C [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 62 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 62 00 FC B4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 18 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 18 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_GetFieldsCounters done [13:40:36]requested_item shift.num is exist - process it [13:40:36]requested_item shift.opened is exist - process it [13:40:36]req_shift_opened [13:40:36]FM_GetShiftState [13:40:36]SAM_PROTO_GetShiftState [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 13 01 00 [13:40:36]Write to MH i2c: E2 08 00 FD B4 80 13 01 00 00 00 00 00 2E [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0E 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0E 00 FD B4 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 67 [13:40:36]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_GetShiftState done [13:40:36]FM_GetShiftState done [13:40:36]req_shift_opened done [13:40:36]requested_item shift.open_date is exist - process it [13:40:36]req_shift_open_date [13:40:36]req_shift_open_date done [13:40:36]produce_requested_data done [13:40:36]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69912,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:40:36]process_action_free close_receipt [13:40:36]json_value_free [13:40:36]json_value_free done [13:40:36]process_json_proto returns [13:40:36]Send response to host [13:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69912,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:40:36]free response buf [13:40:36]execute_script done [13:40:36]execute_script returns [13:40:36]free content buf [13:40:36]Sock 9.Close socket [13:40:36]Sock 9.Thread stoped [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:24]accept exits with 7 [13:41:24]New connection [13:41:24]New thread 3066858852 created [13:41:24]Thread 3067002212 joined [13:41:24]Waiting for new connection... [13:41:24] Sock 7.Parse request [13:41:24]Sock 7.Check first char [13:41:24]Sock 7.First char is OK [13:41:24]request: POST /json_proto HTTP/1.0 [13:41:24]Method: POST [13:41:24]URL: /json_proto [13:41:24]Method is POST - this is cgi request [13:41:24]url: /json_proto [13:41:24]query_string will be loaded in cgi processing [13:41:24]execute_cgi json_proto POST (null) [13:41:24]execute_cgi path=json_proto method=POST [13:41:24]POST find Content-Length [13:41:24]Host: 172.17.49.132:8080 [13:41:24]Content-Length: 1252 [13:41:24]Content-Type: application/json [13:41:24] [13:41:24]POST finish read [13:41:24]Found Content-Length = 1252 [13:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874838\u000A01.08.2024 13:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914983;982;981;980;979;978;977;976;975;974;\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:24]execute_script... [13:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874838\u000A01.08.2024 13:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914983;982;981;980;979;978;977;976;975;974;\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:24]POST & json_proto [13:41:24]process_json_proto [13:41:24]json parsed OK: [13:41:24]protocol is kg_v1.0 [13:41:24]action value=print_text [13:41:24]process_action print_text [13:41:24]cmd_print_text [13:41:24]ExternCall_PrintAddStr [13:41:24]wPrintStart [13:41:24]Write to MH i2c: 01 00 00 FE B4 B2 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 FE B4 00 00 00 00 00 FF 0F C7 [13:41:24]RasterBufferAndPrint [13:41:24]line *****ТОВАРНЫЙ ЧЕК***** [13:41:24]line АЗС 125 [13:41:24]line Партнер нефть [13:41:24]line 02508201610067 [13:41:24]line Кассир : Мадаминова Б. [13:41:24]line Счет N : (1)874838 [13:41:24]line 01.08.2024 13:02 [13:41:24]line ПРОДАЖА [13:41:24]line ТРК (МРК, ГНК): 62 [13:41:24]line Вид ГСМ : 2710124130 [13:41:24]line Аи-92-К-5 [13:41:24]line 100.000 x 67.80 [13:41:24]line ИТОГ: 6780.00 [13:41:24]line Тип оплаты: Талоны: Топливные Талоны [13:41:24]line 3914983;982;981;980;979;978;977;976;975;974; [13:41:24]line ______________________ [13:41:24]line (подпись) [13:41:24]written 0, free lines is 4095 [13:41:24]Write to MH i2c: 01 00 00 13 B5 C8 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: 01 07 00 13 B5 00 00 00 00 00 0F 0E EC [13:41:24]RasterBufferAndPrint [13:41:24]line [13:41:24]line [13:41:24]line [13:41:24]line [13:41:24]line [13:41:24]written 0, free lines is 3601 [13:41:24]MH_Cut [13:41:24]Write to MH i2c: D1 01 00 1A B5 01 A1 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: D1 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: D1 01 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: D1 01 00 1A B5 00 A0 [13:41:24]Write to MH i2c: 01 00 00 1B B5 D0 [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:25]*** Cut start [13:41:25]*** Partial cut [13:41:25]*** CUTSNS_PIN = 1 [13:41:25]*** CUTSNS_PIN = 0 [13:41:25]*** Brake cut motor [13:41:25]OFD Sender: No OFD packet to send [13:41:25]Read from MH i2c: 01 [13:41:25]MH_I2C_Read... [13:41:25]*** Stop cut motor [13:41:25]*** Cut end [13:41:25]Read from MH i2c: 01 07 00 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: 01 07 00 1B B5 00 00 00 00 00 FF 0F E5 [13:41:25]process_action print_text done [13:41:25]requested_data is exist [13:41:25]produce_requested_data [13:41:25]requested_item fm.sn is exist - process it [13:41:25]wFMCommunicate request_size=4 [13:41:25]MH_SAM_APDU [13:41:25]CAPDU: 80 11 00 00 [13:41:25]Write to MH i2c: E2 08 00 1C B5 80 11 00 00 00 00 00 00 4B [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:25]Read from MH i2c: E2 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: E2 17 00 [13:41:25]MH_I2C_Read... [13:41:25]Read from MH i2c: E2 17 00 1C B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A7 [13:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:41:25]wFMCommunicate OK [13:41:25]requested_item fd.num is exist - process it [13:41:25]SAM_PROTO_GetFieldsCounters [13:41:25]wFMCommunicate request_size=4 [13:41:25]MH_SAM_APDU [13:41:25]CAPDU: 80 13 00 00 [13:41:25]Write to MH i2c: E2 08 00 1D B5 80 13 00 00 00 00 00 00 4E [13:41:25]Write i2c OK [13:41:25]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 62 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 62 00 1D B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 18 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 18 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:26]wFMCommunicate OK [13:41:26]SAM_PROTO_GetFieldsCounters done [13:41:26]requested_item shift.num is exist - process it [13:41:26]requested_item shift.opened is exist - process it [13:41:26]req_shift_opened [13:41:26]FM_GetShiftState [13:41:26]SAM_PROTO_GetShiftState [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 13 01 00 [13:41:26]Write to MH i2c: E2 08 00 1E B5 80 13 01 00 00 00 00 00 50 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 0E 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 0E 00 1E B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 89 [13:41:26]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:41:26]wFMCommunicate OK [13:41:26]SAM_PROTO_GetShiftState done [13:41:26]FM_GetShiftState done [13:41:26]req_shift_opened done [13:41:26]requested_item shift.open_date is exist - process it [13:41:26]req_shift_open_date [13:41:26]req_shift_open_date done [13:41:26]produce_requested_data done [13:41:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69912,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:41:26]process_action_free print_text [13:41:26]json_value_free [13:41:26]json_value_free done [13:41:26]process_json_proto returns [13:41:26]Send response to host [13:41:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69912,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:41:26]free response buf [13:41:26]execute_script done [13:41:26]execute_script returns [13:41:26]free content buf [13:41:26]Sock 7.Close socket [13:41:26]Sock 7.Thread stoped [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:01]accept exits with 9 [13:42:01]New connection [13:42:01]New thread 3067002212 created [13:42:01]Thread 3066858852 joined [13:42:01]Waiting for new connection... [13:42:01] Sock 9.Parse request [13:42:01]Sock 9.Check first char [13:42:01]Sock 9.First char is OK [13:42:01]request: POST /json_proto HTTP/1.0 [13:42:01]Method: POST [13:42:01]URL: /json_proto [13:42:01]Method is POST - this is cgi request [13:42:01]url: /json_proto [13:42:01]query_string will be loaded in cgi processing [13:42:01]execute_cgi json_proto POST (null) [13:42:01]execute_cgi path=json_proto method=POST [13:42:01]POST find Content-Length [13:42:01]Host: 172.17.49.132:8080 [13:42:01]Content-Length: 677 [13:42:01]Content-Type: application/json [13:42:01] [13:42:01]POST finish read [13:42:01]Found Content-Length = 677 [13:42:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:01]execute_script... [13: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)874843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:01]POST & json_proto [13:42:01]process_json_proto [13:42:01]json parsed OK: [13:42:01]protocol is kg_v1.0 [13:42:01]action value=close_receipt [13:42:01]process_action close_receipt [13:42:01]cmd_close_receipt [13:42:01]MH_GetDate [13:42:01]Write to MH i2c: F0 00 00 1F B5 C3 [13:42:01]Write i2c OK [13:42:01]MH_I2C_Read... [13:42:01]Read from MH i2c: F0 [13:42:01]MH_I2C_Read... [13:42:01]Read from MH i2c: F0 09 00 [13:42:01]MH_I2C_Read... [13:42:01]Read from MH i2c: F0 09 00 1F B5 00 BB 90 AB 66 E7 4B C0 64 7E [13:42:01]GetLastDocTimeStamp 1722519651 [13:42:01]current date 1722519739 [13:42:01]FM_GetShiftState [13:42:01]SAM_PROTO_GetShiftState [13:42:01]wFMCommunicate request_size=4 [13:42:01]MH_SAM_APDU [13:42:01]CAPDU: 80 13 01 00 [13:42:01]Write to MH i2c: E2 08 00 20 B5 80 13 01 00 00 00 00 00 52 [13:42:01]Write i2c OK [13:42:01]MH_I2C_Read... [13:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:01]Read from MH i2c: E2 [13:42:01]MH_I2C_Read... [13:42:01]Read from MH i2c: E2 0E 00 [13:42:01]MH_I2C_Read... [13:42:01]Read from MH i2c: E2 0E 00 20 B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8B [13:42:01]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:42:01]wFMCommunicate OK [13:42:01]SAM_PROTO_GetShiftState done [13:42:01]FM_GetShiftState done [13:42:01]opened in 1722472772 [13:42:01]opened+sec_in_day 1722559172 [13:42:01]quantity*price = 50036 [13:42:01]sum+1 = 50037 [13:42:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 76 01.08.2024 13:42 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69913 ФПД: 103811390183237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134219&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69913&fm=103811390183237&tin=02508201610067®Number=0000000000092638&sum=50000 [13:42:02]StoreToDocumentArchive [13:42:02]shift 433 fd 69913 [13:42:02]save to /storage/0433/doc_00069913 [13:42:02]save last doc name /storage/0433/doc_00069913 to /storage/kkm_last_doc_name [13:42:02]save OK [13:42:02]Clear old archive folders... [13:42:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:02]tlvbuf is 012257D0 [13:42:02]SAM_PROTO_ClearQueue [13:42:02]wFMCommunicate request_size=4 [13:42:02]MH_SAM_APDU [13:42:02]CAPDU: 80 09 00 00 [13:42:02]Write to MH i2c: E2 08 00 2D B5 80 09 00 00 00 00 00 00 54 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 2D B5 00 90 00 56 [13:42:02]RAPDU: 90 00 [13:42:02]wFMCommunicate OK [13:42:02]SAM_PROTO_ClearQueue done [13:42:02]KKMCreateOFDPacket [13:42:02]OFDProtocolAddRootSTLVToBuf [13:42:02]FM_MakeSignedData [13:42:02]FM_MakeSignedData [13:42:02]SAM_PROTO_SignData [13:42:02]wFMCommunicate request_size=4 [13:42:02]MH_SAM_APDU [13:42:02]CAPDU: 80 0D 01 02 [13:42:02]Write to MH i2c: E2 08 00 2E B5 80 0D 01 02 00 00 00 00 5C [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 2E B5 00 90 00 57 [13:42:02]RAPDU: 90 00 [13:42:02]wFMCommunicate OK [13:42:02]wFMCommunicate request_size=255 [13:42:02]MH_SAM_APDU [13: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 11 01 00 35 04 06 00 5E [13:42:02]Write to MH i2c: E2 02 01 2F B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 11 01 00 35 04 06 00 5E 00 00 CA [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 2F B5 00 90 00 58 [13:42:02]RAPDU: 90 00 [13:42:02]wFMCommunicate OK [13:42:02]wFMCommunicate request_size=10 [13:42:02]MH_SAM_APDU [13:42:02]CAPDU: 80 0D 02 02 05 6A 79 09 17 45 [13:42:02]Write to MH i2c: E2 0D 00 30 B5 80 0D 02 02 05 00 6A 79 09 17 45 00 00 B1 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 03 00 30 B5 00 90 00 59 [13:42:02]RAPDU: 90 00 [13:42:02]wFMCommunicate OK [13:42:02]wFMCommunicate request_size=4 [13:42:02]MH_SAM_APDU [13:42:02]CAPDU: 80 0D 03 02 [13:42:02]Write to MH i2c: E2 08 00 31 B5 80 0D 03 02 00 00 00 00 61 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 0B 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 0B 00 31 B5 00 AB 63 39 5E 1D 17 69 1C 90 00 C0 [13:42:02]RAPDU: AB 63 39 5E 1D 17 69 1C 90 00 [13:42:02]wFMCommunicate OK [13:42:02]SAM_PROTO_SignData done [13:42:02]FM_MakeSignedData done [13:42:02]CreateOFDProtocolMessage [13:42:02]wFMCommunicate request_size=4 [13:42:02]MH_SAM_APDU [13:42:02]CAPDU: 80 11 00 00 [13:42:02]Write to MH i2c: E2 08 00 32 B5 80 11 00 00 00 00 00 00 61 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 17 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 17 00 32 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 BD [13:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:42:02]wFMCommunicate OK [13:42:02]CreateOFDProtocolMessage done [13:42:02]OFDSenderStorePacket 69913 [13:42:02]StoreOFDPacket docnum=69913 [13:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 8A AB 07 01 D0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 11 01 00 35 04 06 00 5E 6A 79 09 17 45 AB 63 39 5E 1D 17 69 1C [13:42:02]CheckFolder [13:42:02]dirname=/storage/ofd_packets [13:42:02]CheckFolder done [13:42:02]ProducePacketName [13:42:02]name=ofd_packets/00069913 [13:42:02]NVStorageSaveData ofd_packets/00069913 [13:42:02]File name is /storage/ofd_packets/00069913 [13:42:02]Write 301 bytes [13:42:02]NVStorageSaveData done [13:42:02]OFDSenderStorePacket done [13:42:02]KKMCreateOFDPacket done [13:42:02]NVStorageSaveData kkm_last_timestamp [13:42:02]File name is /storage/kkm_last_timestamp [13:42:02]Write 4 bytes [13:42:02]NVStorageSaveData done [13:42:02]ExternCall_PrintAddStr [13:42:02]wPrintStart [13:42:02]Write to MH i2c: 01 00 00 33 B5 E8 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 07 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: 01 07 00 33 B5 00 00 00 00 00 FF 0F FD [13:42:02]RasterBufferAndPrint [13:42:02]line Счет N : (1)874843 [13:42:02]line ИНН: 02508201610067 [13:42:02]line Контрольно-Кассовый Чек [13:42:02]line ПРОДАЖА [13:42:02]line ТРК (МРК, ГНК) : 32 [13:42:02]line Товар: 2710124130 [13:42:02]line Аи-92-К-5 [13:42:02]line 7.380 * 67.80 [13:42:02]line = 500.36 [13:42:02]line НДС 12% НСП 1% [13:42:02]line > о реализуемом товаре [13:42:02]line ОКРУГЛЕНИЕ: -0.36 [13:42:02]line ИТОГО: 500.00 [13:42:02]line Внесено: 500.00 [13:42:02]line СДАЧА: 0.00 [13:42:02]line НСП 1% : 4.43 [13:42:02]line НДС 12% : 53.14 [13:42:02]line Наличными: 500.00 [13:42:02]line Безнал.: 0.00 [13:42:02]line Место: АЗС № 125 "Партнер Нефть" [13:42:02]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:42:02]line СНО: Общий режим [13:42:02]line Чек 76 01.08.2024 13:42 [13:42:02]line Смена: 433 ФФД: 1.0 [13:42:02]line ЗНМ: 0300000049 [13:42:02]line РНМ: 0000000000092638 [13:42:02]line Версия ККМ: 001 [13:42:02]line ФМ: 0000000000874949 [13:42:02]line ФД: 69913 [13:42:02]line ФПД: 103811390183237 [13:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134219&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69913&fm=103811390183237&tin=02508201610067®Number=0000000000092638&sum=50000 [13:42:03]written 0, free lines is 4095 [13:42:03]OFD Sender: Processing packet 69913 [packets to send 19, broken 18] [13:42:03]ProducePacketName [13:42:03]name=ofd_packets/00069913 [13:42:03]OFD Sender: To server: pG, [13:42:03]CommunicateWithHost lk.salyk.kg:30040 [13:42:03]ConnectInit lk.salyk.kg [13:42:03]Connected sock=10 [13: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 34 39 34 39 0F 01 00 00 8A AB 07 01 D0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BB 90 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 11 01 00 35 04 06 00 5E 6A 79 09 17 45 AB 63 39 5E 1D 17 69 1C [13:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 38 EA 47 00 7F 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 19 11 01 00 F4 03 04 00 1C 37 AB 66 B6 04 01 00 00 65 F4 15 05 F7 42 CA 01 [13:42:03]CommunicateWithHost err = 0 [13:42:03]CheckOFDResponse [13:42:03]1017 (14) - 77093643461234 [13:42:03]1041 (16) - 0000000000874949 [13:42:03]1040 (4) - 69913 [13:42:03]1012 (4) - 01.08.2024 07:19 [13:42:03]1206 (1) - 0 [13:42:03]OFD Sender: Remove packet 69913 [13:42:03]ProducePacketName [13:42:03]name=ofd_packets/00069913 [13:42:03]NVStorageDeleteData [13:42:03]Write to MH i2c: 01 00 00 5E B5 13 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 5E B5 00 00 00 00 00 0B 0D 32 [13:42:03]RasterBufferAndPrint [13:42:03]line [13:42:03]line [13:42:03]line [13:42:03]line [13:42:03]line [13:42:03]written 0, free lines is 3348 [13:42:03]MH_Cut [13:42:03]Write to MH i2c: D1 01 00 65 B5 01 EC [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: D1 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: D1 01 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: D1 01 00 65 B5 00 EB [13:42:03]Write to MH i2c: 01 00 00 66 B5 1B [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:04]OFD Sender: No OFD packet to send [13:42:04]*** Cut start [13:42:04]*** Partial cut [13:42:04]*** CUTSNS_PIN = 1 [13:42:04]*** CUTSNS_PIN = 0 [13:42:04]*** Brake cut motor [13:42:04]Read from MH i2c: 01 [13:42:05]MH_I2C_Read... [13:42:05]*** Stop cut motor [13:42:05]*** Cut end [13:42:05]Read from MH i2c: 01 07 00 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: 01 07 00 66 B5 00 00 00 00 00 FF 0F 30 [13:42:05]process_action close_receipt done [13:42:05]requested_data is exist [13:42:05]produce_requested_data [13:42:05]requested_item fm.sn is exist - process it [13:42:05]wFMCommunicate request_size=4 [13:42:05]MH_SAM_APDU [13:42:05]CAPDU: 80 11 00 00 [13:42:05]Write to MH i2c: E2 08 00 67 B5 80 11 00 00 00 00 00 00 96 [13:42:05]Write i2c OK [13:42:05]MH_I2C_Read... [13:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:05]Read from MH i2c: E2 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: E2 17 00 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: E2 17 00 67 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F2 [13:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:42:05]wFMCommunicate OK [13:42:05]requested_item fd.num is exist - process it [13:42:05]SAM_PROTO_GetFieldsCounters [13:42:05]wFMCommunicate request_size=4 [13:42:05]MH_SAM_APDU [13:42:05]CAPDU: 80 13 00 00 [13:42:05]Write to MH i2c: E2 08 00 68 B5 80 13 00 00 00 00 00 00 99 [13:42:05]Write i2c OK [13:42:05]MH_I2C_Read... [13:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:05]Read from MH i2c: E2 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: E2 62 00 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: E2 62 00 68 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 19 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [13: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 19 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:05]wFMCommunicate OK [13:42:05]SAM_PROTO_GetFieldsCounters done [13:42:05]requested_item shift.num is exist - process it [13:42:05]requested_item shift.opened is exist - process it [13:42:05]req_shift_opened [13:42:05]FM_GetShiftState [13:42:05]SAM_PROTO_GetShiftState [13:42:05]wFMCommunicate request_size=4 [13:42:05]MH_SAM_APDU [13:42:05]CAPDU: 80 13 01 00 [13:42:05]Write to MH i2c: E2 08 00 69 B5 80 13 01 00 00 00 00 00 9B [13:42:05]Write i2c OK [13:42:05]MH_I2C_Read... [13:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:05]Read from MH i2c: E2 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: E2 0E 00 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: E2 0E 00 69 B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D4 [13:42:05]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:42:05]wFMCommunicate OK [13:42:05]SAM_PROTO_GetShiftState done [13:42:05]FM_GetShiftState done [13:42:05]req_shift_opened done [13:42:05]requested_item shift.open_date is exist - process it [13:42:05]req_shift_open_date [13:42:05]req_shift_open_date done [13:42:05]produce_requested_data done [13:42:05]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69913,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:42:05]process_action_free close_receipt [13:42:05]json_value_free [13:42:05]json_value_free done [13:42:05]process_json_proto returns [13:42:05]Send response to host [13:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69913,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:42:05]free response buf [13:42:05]execute_script done [13:42:05]execute_script returns [13:42:05]free content buf [13:42:05]Sock 9.Close socket [13:42:05]Sock 9.Thread stoped [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:18]accept exits with 7 [13:45:18]New connection [13:45:18]New thread 3066858852 created [13:45:18]Thread 3067002212 joined [13:45:18]Waiting for new connection... [13:45:18] Sock 7.Parse request [13:45:18]Sock 7.Check first char [13:45:18]Sock 7.First char is OK [13:45:18]request: POST /json_proto HTTP/1.0 [13:45:18]Method: POST [13:45:18]URL: /json_proto [13:45:18]Method is POST - this is cgi request [13:45:18]url: /json_proto [13:45:18]query_string will be loaded in cgi processing [13:45:18]execute_cgi json_proto POST (null) [13:45:18]execute_cgi path=json_proto method=POST [13:45:18]POST find Content-Length [13:45:18]Host: 172.17.49.132:8080 [13:45:18]Content-Length: 677 [13:45:18]Content-Type: application/json [13:45:18] [13:45:18]POST finish read [13:45:18]Found Content-Length = 677 [13:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:18]execute_script... [13:45:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:18]POST & json_proto [13:45:18]process_json_proto [13:45:18]json parsed OK: [13:45:18]protocol is kg_v1.0 [13:45:18]action value=close_receipt [13:45:18]process_action close_receipt [13:45:18]cmd_close_receipt [13:45:18]MH_GetDate [13:45:18]Write to MH i2c: F0 00 00 6A B5 0E [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 09 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 09 00 6A B5 00 81 91 AB 66 E7 4B C0 64 90 [13:45:18]GetLastDocTimeStamp 1722519739 [13:45:18]current date 1722519937 [13:45:18]FM_GetShiftState [13:45:18]SAM_PROTO_GetShiftState [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 13 01 00 [13:45:18]Write to MH i2c: E2 08 00 6B B5 80 13 01 00 00 00 00 00 9D [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 0E 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 0E 00 6B B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D6 [13:45:18]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:45:18]wFMCommunicate OK [13:45:18]SAM_PROTO_GetShiftState done [13:45:18]FM_GetShiftState done [13:45:18]opened in 1722472772 [13:45:18]opened+sec_in_day 1722559172 [13:45:18]quantity*price = 50036 [13:45:18]sum+1 = 50037 [13:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 77 01.08.2024 13:45 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69914 ФПД: 21372547992389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134537&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69914&fm=21372547992389&tin=02508201610067®Number=0000000000092638&sum=50000 [13:45:19]StoreToDocumentArchive [13:45:19]shift 433 fd 69914 [13:45:19]save to /storage/0433/doc_00069914 [13:45:19]save last doc name /storage/0433/doc_00069914 to /storage/kkm_last_doc_name [13:45:19]save OK [13:45:19]Clear old archive folders... [13:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:19]tlvbuf is 014B0CB0 [13:45:19]SAM_PROTO_ClearQueue [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 09 00 00 [13:45:19]Write to MH i2c: E2 08 00 78 B5 80 09 00 00 00 00 00 00 9F [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 78 B5 00 90 00 A1 [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]SAM_PROTO_ClearQueue done [13:45:19]KKMCreateOFDPacket [13:45:19]OFDProtocolAddRootSTLVToBuf [13:45:19]FM_MakeSignedData [13:45:19]FM_MakeSignedData [13:45:19]SAM_PROTO_SignData [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 01 02 [13:45:19]Write to MH i2c: E2 08 00 79 B5 80 0D 01 02 00 00 00 00 A7 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:20]Read from MH i2c: E2 03 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 79 B5 00 90 00 A2 [13:45:20]RAPDU: 90 00 [13:45:20]wFMCommunicate OK [13:45:20]wFMCommunicate request_size=255 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 81 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 11 01 00 35 04 06 00 13 [13:45:20]Write to MH i2c: E2 02 01 7A B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 81 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 11 01 00 35 04 06 00 13 00 00 93 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 7A B5 00 90 00 A3 [13:45:20]RAPDU: 90 00 [13:45:20]wFMCommunicate OK [13:45:20]wFMCommunicate request_size=10 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 0D 02 02 05 70 2F 21 8B 45 [13:45:20]Write to MH i2c: E2 0D 00 7B B5 80 0D 02 02 05 00 70 2F 21 8B 45 00 00 44 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 03 00 7B B5 00 90 00 A4 [13:45:20]RAPDU: 90 00 [13:45:20]wFMCommunicate OK [13:45:20]wFMCommunicate request_size=4 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 0D 03 02 [13:45:20]Write to MH i2c: E2 08 00 7C B5 80 0D 03 02 00 00 00 00 AC [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 0B 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 0B 00 7C B5 00 A6 3C 6B 7F 6F C5 C2 32 90 00 A1 [13:45:20]RAPDU: A6 3C 6B 7F 6F C5 C2 32 90 00 [13:45:20]wFMCommunicate OK [13:45:20]SAM_PROTO_SignData done [13:45:20]FM_MakeSignedData done [13:45:20]CreateOFDProtocolMessage [13:45:20]wFMCommunicate request_size=4 [13:45:20]MH_SAM_APDU [13:45:20]CAPDU: 80 11 00 00 [13:45:20]Write to MH i2c: E2 08 00 7D B5 80 11 00 00 00 00 00 00 AC [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 17 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 17 00 7D B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 08 [13:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:45:20]wFMCommunicate OK [13:45:20]CreateOFDProtocolMessage done [13:45:20]OFDSenderStorePacket 69914 [13:45:20]StoreOFDPacket docnum=69914 [13:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 C8 BA 07 01 15 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 81 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 11 01 00 35 04 06 00 13 70 2F 21 8B 45 A6 3C 6B 7F 6F C5 C2 32 [13:45:20]CheckFolder [13:45:20]dirname=/storage/ofd_packets [13:45:20]CheckFolder done [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00069914 [13:45:20]NVStorageSaveData ofd_packets/00069914 [13:45:20]File name is /storage/ofd_packets/00069914 [13:45:20]Write 301 bytes [13:45:20]NVStorageSaveData done [13:45:20]OFDSenderStorePacket done [13:45:20]KKMCreateOFDPacket done [13:45:20]NVStorageSaveData kkm_last_timestamp [13:45:20]File name is /storage/kkm_last_timestamp [13:45:20]Write 4 bytes [13:45:20]NVStorageSaveData done [13:45:20]ExternCall_PrintAddStr [13:45:20]wPrintStart [13:45:20]Write to MH i2c: 01 00 00 7E B5 33 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 7E B5 00 00 00 00 00 FF 0F 48 [13:45:20]RasterBufferAndPrint [13:45:20]line Счет N : (1)874847 [13:45:20]line ИНН: 02508201610067 [13:45:20]line Контрольно-Кассовый Чек [13:45:20]line ПРОДАЖА [13:45:20]line ТРК (МРК, ГНК) : 42 [13:45:20]line Товар: 2710124130 [13:45:20]line Аи-92-К-5 [13:45:20]line 7.380 * 67.80 [13:45:20]line = 500.36 [13:45:20]line НДС 12% НСП 1% [13:45:20]line > о реализуемом товаре [13:45:20]line ОКРУГЛЕНИЕ: -0.36 [13:45:20]line ИТОГО: 500.00 [13:45:20]line Внесено: 500.00 [13:45:20]line СДАЧА: 0.00 [13:45:20]line НСП 1% : 4.43 [13:45:20]line НДС 12% : 53.14 [13:45:20]line Наличными: 500.00 [13:45:20]line Безнал.: 0.00 [13:45:20]line Место: АЗС № 125 "Партнер Нефть" [13:45:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:45:20]line СНО: Общий режим [13:45:20]line Чек 77 01.08.2024 13:45 [13:45:20]line Смена: 433 ФФД: 1.0 [13:45:20]line ЗНМ: 0300000049 [13:45:20]line РНМ: 0000000000092638 [13:45:20]line Версия ККМ: 001 [13:45:20]line ФМ: 0000000000874949 [13:45:20]line ФД: 69914 [13:45:20]line ФПД: 21372547992389 [13:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134537&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69914&fm=21372547992389&tin=02508201610067®Number=0000000000092638&sum=50000 [13:45:20]OFD Sender: Processing packet 69914 [packets to send 19, broken 18] [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00069914 [13:45:20]OFD Sender: To server: pG, [13:45:20]CommunicateWithHost lk.salyk.kg:30040 [13:45:20]ConnectInit lk.salyk.kg [13:45:20]written 0, free lines is 4095 [13:45:20]Connected sock=10 [13:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 C8 BA 07 01 15 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 81 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 11 01 00 35 04 06 00 13 70 2F 21 8B 45 A6 3C 6B 7F 6F C5 C2 32 [13:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 1E 9C 47 00 A9 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1A 11 01 00 F4 03 04 00 E2 37 AB 66 B6 04 01 00 00 53 34 4A A7 47 E0 A3 36 [13:45:21]CommunicateWithHost err = 0 [13:45:21]CheckOFDResponse [13:45:21]1017 (14) - 77093643461234 [13:45:21]1041 (16) - 0000000000874949 [13:45:21]1040 (4) - 69914 [13:45:21]1012 (4) - 01.08.2024 07:23 [13:45:21]1206 (1) - 0 [13:45:21]OFD Sender: Remove packet 69914 [13:45:21]ProducePacketName [13:45:21]name=ofd_packets/00069914 [13:45:21]NVStorageDeleteData [13:45:21]Write to MH i2c: 01 00 00 A9 B5 5E [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 07 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: 01 07 00 A9 B5 00 00 00 00 00 02 0D 74 [13:45:21]RasterBufferAndPrint [13:45:21]line [13:45:21]line [13:45:21]line [13:45:21]line [13:45:21]line [13:45:21]written 0, free lines is 3336 [13:45:21]MH_Cut [13:45:21]Write to MH i2c: D1 01 00 B0 B5 01 37 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: D1 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: D1 01 00 [13:45:21]MH_I2C_Read... [13:45:21]Read from MH i2c: D1 01 00 B0 B5 00 36 [13:45:21]Write to MH i2c: 01 00 00 B1 B5 66 [13:45:21]Write i2c OK [13:45:21]MH_I2C_Read... [13:45:21]OFD Sender: No OFD packet to send [13:45:21]*** Cut start [13:45:21]*** Partial cut [13:45:21]*** CUTSNS_PIN = 1 [13:45:21]*** CUTSNS_PIN = 0 [13:45:22]*** Brake cut motor [13:45:22]Read from MH i2c: 01 [13:45:22]MH_I2C_Read... [13:45:22]*** Stop cut motor [13:45:22]*** Cut end [13:45:22]Read from MH i2c: 01 07 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 B1 B5 00 00 00 00 00 FF 0F 7B [13:45:22]process_action close_receipt done [13:45:22]requested_data is exist [13:45:22]produce_requested_data [13:45:22]requested_item fm.sn is exist - process it [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 11 00 00 [13:45:22]Write to MH i2c: E2 08 00 B2 B5 80 11 00 00 00 00 00 00 E1 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 B2 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3D [13:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:45:22]wFMCommunicate OK [13:45:22]requested_item fd.num is exist - process it [13:45:22]SAM_PROTO_GetFieldsCounters [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 13 00 00 [13:45:22]Write to MH i2c: E2 08 00 B3 B5 80 13 00 00 00 00 00 00 E4 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 62 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 62 00 B3 B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1A 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1A 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_GetFieldsCounters done [13:45:22]requested_item shift.num is exist - process it [13:45:22]requested_item shift.opened is exist - process it [13:45:22]req_shift_opened [13:45:22]FM_GetShiftState [13:45:22]SAM_PROTO_GetShiftState [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 13 01 00 [13:45:22]Write to MH i2c: E2 08 00 B4 B5 80 13 01 00 00 00 00 00 E6 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0E 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0E 00 B4 B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 1F [13:45:22]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_GetShiftState done [13:45:22]FM_GetShiftState done [13:45:22]req_shift_opened done [13:45:22]requested_item shift.open_date is exist - process it [13:45:22]req_shift_open_date [13:45:22]req_shift_open_date done [13:45:22]produce_requested_data done [13:45:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69914,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:45:22]process_action_free close_receipt [13:45:22]json_value_free [13:45:22]json_value_free done [13:45:22]process_json_proto returns [13:45:22]Send response to host [13:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69914,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:45:22]free response buf [13:45:22]execute_script done [13:45:22]execute_script returns [13:45:22]free content buf [13:45:22]Sock 7.Close socket [13:45:22]Sock 7.Thread stoped [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:24]accept exits with 9 [13:46:24]New connection [13:46:24]New thread 3067002212 created [13:46:24]Thread 3066858852 joined [13:46:24]Waiting for new connection... [13:46:24] Sock 9.Parse request [13:46:24]Sock 9.Check first char [13:46:24]Sock 9.First char is OK [13:46:24]request: POST /json_proto HTTP/1.0 [13:46:24]Method: POST [13:46:24]URL: /json_proto [13:46:24]Method is POST - this is cgi request [13:46:24]url: /json_proto [13:46:24]query_string will be loaded in cgi processing [13:46:24]execute_cgi json_proto POST (null) [13:46:24]execute_cgi path=json_proto method=POST [13:46:24]POST find Content-Length [13:46:24]Host: 172.17.49.132:8080 [13:46:24]Content-Length: 677 [13:46:24]Content-Type: application/json [13:46:24] [13:46:24]POST finish read [13:46:24]Found Content-Length = 677 [13:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:24]execute_script... [13:46:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:24]POST & json_proto [13:46:24]process_json_proto [13:46:24]json parsed OK: [13:46:24]protocol is kg_v1.0 [13:46:24]action value=close_receipt [13:46:24]process_action close_receipt [13:46:24]cmd_close_receipt [13:46:24]MH_GetDate [13:46:24]Write to MH i2c: F0 00 00 B5 B5 59 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 09 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: F0 09 00 B5 B5 00 C3 91 AB 66 E7 4B C0 64 1D [13:46:24]GetLastDocTimeStamp 1722519937 [13:46:24]current date 1722520003 [13:46:24]FM_GetShiftState [13:46:24]SAM_PROTO_GetShiftState [13:46:24]wFMCommunicate request_size=4 [13:46:24]MH_SAM_APDU [13:46:24]CAPDU: 80 13 01 00 [13:46:24]Write to MH i2c: E2 08 00 B6 B5 80 13 01 00 00 00 00 00 E8 [13:46:24]Write i2c OK [13:46:24]MH_I2C_Read... [13:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:24]Read from MH i2c: E2 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: E2 0E 00 [13:46:24]MH_I2C_Read... [13:46:24]Read from MH i2c: E2 0E 00 B6 B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 21 [13:46:24]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:46:24]wFMCommunicate OK [13:46:24]SAM_PROTO_GetShiftState done [13:46:24]FM_GetShiftState done [13:46:24]opened in 1722472772 [13:46:24]opened+sec_in_day 1722559172 [13:46:24]quantity*price = 50036 [13:46:24]sum+1 = 50037 [13:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 78 01.08.2024 13:46 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69915 ФПД: 16087132889600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134643&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69915&fm=16087132889600&tin=02508201610067®Number=0000000000092638&sum=50000 [13:46:26]StoreToDocumentArchive [13:46:26]shift 433 fd 69915 [13:46:26]save to /storage/0433/doc_00069915 [13:46:26]save last doc name /storage/0433/doc_00069915 to /storage/kkm_last_doc_name [13:46:26]save OK [13:46:26]Clear old archive folders... [13:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:26]tlvbuf is 014A0610 [13:46:26]SAM_PROTO_ClearQueue [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 09 00 00 [13:46:26]Write to MH i2c: E2 08 00 C3 B5 80 09 00 00 00 00 00 00 EA [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 C3 B5 00 90 00 EC [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]SAM_PROTO_ClearQueue done [13:46:26]KKMCreateOFDPacket [13:46:26]OFDProtocolAddRootSTLVToBuf [13:46:26]FM_MakeSignedData [13:46:26]FM_MakeSignedData [13:46:26]SAM_PROTO_SignData [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 01 02 [13:46:26]Write to MH i2c: E2 08 00 C4 B5 80 0D 01 02 00 00 00 00 F2 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 C4 B5 00 90 00 ED [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]wFMCommunicate request_size=255 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C3 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 11 01 00 35 04 06 00 0E [13:46:26]Write to MH i2c: E2 02 01 C5 B5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C3 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 11 01 00 35 04 06 00 0E 00 00 1D [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 C5 B5 00 90 00 EE [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]wFMCommunicate request_size=10 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 02 02 05 A1 93 D7 62 00 [13:46:26]Write to MH i2c: E2 0D 00 C6 B5 80 0D 02 02 05 00 A1 93 D7 62 00 00 00 6C [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 03 00 C6 B5 00 90 00 EF [13:46:26]RAPDU: 90 00 [13:46:26]wFMCommunicate OK [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 0D 03 02 [13:46:26]Write to MH i2c: E2 08 00 C7 B5 80 0D 03 02 00 00 00 00 F7 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 0B 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 0B 00 C7 B5 00 65 EB CF 6B D9 EF 8B 54 90 00 29 [13:46:26]RAPDU: 65 EB CF 6B D9 EF 8B 54 90 00 [13:46:26]wFMCommunicate OK [13:46:26]SAM_PROTO_SignData done [13:46:26]FM_MakeSignedData done [13:46:26]CreateOFDProtocolMessage [13:46:26]wFMCommunicate request_size=4 [13:46:26]MH_SAM_APDU [13:46:26]CAPDU: 80 11 00 00 [13:46:26]Write to MH i2c: E2 08 00 C8 B5 80 11 00 00 00 00 00 00 F7 [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:26]Read from MH i2c: E2 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 17 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: E2 17 00 C8 B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 53 [13:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:46:26]wFMCommunicate OK [13:46:26]CreateOFDProtocolMessage done [13:46:26]OFDSenderStorePacket 69915 [13:46:26]StoreOFDPacket docnum=69915 [13:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 69 8B 07 01 26 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C3 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 11 01 00 35 04 06 00 0E A1 93 D7 62 00 65 EB CF 6B D9 EF 8B 54 [13:46:26]CheckFolder [13:46:26]dirname=/storage/ofd_packets [13:46:26]CheckFolder done [13:46:26]ProducePacketName [13:46:26]name=ofd_packets/00069915 [13:46:26]NVStorageSaveData ofd_packets/00069915 [13:46:26]File name is /storage/ofd_packets/00069915 [13:46:26]Write 301 bytes [13:46:26]NVStorageSaveData done [13:46:26]OFDSenderStorePacket done [13:46:26]KKMCreateOFDPacket done [13:46:26]NVStorageSaveData kkm_last_timestamp [13:46:26]File name is /storage/kkm_last_timestamp [13:46:26]Write 4 bytes [13:46:26]NVStorageSaveData done [13:46:26]ExternCall_PrintAddStr [13:46:26]wPrintStart [13:46:26]Write to MH i2c: 01 00 00 C9 B5 7E [13:46:26]Write i2c OK [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 07 00 [13:46:26]MH_I2C_Read... [13:46:26]Read from MH i2c: 01 07 00 C9 B5 00 00 00 00 00 FF 0F 93 [13:46:26]RasterBufferAndPrint [13:46:26]line Счет N : (1)874850 [13:46:26]line ИНН: 02508201610067 [13:46:26]line Контрольно-Кассовый Чек [13:46:26]line ПРОДАЖА [13:46:26]line ТРК (МРК, ГНК) : 52 [13:46:26]line Товар: 2710124130 [13:46:26]line Аи-92-К-5 [13:46:26]line 7.380 * 67.80 [13:46:26]line = 500.36 [13:46:26]line НДС 12% НСП 1% [13:46:26]line > о реализуемом товаре [13:46:26]line ОКРУГЛЕНИЕ: -0.36 [13:46:26]line ИТОГО: 500.00 [13:46:26]line Внесено: 500.00 [13:46:26]line СДАЧА: 0.00 [13:46:26]line НСП 1% : 4.43 [13:46:26]line НДС 12% : 53.14 [13:46:26]line Наличными: 500.00 [13:46:26]line Безнал.: 0.00 [13:46:26]line Место: АЗС № 125 "Партнер Нефть" [13:46:26]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:46:26]line СНО: Общий режим [13:46:26]line Чек 78 01.08.2024 13:46 [13:46:26]line Смена: 433 ФФД: 1.0 [13:46:26]line ЗНМ: 0300000049 [13:46:26]line РНМ: 0000000000092638 [13:46:26]line Версия ККМ: 001 [13:46:26]line ФМ: 0000000000874949 [13:46:26]line ФД: 69915 [13:46:26]line ФПД: 16087132889600 [13:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T134643&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69915&fm=16087132889600&tin=02508201610067®Number=0000000000092638&sum=50000 [13:46:26]written 0, free lines is 4095 [13:46:26]OFD Sender: Processing packet 69915 [packets to send 19, broken 18] [13:46:26]ProducePacketName [13:46:26]name=ofd_packets/00069915 [13:46:26]OFD Sender: To server: pG, [13:46:26]CommunicateWithHost lk.salyk.kg:30040 [13:46:26]ConnectInit lk.salyk.kg [13:46:27]Connected sock=10 [13:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 69 8B 07 01 26 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 C3 91 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 11 01 00 35 04 06 00 0E A1 93 D7 62 00 65 EB CF 6B D9 EF 8B 54 [13:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CD 9E 47 00 60 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1B 11 01 00 F4 03 04 00 24 38 AB 66 B6 04 01 00 00 3B 67 5C EE 96 B7 1C A4 [13:46:27]CommunicateWithHost err = 0 [13:46:27]CheckOFDResponse [13:46:27]1017 (14) - 77093643461234 [13:46:27]1041 (16) - 0000000000874949 [13:46:27]1040 (4) - 69915 [13:46:27]1012 (4) - 01.08.2024 07:24 [13:46:27]1206 (1) - 0 [13:46:27]OFD Sender: Remove packet 69915 [13:46:27]ProducePacketName [13:46:27]name=ofd_packets/00069915 [13:46:27]NVStorageDeleteData [13:46:27]Write to MH i2c: 01 00 00 F4 B5 A9 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: 01 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: 01 07 00 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: 01 07 00 F4 B5 00 00 00 00 00 F6 0C B2 [13:46:27]RasterBufferAndPrint [13:46:27]line [13:46:27]line [13:46:27]line [13:46:27]line [13:46:27]line [13:46:27]written 0, free lines is 3328 [13:46:27]MH_Cut [13:46:27]Write to MH i2c: D1 01 00 FB B5 01 82 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: D1 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: D1 01 00 [13:46:27]MH_I2C_Read... [13:46:27]Read from MH i2c: D1 01 00 FB B5 00 81 [13:46:27]Write to MH i2c: 01 00 00 FC B5 B1 [13:46:27]Write i2c OK [13:46:27]MH_I2C_Read... [13:46:27]OFD Sender: No OFD packet to send [13:46:28]*** Cut start [13:46:28]*** Partial cut [13:46:28]*** CUTSNS_PIN = 1 [13:46:28]*** CUTSNS_PIN = 0 [13:46:28]*** Brake cut motor [13:46:28]Read from MH i2c: 01 [13:46:28]MH_I2C_Read... [13:46:28]*** Stop cut motor [13:46:28]*** Cut end [13:46:28]Read from MH i2c: 01 07 00 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: 01 07 00 FC B5 00 00 00 00 00 FF 0F C6 [13:46:28]process_action close_receipt done [13:46:28]requested_data is exist [13:46:28]produce_requested_data [13:46:28]requested_item fm.sn is exist - process it [13:46:28]wFMCommunicate request_size=4 [13:46:28]MH_SAM_APDU [13:46:28]CAPDU: 80 11 00 00 [13:46:28]Write to MH i2c: E2 08 00 FD B5 80 11 00 00 00 00 00 00 2C [13:46:28]Write i2c OK [13:46:28]MH_I2C_Read... [13:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:28]Read from MH i2c: E2 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 17 00 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 17 00 FD B5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 88 [13:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:46:28]wFMCommunicate OK [13:46:28]requested_item fd.num is exist - process it [13:46:28]SAM_PROTO_GetFieldsCounters [13:46:28]wFMCommunicate request_size=4 [13:46:28]MH_SAM_APDU [13:46:28]CAPDU: 80 13 00 00 [13:46:28]Write to MH i2c: E2 08 00 FE B5 80 13 00 00 00 00 00 00 2F [13:46:28]Write i2c OK [13:46:28]MH_I2C_Read... [13:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:28]Read from MH i2c: E2 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 62 00 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 62 00 FE B5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [13:46:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:28]wFMCommunicate OK [13:46:28]SAM_PROTO_GetFieldsCounters done [13:46:28]requested_item shift.num is exist - process it [13:46:28]requested_item shift.opened is exist - process it [13:46:28]req_shift_opened [13:46:28]FM_GetShiftState [13:46:28]SAM_PROTO_GetShiftState [13:46:28]wFMCommunicate request_size=4 [13:46:28]MH_SAM_APDU [13:46:28]CAPDU: 80 13 01 00 [13:46:28]Write to MH i2c: E2 08 00 FF B5 80 13 01 00 00 00 00 00 31 [13:46:28]Write i2c OK [13:46:28]MH_I2C_Read... [13:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:28]Read from MH i2c: E2 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 0E 00 [13:46:28]MH_I2C_Read... [13:46:28]Read from MH i2c: E2 0E 00 FF B5 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 6A [13:46:28]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:46:28]wFMCommunicate OK [13:46:28]SAM_PROTO_GetShiftState done [13:46:28]FM_GetShiftState done [13:46:28]req_shift_opened done [13:46:28]requested_item shift.open_date is exist - process it [13:46:28]req_shift_open_date [13:46:28]req_shift_open_date done [13:46:28]produce_requested_data done [13:46:28]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69915,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:46:28]process_action_free close_receipt [13:46:28]json_value_free [13:46:28]json_value_free done [13:46:28]process_json_proto returns [13:46:28]Send response to host [13:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69915,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:46:28]free response buf [13:46:28]execute_script done [13:46:28]execute_script returns [13:46:28]free content buf [13:46:28]Sock 9.Close socket [13:46:28]Sock 9.Thread stoped [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [13:50:08]accept exits with 7 [13:50:08]New connection [13:50:08]New thread 3066858852 created [13:50:08]Thread 3067002212 joined [13:50:08]Waiting for new connection... [13:50:08] Sock 7.Parse request [13:50:08]Sock 7.Check first char [13:50:08]Sock 7.First char is OK [13:50:08]request: POST /json_proto HTTP/1.0 [13:50:08]Method: POST [13:50:08]URL: /json_proto [13:50:08]Method is POST - this is cgi request [13:50:08]url: /json_proto [13:50:08]query_string will be loaded in cgi processing [13:50:08]execute_cgi json_proto POST (null) [13:50:08]execute_cgi path=json_proto method=POST [13:50:08]POST find Content-Length [13:50:08]Host: 172.17.49.132:8080 [13:50:08]Content-Length: 1251 [13:50:08]Content-Type: application/json [13:50:08] [13:50:08]POST finish read [13:50:08]Found Content-Length = 1251 [13:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874846\u000A01.08.2024 13:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914964;965;966;967;968;969;970;971;972;973\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:08]execute_script... [13:50:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874846\u000A01.08.2024 13:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914964;965;966;967;968;969;970;971;972;973\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:08]POST & json_proto [13:50:08]process_json_proto [13:50:08]json parsed OK: [13:50:08]protocol is kg_v1.0 [13:50:08]action value=print_text [13:50:08]process_action print_text [13:50:08]cmd_print_text [13:50:08]ExternCall_PrintAddStr [13:50:08]wPrintStart [13:50:08]Write to MH i2c: 01 00 00 00 B6 B6 [13:50:08]Write i2c OK [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: 01 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: 01 07 00 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: 01 07 00 00 B6 00 00 00 00 00 FF 0F CB [13:50:08]RasterBufferAndPrint [13:50:08]line *****ТОВАРНЫЙ ЧЕК***** [13:50:08]line АЗС 125 [13:50:08]line Партнер нефть [13:50:08]line 02508201610067 [13:50:08]line Кассир : Мадаминова Б. [13:50:08]line Счет N : (1)874846 [13:50:08]line 01.08.2024 13:11 [13:50:08]line ПРОДАЖА [13:50:08]line ТРК (МРК, ГНК): 62 [13:50:08]line Вид ГСМ : 2710124130 [13:50:08]line Аи-92-К-5 [13:50:08]line 100.000 x 67.80 [13:50:08]line ИТОГ: 6780.00 [13:50:08]line Тип оплаты: Талоны: Топливные Талоны [13:50:08]line 3914964;965;966;967;968;969;970;971;972;973 [13:50:08]line ______________________ [13:50:08]line (подпись) [13:50:08]written 0, free lines is 4095 [13:50:08]Write to MH i2c: 01 00 00 15 B6 CB [13:50:08]Write i2c OK [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: 01 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: 01 07 00 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: 01 07 00 15 B6 00 00 00 00 00 0C 0E EC [13:50:08]RasterBufferAndPrint [13:50:08]line [13:50:08]line [13:50:08]line [13:50:08]line [13:50:08]line [13:50:08]written 0, free lines is 3600 [13:50:08]MH_Cut [13:50:08]Write to MH i2c: D1 01 00 1C B6 01 A4 [13:50:08]Write i2c OK [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: D1 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: D1 01 00 [13:50:08]MH_I2C_Read... [13:50:08]Read from MH i2c: D1 01 00 1C B6 00 A3 [13:50:08]Write to MH i2c: 01 00 00 1D B6 D3 [13:50:08]Write i2c OK [13:50:08]MH_I2C_Read... [13:50:09]*** Cut start [13:50:09]*** Partial cut [13:50:09]*** CUTSNS_PIN = 1 [13:50:09]*** CUTSNS_PIN = 0 [13:50:09]*** Brake cut motor [13:50:09]Read from MH i2c: 01 [13:50:09]MH_I2C_Read... [13:50:09]*** Stop cut motor [13:50:09]*** Cut end [13:50:09]Read from MH i2c: 01 07 00 [13:50:09]MH_I2C_Read... [13:50:09]Read from MH i2c: 01 07 00 1D B6 00 00 00 00 00 FF 0F E8 [13:50:09]process_action print_text done [13:50:09]requested_data is exist [13:50:09]produce_requested_data [13:50:09]requested_item fm.sn is exist - process it [13:50:09]wFMCommunicate request_size=4 [13:50:09]MH_SAM_APDU [13:50:09]CAPDU: 80 11 00 00 [13:50:09]Write to MH i2c: E2 08 00 1E B6 80 11 00 00 00 00 00 00 4E [13:50:09]Write i2c OK [13:50:09]MH_I2C_Read... [13:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:10]Read from MH i2c: E2 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 17 00 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 17 00 1E B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [13:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:50:10]wFMCommunicate OK [13:50:10]requested_item fd.num is exist - process it [13:50:10]SAM_PROTO_GetFieldsCounters [13:50:10]wFMCommunicate request_size=4 [13:50:10]MH_SAM_APDU [13:50:10]CAPDU: 80 13 00 00 [13:50:10]Write to MH i2c: E2 08 00 1F B6 80 13 00 00 00 00 00 00 51 [13:50:10]Write i2c OK [13:50:10]MH_I2C_Read... [13:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:10]Read from MH i2c: E2 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 62 00 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 62 00 1F B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [13: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1B 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:10]wFMCommunicate OK [13:50:10]SAM_PROTO_GetFieldsCounters done [13:50:10]requested_item shift.num is exist - process it [13:50:10]requested_item shift.opened is exist - process it [13:50:10]req_shift_opened [13:50:10]FM_GetShiftState [13:50:10]SAM_PROTO_GetShiftState [13:50:10]wFMCommunicate request_size=4 [13:50:10]MH_SAM_APDU [13:50:10]CAPDU: 80 13 01 00 [13:50:10]Write to MH i2c: E2 08 00 20 B6 80 13 01 00 00 00 00 00 53 [13:50:10]Write i2c OK [13:50:10]MH_I2C_Read... [13:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:10]Read from MH i2c: E2 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 0E 00 [13:50:10]MH_I2C_Read... [13:50:10]Read from MH i2c: E2 0E 00 20 B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8C [13:50:10]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:50:10]wFMCommunicate OK [13:50:10]SAM_PROTO_GetShiftState done [13:50:10]FM_GetShiftState done [13:50:10]req_shift_opened done [13:50:10]requested_item shift.open_date is exist - process it [13:50:10]req_shift_open_date [13:50:10]req_shift_open_date done [13:50:10]produce_requested_data done [13:50:10]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69915,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:50:10]process_action_free print_text [13:50:10]json_value_free [13:50:10]json_value_free done [13:50:10]process_json_proto returns [13:50:10]Send response to host [13:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69915,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:50:10]free response buf [13:50:10]execute_script done [13:50:10]execute_script returns [13:50:10]free content buf [13:50:10]Sock 7.Close socket [13:50:10]Sock 7.Thread stoped [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:18]accept exits with 9 [13:50:18]New connection [13:50:18]New thread 3067002212 created [13:50:18]Thread 3066858852 joined [13:50:18]Waiting for new connection... [13:50:18] Sock 9.Parse request [13:50:18]Sock 9.Check first char [13:50:18]Sock 9.First char is OK [13:50:18]request: POST /json_proto HTTP/1.0 [13:50:18]Method: POST [13:50:18]URL: /json_proto [13:50:18]Method is POST - this is cgi request [13:50:18]url: /json_proto [13:50:18]query_string will be loaded in cgi processing [13:50:18]execute_cgi json_proto POST (null) [13:50:18]execute_cgi path=json_proto method=POST [13:50:18]POST find Content-Length [13:50:18]Host: 172.17.49.132:8080 [13:50:18]Content-Length: 682 [13:50:18]Content-Type: application/json [13:50:18] [13:50:18]POST finish read [13:50:18]Found Content-Length = 682 [13:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "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" ] } } [13:50:18]execute_script... [13:50: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)874855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 20.650, "sum" : 1400.07, "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" ] } } [13:50:18]POST & json_proto [13:50:18]process_json_proto [13:50:18]json parsed OK: [13:50:18]protocol is kg_v1.0 [13:50:18]action value=close_receipt [13:50:18]process_action close_receipt [13:50:18]cmd_close_receipt [13:50:18]MH_GetDate [13:50:18]Write to MH i2c: F0 00 00 21 B6 C6 [13:50:18]Write i2c OK [13:50:18]MH_I2C_Read... [13:50:18]Read from MH i2c: F0 [13:50:18]MH_I2C_Read... [13:50:18]Read from MH i2c: F0 09 00 [13:50:18]MH_I2C_Read... [13:50:18]Read from MH i2c: F0 09 00 21 B6 00 AC 92 AB 66 E7 4B C0 64 74 [13:50:18]GetLastDocTimeStamp 1722520003 [13:50:18]current date 1722520236 [13:50:18]FM_GetShiftState [13:50:18]SAM_PROTO_GetShiftState [13:50:18]wFMCommunicate request_size=4 [13:50:18]MH_SAM_APDU [13:50:18]CAPDU: 80 13 01 00 [13:50:18]Write to MH i2c: E2 08 00 22 B6 80 13 01 00 00 00 00 00 55 [13:50:18]Write i2c OK [13:50:18]MH_I2C_Read... [13:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:18]Read from MH i2c: E2 [13:50:18]MH_I2C_Read... [13:50:18]Read from MH i2c: E2 0E 00 [13:50:18]MH_I2C_Read... [13:50:18]Read from MH i2c: E2 0E 00 22 B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8E [13:50:18]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:50:18]wFMCommunicate OK [13:50:18]SAM_PROTO_GetShiftState done [13:50:18]FM_GetShiftState done [13:50:18]opened in 1722472772 [13:50:18]opened+sec_in_day 1722559172 [13:50:18]quantity*price = 140007 [13:50:18]sum+1 = 140008 [13:50:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 79 01.08.2024 13:50 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69916 ФПД: 21013052153844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T135037&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69916&fm=21013052153844&tin=02508201610067®Number=0000000000092638&sum=140000 [13:50:19]StoreToDocumentArchive [13:50:19]shift 433 fd 69916 [13:50:19]save to /storage/0433/doc_00069916 [13:50:19]save last doc name /storage/0433/doc_00069916 to /storage/kkm_last_doc_name [13:50:19]save OK [13:50:19]Clear old archive folders... [13:50:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:19]tlvbuf is 0151F170 [13:50:19]SAM_PROTO_ClearQueue [13:50:19]wFMCommunicate request_size=4 [13:50:19]MH_SAM_APDU [13:50:19]CAPDU: 80 09 00 00 [13:50:19]Write to MH i2c: E2 08 00 2F B6 80 09 00 00 00 00 00 00 57 [13:50:19]Write i2c OK [13:50:19]MH_I2C_Read... [13:50:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:19]Read from MH i2c: E2 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: E2 03 00 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: E2 03 00 2F B6 00 90 00 59 [13:50:19]RAPDU: 90 00 [13:50:19]wFMCommunicate OK [13:50:19]SAM_PROTO_ClearQueue done [13:50:19]KKMCreateOFDPacket [13:50:19]OFDProtocolAddRootSTLVToBuf [13:50:19]FM_MakeSignedData [13:50:19]FM_MakeSignedData [13:50:19]SAM_PROTO_SignData [13:50:19]wFMCommunicate request_size=4 [13:50:19]MH_SAM_APDU [13:50:19]CAPDU: 80 0D 01 02 [13:50:19]Write to MH i2c: E2 08 00 30 B6 80 0D 01 02 00 00 00 00 5F [13:50:19]Write i2c OK [13:50:19]MH_I2C_Read... [13:50:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:19]Read from MH i2c: E2 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: E2 03 00 [13:50:19]MH_I2C_Read... [13:50:19]Read from MH i2c: E2 03 00 30 B6 00 90 00 5A [13:50:19]RAPDU: 90 00 [13:50:19]wFMCommunicate OK [13:50:19]wFMCommunicate request_size=255 [13:50:19]MH_SAM_APDU [13:50: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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 4F 00 00 00 F4 03 04 00 AD 92 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 11 01 00 35 04 06 00 13 [13:50:19]Write to MH i2c: E2 02 01 31 B6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 4F 00 00 00 F4 03 04 00 AD 92 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 11 01 00 35 04 06 00 13 00 00 D3 [13:50:19]Write i2c OK [13:50:19]MH_I2C_Read... [13:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:20]Read from MH i2c: E2 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 31 B6 00 90 00 5B [13:50:20]RAPDU: 90 00 [13:50:20]wFMCommunicate OK [13:50:20]wFMCommunicate request_size=10 [13:50:20]MH_SAM_APDU [13:50:20]CAPDU: 80 0D 02 02 05 1C 7B 82 5F F4 [13:50:20]Write to MH i2c: E2 0D 00 32 B6 80 0D 02 02 05 00 1C 7B 82 5F F4 00 00 D8 [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:20]Read from MH i2c: E2 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 03 00 32 B6 00 90 00 5C [13:50:20]RAPDU: 90 00 [13:50:20]wFMCommunicate OK [13:50:20]wFMCommunicate request_size=4 [13:50:20]MH_SAM_APDU [13:50:20]CAPDU: 80 0D 03 02 [13:50:20]Write to MH i2c: E2 08 00 33 B6 80 0D 03 02 00 00 00 00 64 [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:20]Read from MH i2c: E2 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 0B 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 0B 00 33 B6 00 96 7D 2A 03 36 1C 30 80 90 00 A7 [13:50:20]RAPDU: 96 7D 2A 03 36 1C 30 80 90 00 [13:50:20]wFMCommunicate OK [13:50:20]SAM_PROTO_SignData done [13:50:20]FM_MakeSignedData done [13:50:20]CreateOFDProtocolMessage [13:50:20]wFMCommunicate request_size=4 [13:50:20]MH_SAM_APDU [13:50:20]CAPDU: 80 11 00 00 [13:50:20]Write to MH i2c: E2 08 00 34 B6 80 11 00 00 00 00 00 00 64 [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:20]Read from MH i2c: E2 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 17 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: E2 17 00 34 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C0 [13:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:50:20]wFMCommunicate OK [13:50:20]CreateOFDProtocolMessage done [13:50:20]OFDSenderStorePacket 69916 [13:50:20]StoreOFDPacket docnum=69916 [13:50:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 BC 08 07 01 8A 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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 4F 00 00 00 F4 03 04 00 AD 92 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 11 01 00 35 04 06 00 13 1C 7B 82 5F F4 96 7D 2A 03 36 1C 30 80 [13:50:20]CheckFolder [13:50:20]dirname=/storage/ofd_packets [13:50:20]CheckFolder done [13:50:20]ProducePacketName [13:50:20]name=ofd_packets/00069916 [13:50:20]NVStorageSaveData ofd_packets/00069916 [13:50:20]File name is /storage/ofd_packets/00069916 [13:50:20]Write 301 bytes [13:50:20]NVStorageSaveData done [13:50:20]OFDSenderStorePacket done [13:50:20]KKMCreateOFDPacket done [13:50:20]NVStorageSaveData kkm_last_timestamp [13:50:20]File name is /storage/kkm_last_timestamp [13:50:20]Write 4 bytes [13:50:20]NVStorageSaveData done [13:50:20]ExternCall_PrintAddStr [13:50:20]wPrintStart [13:50:20]Write to MH i2c: 01 00 00 35 B6 EB [13:50:20]Write i2c OK [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: 01 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: 01 07 00 [13:50:20]MH_I2C_Read... [13:50:20]Read from MH i2c: 01 07 00 35 B6 00 00 00 00 00 FF 0F 00 [13:50:20]RasterBufferAndPrint [13:50:20]line Счет N : (1)874855 [13:50:20]line ИНН: 02508201610067 [13:50:20]line Контрольно-Кассовый Чек [13:50:20]line ПРОДАЖА [13:50:20]line ТРК (МРК, ГНК) : 42 [13:50:20]line Товар: 2710124130 [13:50:20]line Аи-92-К-5 [13:50:20]line 20.650 * 67.80 [13:50:20]line = 1400.07 [13:50:20]line НДС 12% НСП 1% [13:50:20]line > о реализуемом товаре [13:50:20]line ОКРУГЛЕНИЕ: -0.07 [13:50:20]line ИТОГО: 1400.00 [13:50:20]line Внесено: 1400.00 [13:50:20]line СДАЧА: 0.00 [13:50:20]line НСП 1% : 12.39 [13:50:20]line НДС 12% : 148.68 [13:50:20]line Наличными: 1400.00 [13:50:20]line Безнал.: 0.00 [13:50:20]line Место: АЗС № 125 "Партнер Нефть" [13:50:20]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [13:50:20]line СНО: Общий режим [13:50:20]line Чек 79 01.08.2024 13:50 [13:50:20]line Смена: 433 ФФД: 1.0 [13:50:20]line ЗНМ: 0300000049 [13:50:20]line РНМ: 0000000000092638 [13:50:20]line Версия ККМ: 001 [13:50:20]line ФМ: 0000000000874949 [13:50:20]line ФД: 69916 [13:50:20]line ФПД: 21013052153844 [13:50:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T135037&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69916&fm=21013052153844&tin=02508201610067®Number=0000000000092638&sum=140000 [13:50:20]OFD Sender: Processing packet 69916 [packets to send 19, broken 18] [13:50:20]ProducePacketName [13:50:20]name=ofd_packets/00069916 [13:50:20]OFD Sender: To server: pG, [13:50:20]CommunicateWithHost lk.salyk.kg:30040 [13:50:20]ConnectInit lk.salyk.kg [13:50:20]written 0, free lines is 4095 [13:50:20]Connected sock=10 [13:50:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 BC 08 07 01 8A 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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 4F 00 00 00 F4 03 04 00 AD 92 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 11 01 00 35 04 06 00 13 1C 7B 82 5F F4 96 7D 2A 03 36 1C 30 80 [13:50:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 C1 D3 47 00 0A 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1C 11 01 00 F4 03 04 00 0E 39 AB 66 B6 04 01 00 00 6E A7 B6 E5 0D AA F5 6F [13:50:20]CommunicateWithHost err = 0 [13:50:20]CheckOFDResponse [13:50:20]1017 (14) - 77093643461234 [13:50:20]1041 (16) - 0000000000874949 [13:50:20]1040 (4) - 69916 [13:50:20]1012 (4) - 01.08.2024 07:28 [13:50:20]1206 (1) - 0 [13:50:20]OFD Sender: Remove packet 69916 [13:50:20]ProducePacketName [13:50:20]name=ofd_packets/00069916 [13:50:20]NVStorageDeleteData [13:50:21]Write to MH i2c: 01 00 00 60 B6 16 [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: 01 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: 01 07 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: 01 07 00 60 B6 00 00 00 00 00 08 0D 32 [13:50:21]RasterBufferAndPrint [13:50:21]line [13:50:21]line [13:50:21]line [13:50:21]line [13:50:21]line [13:50:21]written 0, free lines is 3342 [13:50:21]MH_Cut [13:50:21]Write to MH i2c: D1 01 00 67 B6 01 EF [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: D1 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: D1 01 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: D1 01 00 67 B6 00 EE [13:50:21]Write to MH i2c: 01 00 00 68 B6 1E [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]OFD Sender: No OFD packet to send [13:50:21]*** Cut start [13:50:21]*** Partial cut [13:50:21]*** CUTSNS_PIN = 1 [13:50:21]*** CUTSNS_PIN = 0 [13:50:21]*** Brake cut motor [13:50:22]Read from MH i2c: 01 [13:50:22]MH_I2C_Read... [13:50:22]*** Stop cut motor [13:50:22]*** Cut end [13:50:22]Read from MH i2c: 01 07 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 07 00 68 B6 00 00 00 00 00 FF 0F 33 [13:50:22]process_action close_receipt done [13:50:22]requested_data is exist [13:50:22]produce_requested_data [13:50:22]requested_item fm.sn is exist - process it [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 11 00 00 [13:50:22]Write to MH i2c: E2 08 00 69 B6 80 11 00 00 00 00 00 00 99 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 17 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 17 00 69 B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F5 [13:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:50:22]wFMCommunicate OK [13:50:22]requested_item fd.num is exist - process it [13:50:22]SAM_PROTO_GetFieldsCounters [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 13 00 00 [13:50:22]Write to MH i2c: E2 08 00 6A B6 80 13 00 00 00 00 00 00 9C [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 62 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 62 00 6A B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:50:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:22]wFMCommunicate OK [13:50:22]SAM_PROTO_GetFieldsCounters done [13:50:22]requested_item shift.num is exist - process it [13:50:22]requested_item shift.opened is exist - process it [13:50:22]req_shift_opened [13:50:22]FM_GetShiftState [13:50:22]SAM_PROTO_GetShiftState [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 13 01 00 [13:50:22]Write to MH i2c: E2 08 00 6B B6 80 13 01 00 00 00 00 00 9E [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 0E 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 0E 00 6B B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 D7 [13:50:22]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:50:22]wFMCommunicate OK [13:50:22]SAM_PROTO_GetShiftState done [13:50:22]FM_GetShiftState done [13:50:22]req_shift_opened done [13:50:22]requested_item shift.open_date is exist - process it [13:50:22]req_shift_open_date [13:50:22]req_shift_open_date done [13:50:22]produce_requested_data done [13:50:22]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:50:22]process_action_free close_receipt [13:50:22]json_value_free [13:50:22]json_value_free done [13:50:22]process_json_proto returns [13:50:22]Send response to host [13:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:50:22]free response buf [13:50:22]execute_script done [13:50:22]execute_script returns [13:50:22]free content buf [13:50:22]Sock 9.Close socket [13:50:22]Sock 9.Thread stoped [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:36]accept exits with 7 [13:52:36]New connection [13:52:36]New thread 3066858852 created [13:52:36]Thread 3067002212 joined [13:52:36]Waiting for new connection... [13:52:36] Sock 7.Parse request [13:52:36]Sock 7.Check first char [13:52:36]Sock 7.First char is OK [13:52:36]request: POST /json_proto HTTP/1.0 [13:52:36]Method: POST [13:52:36]URL: /json_proto [13:52:36]Method is POST - this is cgi request [13:52:36]url: /json_proto [13:52:36]query_string will be loaded in cgi processing [13:52:36]execute_cgi json_proto POST (null) [13:52:36]execute_cgi path=json_proto method=POST [13:52:36]POST find Content-Length [13:52:36]Host: 172.17.49.132:8080 [13:52:36]Content-Length: 1251 [13:52:36]Content-Type: application/json [13:52:36] [13:52:36]POST finish read [13:52:36]Found Content-Length = 1251 [13:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874853\u000A01.08.2024 13:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914954;955;956;957;958;959;960;961;962;963\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:36]execute_script... [13:52:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874853\u000A01.08.2024 13:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914954;955;956;957;958;959;960;961;962;963\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:36]POST & json_proto [13:52:36]process_json_proto [13:52:36]json parsed OK: [13:52:36]protocol is kg_v1.0 [13:52:36]action value=print_text [13:52:36]process_action print_text [13:52:36]cmd_print_text [13:52:36]ExternCall_PrintAddStr [13:52:36]wPrintStart [13:52:36]Write to MH i2c: 01 00 00 6C B6 22 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 07 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 07 00 6C B6 00 00 00 00 00 FF 0F 37 [13:52:36]RasterBufferAndPrint [13:52:36]line *****ТОВАРНЫЙ ЧЕК***** [13:52:36]line АЗС 125 [13:52:36]line Партнер нефть [13:52:36]line 02508201610067 [13:52:36]line Кассир : Мадаминова Б. [13:52:36]line Счет N : (1)874853 [13:52:36]line 01.08.2024 13:13 [13:52:36]line ПРОДАЖА [13:52:36]line ТРК (МРК, ГНК): 52 [13:52:36]line Вид ГСМ : 2710124130 [13:52:36]line Аи-92-К-5 [13:52:36]line 100.000 x 67.80 [13:52:36]line ИТОГ: 6780.00 [13:52:36]line Тип оплаты: Талоны: Топливные Талоны [13:52:36]line 3914954;955;956;957;958;959;960;961;962;963 [13:52:36]line ______________________ [13:52:36]line (подпись) [13:52:36]written 0, free lines is 4095 [13:52:37]Write to MH i2c: 01 00 00 81 B6 37 [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 07 00 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 07 00 81 B6 00 00 00 00 00 0D 0E 59 [13:52:37]RasterBufferAndPrint [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]written 0, free lines is 3601 [13:52:37]MH_Cut [13:52:37]Write to MH i2c: D1 01 00 88 B6 01 10 [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 01 00 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 01 00 88 B6 00 0F [13:52:37]Write to MH i2c: 01 00 00 89 B6 3F [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]*** Cut start [13:52:37]*** Partial cut [13:52:37]*** CUTSNS_PIN = 1 [13:52:37]*** CUTSNS_PIN = 0 [13:52:37]*** Brake cut motor [13:52:38]Read from MH i2c: 01 [13:52:38]MH_I2C_Read... [13:52:38]*** Stop cut motor [13:52:38]*** Cut end [13:52:38]Read from MH i2c: 01 07 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: 01 07 00 89 B6 00 00 00 00 00 FF 0F 54 [13:52:38]process_action print_text done [13:52:38]requested_data is exist [13:52:38]produce_requested_data [13:52:38]requested_item fm.sn is exist - process it [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 11 00 00 [13:52:38]Write to MH i2c: E2 08 00 8A B6 80 11 00 00 00 00 00 00 BA [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:38]Read from MH i2c: E2 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 17 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 17 00 8A B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 16 [13:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:52:38]wFMCommunicate OK [13:52:38]requested_item fd.num is exist - process it [13:52:38]SAM_PROTO_GetFieldsCounters [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 13 00 00 [13:52:38]Write to MH i2c: E2 08 00 8B B6 80 13 00 00 00 00 00 00 BD [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:38]Read from MH i2c: E2 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 62 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 62 00 8B B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [13:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:38]wFMCommunicate OK [13:52:38]SAM_PROTO_GetFieldsCounters done [13:52:38]requested_item shift.num is exist - process it [13:52:38]requested_item shift.opened is exist - process it [13:52:38]req_shift_opened [13:52:38]FM_GetShiftState [13:52:38]SAM_PROTO_GetShiftState [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 13 01 00 [13:52:38]Write to MH i2c: E2 08 00 8C B6 80 13 01 00 00 00 00 00 BF [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:38]Read from MH i2c: E2 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 0E 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 0E 00 8C B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F8 [13:52:38]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:52:38]wFMCommunicate OK [13:52:38]SAM_PROTO_GetShiftState done [13:52:38]FM_GetShiftState done [13:52:38]req_shift_opened done [13:52:38]requested_item shift.open_date is exist - process it [13:52:38]req_shift_open_date [13:52:38]req_shift_open_date done [13:52:38]produce_requested_data done [13:52:38]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:52:38]process_action_free print_text [13:52:38]json_value_free [13:52:38]json_value_free done [13:52:38]process_json_proto returns [13:52:38]Send response to host [13:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:52:38]free response buf [13:52:38]execute_script done [13:52:38]execute_script returns [13:52:38]free content buf [13:52:38]Sock 7.Close socket [13:52:38]Sock 7.Thread stoped [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [13:54:27]New connection [13:54:27]New thread 3067002212 created [13:54:27]Thread 3066858852 joined [13:54:27]Waiting for new connection... [13:54:27] Sock 9.Parse request [13:54:27]Sock 9.Check first char [13:54:27]Sock 9.First char is OK [13:54:27]request: POST /json_proto HTTP/1.0 [13:54:27]Method: POST [13:54:27]URL: /json_proto [13:54:27]Method is POST - this is cgi request [13:54:27]url: /json_proto [13:54:27]query_string will be loaded in cgi processing [13:54:27]execute_cgi json_proto POST (null) [13:54:27]execute_cgi path=json_proto method=POST [13:54:27]POST find Content-Length [13:54:27]Host: 172.17.49.132:8080 [13:54:27]Content-Length: 1251 [13:54:27]Content-Type: application/json [13:54:27] [13:54:27]POST finish read [13:54:27]Found Content-Length = 1251 [13:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874856\u000A01.08.2024 13:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914944;945;946;947;948;949;950;951;952;953\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:27]execute_script... [13:54:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874856\u000A01.08.2024 13:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914944;945;946;947;948;949;950;951;952;953\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:27]POST & json_proto [13:54:27]process_json_proto [13:54:27]json parsed OK: [13:54:27]protocol is kg_v1.0 [13:54:27]action value=print_text [13:54:27]process_action print_text [13:54:27]cmd_print_text [13:54:27]ExternCall_PrintAddStr [13:54:27]wPrintStart [13:54:27]Write to MH i2c: 01 00 00 8D B6 43 [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 07 00 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 07 00 8D B6 00 00 00 00 00 FF 0F 58 [13:54:27]RasterBufferAndPrint [13:54:27]line *****ТОВАРНЫЙ ЧЕК***** [13:54:27]line АЗС 125 [13:54:27]line Партнер нефть [13:54:27]line 02508201610067 [13:54:27]line Кассир : Мадаминова Б. [13:54:27]line Счет N : (1)874856 [13:54:27]line 01.08.2024 13:15 [13:54:27]line ПРОДАЖА [13:54:27]line ТРК (МРК, ГНК): 62 [13:54:27]line Вид ГСМ : 2710124130 [13:54:27]line Аи-92-К-5 [13:54:27]line 100.000 x 67.80 [13:54:27]line ИТОГ: 6780.00 [13:54:27]line Тип оплаты: Талоны: Топливные Талоны [13:54:27]line 3914944;945;946;947;948;949;950;951;952;953 [13:54:27]line ______________________ [13:54:27]line (подпись) [13:54:27]written 0, free lines is 4095 [13:54:27]Write to MH i2c: 01 00 00 A2 B6 58 [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 07 00 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 07 00 A2 B6 00 00 00 00 00 0C 0E 79 [13:54:27]RasterBufferAndPrint [13:54:27]line [13:54:27]line [13:54:27]line [13:54:27]line [13:54:27]line [13:54:27]written 0, free lines is 3600 [13:54:27]MH_Cut [13:54:27]Write to MH i2c: D1 01 00 A9 B6 01 31 [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: D1 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: D1 01 00 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: D1 01 00 A9 B6 00 30 [13:54:27]Write to MH i2c: 01 00 00 AA B6 60 [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:28]*** Cut start [13:54:28]*** Partial cut [13:54:28]*** CUTSNS_PIN = 1 [13:54:28]*** CUTSNS_PIN = 0 [13:54:28]*** Brake cut motor [13:54:28]Read from MH i2c: 01 [13:54:28]MH_I2C_Read... [13:54:28]*** Stop cut motor [13:54:28]*** Cut end [13:54:28]Read from MH i2c: 01 07 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: 01 07 00 AA B6 00 00 00 00 00 FF 0F 75 [13:54:28]process_action print_text done [13:54:28]requested_data is exist [13:54:28]produce_requested_data [13:54:28]requested_item fm.sn is exist - process it [13:54:28]wFMCommunicate request_size=4 [13:54:28]MH_SAM_APDU [13:54:28]CAPDU: 80 11 00 00 [13:54:28]Write to MH i2c: E2 08 00 AB B6 80 11 00 00 00 00 00 00 DB [13:54:28]Write i2c OK [13:54:28]MH_I2C_Read... [13:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:28]Read from MH i2c: E2 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 17 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 17 00 AB B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 37 [13:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:54:28]wFMCommunicate OK [13:54:28]requested_item fd.num is exist - process it [13:54:28]SAM_PROTO_GetFieldsCounters [13:54:28]wFMCommunicate request_size=4 [13:54:28]MH_SAM_APDU [13:54:28]CAPDU: 80 13 00 00 [13:54:28]Write to MH i2c: E2 08 00 AC B6 80 13 00 00 00 00 00 00 DE [13:54:28]Write i2c OK [13:54:28]MH_I2C_Read... [13:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:28]Read from MH i2c: E2 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 62 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 62 00 AC B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [13:54:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:28]wFMCommunicate OK [13:54:28]SAM_PROTO_GetFieldsCounters done [13:54:28]requested_item shift.num is exist - process it [13:54:28]requested_item shift.opened is exist - process it [13:54:28]req_shift_opened [13:54:28]FM_GetShiftState [13:54:28]SAM_PROTO_GetShiftState [13:54:28]wFMCommunicate request_size=4 [13:54:28]MH_SAM_APDU [13:54:28]CAPDU: 80 13 01 00 [13:54:28]Write to MH i2c: E2 08 00 AD B6 80 13 01 00 00 00 00 00 E0 [13:54:28]Write i2c OK [13:54:28]MH_I2C_Read... [13:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:28]Read from MH i2c: E2 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 0E 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 0E 00 AD B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 19 [13:54:28]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:54:28]wFMCommunicate OK [13:54:28]SAM_PROTO_GetShiftState done [13:54:28]FM_GetShiftState done [13:54:28]req_shift_opened done [13:54:28]requested_item shift.open_date is exist - process it [13:54:28]req_shift_open_date [13:54:28]req_shift_open_date done [13:54:28]produce_requested_data done [13:54:28]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:54:28]process_action_free print_text [13:54:28]json_value_free [13:54:28]json_value_free done [13:54:28]process_json_proto returns [13:54:28]Send response to host [13:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:54:28]free response buf [13:54:28]execute_script done [13:54:28]execute_script returns [13:54:28]free content buf [13:54:28]Sock 9.Close socket [13:54:28]Sock 9.Thread stoped [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:04]accept exits with 7 [13:58:04]New connection [13:58:04]New thread 3066858852 created [13:58:04]Thread 3067002212 joined [13:58:04]Waiting for new connection... [13:58:04] Sock 7.Parse request [13:58:04]Sock 7.Check first char [13:58:04]Sock 7.First char is OK [13:58:04]request: POST /json_proto HTTP/1.0 [13:58:04]Method: POST [13:58:04]URL: /json_proto [13:58:04]Method is POST - this is cgi request [13:58:04]url: /json_proto [13:58:04]query_string will be loaded in cgi processing [13:58:04]execute_cgi json_proto POST (null) [13:58:04]execute_cgi path=json_proto method=POST [13:58:04]POST find Content-Length [13:58:04]Host: 172.17.49.132:8080 [13:58:04]Content-Length: 1251 [13:58:04]Content-Type: application/json [13:58:04] [13:58:04]POST finish read [13:58:04]Found Content-Length = 1251 [13:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874858\u000A01.08.2024 13:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914934;935;936;937;938;939;940;941;942;943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:04]execute_script... [13:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874858\u000A01.08.2024 13:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914934;935;936;937;938;939;940;941;942;943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:04]POST & json_proto [13:58:04]process_json_proto [13:58:04]json parsed OK: [13:58:04]protocol is kg_v1.0 [13:58:04]action value=print_text [13:58:04]process_action print_text [13:58:04]cmd_print_text [13:58:04]ExternCall_PrintAddStr [13:58:04]wPrintStart [13:58:04]Write to MH i2c: 01 00 00 AE B6 64 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 07 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 07 00 AE B6 00 00 00 00 00 FF 0F 79 [13:58:04]RasterBufferAndPrint [13:58:04]line *****ТОВАРНЫЙ ЧЕК***** [13:58:04]line АЗС 125 [13:58:04]line Партнер нефть [13:58:04]line 02508201610067 [13:58:04]line Кассир : Мадаминова Б. [13:58:04]line Счет N : (1)874858 [13:58:04]line 01.08.2024 13:19 [13:58:04]line ПРОДАЖА [13:58:04]line ТРК (МРК, ГНК): 52 [13:58:04]line Вид ГСМ : 2710124130 [13:58:04]line Аи-92-К-5 [13:58:04]line 100.000 x 67.80 [13:58:04]line ИТОГ: 6780.00 [13:58:04]line Тип оплаты: Талоны: Топливные Талоны [13:58:04]line 3914934;935;936;937;938;939;940;941;942;943 [13:58:04]line ______________________ [13:58:04]line (подпись) [13:58:04]written 0, free lines is 4095 [13:58:04]Write to MH i2c: 01 00 00 C3 B6 79 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 07 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: 01 07 00 C3 B6 00 00 00 00 00 0C 0E 9A [13:58:04]RasterBufferAndPrint [13:58:04]line [13:58:04]line [13:58:04]line [13:58:04]line [13:58:04]line [13:58:04]written 0, free lines is 3600 [13:58:04]MH_Cut [13:58:04]Write to MH i2c: D1 01 00 CA B6 01 52 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: D1 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: D1 01 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: D1 01 00 CA B6 00 51 [13:58:04]Write to MH i2c: 01 00 00 CB B6 81 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:05]*** Cut start [13:58:05]*** Partial cut [13:58:05]*** CUTSNS_PIN = 1 [13:58:05]*** CUTSNS_PIN = 0 [13:58:05]*** Brake cut motor [13:58:05]Read from MH i2c: 01 [13:58:05]MH_I2C_Read... [13:58:05]*** Stop cut motor [13:58:05]*** Cut end [13:58:05]Read from MH i2c: 01 07 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: 01 07 00 CB B6 00 00 00 00 00 FF 0F 96 [13:58:05]process_action print_text done [13:58:05]requested_data is exist [13:58:05]produce_requested_data [13:58:05]requested_item fm.sn is exist - process it [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 11 00 00 [13:58:05]Write to MH i2c: E2 08 00 CC B6 80 11 00 00 00 00 00 00 FC [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 17 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 17 00 CC B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 58 [13:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [13:58:05]wFMCommunicate OK [13:58:05]requested_item fd.num is exist - process it [13:58:05]SAM_PROTO_GetFieldsCounters [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 00 00 [13:58:05]Write to MH i2c: E2 08 00 CD B6 80 13 00 00 00 00 00 00 FF [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 62 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 62 00 CD B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [13:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:05]wFMCommunicate OK [13:58:05]SAM_PROTO_GetFieldsCounters done [13:58:05]requested_item shift.num is exist - process it [13:58:05]requested_item shift.opened is exist - process it [13:58:05]req_shift_opened [13:58:05]FM_GetShiftState [13:58:05]SAM_PROTO_GetShiftState [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 01 00 [13:58:05]Write to MH i2c: E2 08 00 CE B6 80 13 01 00 00 00 00 00 01 [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 0E 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 0E 00 CE B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 3A [13:58:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [13:58:06]wFMCommunicate OK [13:58:06]SAM_PROTO_GetShiftState done [13:58:06]FM_GetShiftState done [13:58:06]req_shift_opened done [13:58:06]requested_item shift.open_date is exist - process it [13:58:06]req_shift_open_date [13:58:06]req_shift_open_date done [13:58:06]produce_requested_data done [13:58:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [13:58:06]process_action_free print_text [13:58:06]json_value_free [13:58:06]json_value_free done [13:58:06]process_json_proto returns [13:58:06]Send response to host [13:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [13:58:06]free response buf [13:58:06]execute_script done [13:58:06]execute_script returns [13:58:06]free content buf [13:58:06]Sock 7.Close socket [13:58:06]Sock 7.Thread stoped [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:12]accept exits with 9 [14:00:12]New connection [14:00:12]New thread 3067002212 created [14:00:12]Thread 3066858852 joined [14:00:12]Waiting for new connection... [14:00:12] Sock 9.Parse request [14:00:12]Sock 9.Check first char [14:00:12]Sock 9.First char is OK [14:00:12]request: POST /json_proto HTTP/1.0 [14:00:12]Method: POST [14:00:12]URL: /json_proto [14:00:12]Method is POST - this is cgi request [14:00:12]url: /json_proto [14:00:12]query_string will be loaded in cgi processing [14:00:12]execute_cgi json_proto POST (null) [14:00:12]execute_cgi path=json_proto method=POST [14:00:12]POST find Content-Length [14:00:12]Host: 172.17.49.132:8080 [14:00:12]Content-Length: 1251 [14:00:12]Content-Type: application/json [14:00:12] [14:00:12]POST finish read [14:00:12]Found Content-Length = 1251 [14:00:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874860\u000A01.08.2024 13:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914924;925;926;927;928;929;930;931;932;933\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:12]execute_script... [14:00:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874860\u000A01.08.2024 13:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914924;925;926;927;928;929;930;931;932;933\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:12]POST & json_proto [14:00:12]process_json_proto [14:00:12]json parsed OK: [14:00:12]protocol is kg_v1.0 [14:00:12]action value=print_text [14:00:12]process_action print_text [14:00:12]cmd_print_text [14:00:12]ExternCall_PrintAddStr [14:00:12]wPrintStart [14:00:12]Write to MH i2c: 01 00 00 CF B6 85 [14:00:12]Write i2c OK [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 [14:00:12]MH_I2C_Read... [14:00:12]Read from MH i2c: 01 07 00 CF B6 00 00 00 00 00 FF 0F 9A [14:00:12]RasterBufferAndPrint [14:00:12]line *****ТОВАРНЫЙ ЧЕК***** [14:00:12]line АЗС 125 [14:00:12]line Партнер нефть [14:00:12]line 02508201610067 [14:00:12]line Кассир : Мадаминова Б. [14:00:12]line Счет N : (1)874860 [14:00:12]line 01.08.2024 13:21 [14:00:12]line ПРОДАЖА [14:00:12]line ТРК (МРК, ГНК): 62 [14:00:12]line Вид ГСМ : 2710124130 [14:00:12]line Аи-92-К-5 [14:00:12]line 100.000 x 67.80 [14:00:12]line ИТОГ: 6780.00 [14:00:12]line Тип оплаты: Талоны: Топливные Талоны [14:00:12]line 3914924;925;926;927;928;929;930;931;932;933 [14:00:12]line ______________________ [14:00:12]line (подпись) [14:00:12]written 0, free lines is 4095 [14:00:13]Write to MH i2c: 01 00 00 E4 B6 9A [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: 01 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: 01 07 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: 01 07 00 E4 B6 00 00 00 00 00 0F 0E BE [14:00:13]RasterBufferAndPrint [14:00:13]line [14:00:13]line [14:00:13]line [14:00:13]line [14:00:13]line [14:00:13]written 0, free lines is 3601 [14:00:13]MH_Cut [14:00:13]Write to MH i2c: D1 01 00 EB B6 01 73 [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: D1 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: D1 01 00 [14:00:13]MH_I2C_Read... [14:00:13]Read from MH i2c: D1 01 00 EB B6 00 72 [14:00:13]Write to MH i2c: 01 00 00 EC B6 A2 [14:00:13]Write i2c OK [14:00:13]MH_I2C_Read... [14:00:13]*** Cut start [14:00:13]*** Partial cut [14:00:13]*** CUTSNS_PIN = 1 [14:00:13]*** CUTSNS_PIN = 0 [14:00:13]*** Brake cut motor [14:00:14]Read from MH i2c: 01 [14:00:14]MH_I2C_Read... [14:00:14]*** Stop cut motor [14:00:14]*** Cut end [14:00:14]Read from MH i2c: 01 07 00 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: 01 07 00 EC B6 00 00 00 00 00 FF 0F B7 [14:00:14]process_action print_text done [14:00:14]requested_data is exist [14:00:14]produce_requested_data [14:00:14]requested_item fm.sn is exist - process it [14:00:14]wFMCommunicate request_size=4 [14:00:14]MH_SAM_APDU [14:00:14]CAPDU: 80 11 00 00 [14:00:14]Write to MH i2c: E2 08 00 ED B6 80 11 00 00 00 00 00 00 1D [14:00:14]Write i2c OK [14:00:14]MH_I2C_Read... [14:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:14]Read from MH i2c: E2 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: E2 17 00 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: E2 17 00 ED B6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 79 [14:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:00:14]wFMCommunicate OK [14:00:14]requested_item fd.num is exist - process it [14:00:14]SAM_PROTO_GetFieldsCounters [14:00:14]wFMCommunicate request_size=4 [14:00:14]MH_SAM_APDU [14:00:14]CAPDU: 80 13 00 00 [14:00:14]Write to MH i2c: E2 08 00 EE B6 80 13 00 00 00 00 00 00 20 [14:00:14]Write i2c OK [14:00:14]MH_I2C_Read... [14:00:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:14]Read from MH i2c: E2 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: E2 62 00 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: E2 62 00 EE B6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14:00:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1C 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:14]wFMCommunicate OK [14:00:14]SAM_PROTO_GetFieldsCounters done [14:00:14]requested_item shift.num is exist - process it [14:00:14]requested_item shift.opened is exist - process it [14:00:14]req_shift_opened [14:00:14]FM_GetShiftState [14:00:14]SAM_PROTO_GetShiftState [14:00:14]wFMCommunicate request_size=4 [14:00:14]MH_SAM_APDU [14:00:14]CAPDU: 80 13 01 00 [14:00:14]Write to MH i2c: E2 08 00 EF B6 80 13 01 00 00 00 00 00 22 [14:00:14]Write i2c OK [14:00:14]MH_I2C_Read... [14:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:14]Read from MH i2c: E2 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: E2 0E 00 [14:00:14]MH_I2C_Read... [14:00:14]Read from MH i2c: E2 0E 00 EF B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 5B [14:00:14]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:00:14]wFMCommunicate OK [14:00:14]SAM_PROTO_GetShiftState done [14:00:14]FM_GetShiftState done [14:00:14]req_shift_opened done [14:00:14]requested_item shift.open_date is exist - process it [14:00:14]req_shift_open_date [14:00:14]req_shift_open_date done [14:00:14]produce_requested_data done [14:00:14]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:00:14]process_action_free print_text [14:00:14]json_value_free [14:00:14]json_value_free done [14:00:14]process_json_proto returns [14:00:14]Send response to host [14:00:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69916,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:00:14]free response buf [14:00:14]execute_script done [14:00:14]execute_script returns [14:00:14]free content buf [14:00:14]Sock 9.Close socket [14:00:14]Sock 9.Thread stoped [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 7 [14:00:31]New connection [14:00:31]New thread 3066858852 created [14:00:31]Thread 3067002212 joined [14:00:31]Waiting for new connection... [14:00:31] Sock 7.Parse request [14:00:31]Sock 7.Check first char [14:00:31]Sock 7.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.49.132:8080 [14:00:31]Content-Length: 1763 [14:00:31]Content-Type: application/json [14:00:31] [14:00:31]POST finish read [14:00:31]Found Content-Length = 1763 [14:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137138", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "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 : (3)137138", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "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 F0 B6 95 [14:00:31]OFD Sender: No OFD packet to send [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 F0 B6 00 12 95 AB 66 E7 4B C0 64 AC [14:00:31]GetLastDocTimeStamp 1722520237 [14:00:31]current date 1722520850 [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 F1 B6 80 13 01 00 00 00 00 00 24 [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 F1 B6 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 5D [14:00:31]RAPDU: 09 00 01 44 D9 AA 66 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 1722472772 [14:00:31]opened+sec_in_day 1722559172 [14:00:31]quantity*price = 17500 [14:00:31]sum+1 = 17501 [14:00:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329999 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.40 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 80 01.08.2024 14:00 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69917 ФПД: 18322425493732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140050&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69917&fm=18322425493732&tin=02508201610067®Number=0000000000092638&sum=39000 0 [14:00:33]StoreToDocumentArchive [14:00:33]shift 433 fd 69917 [14:00:33]save to /storage/0433/doc_00069917 [14:00:33]save last doc name /storage/0433/doc_00069917 to /storage/kkm_last_doc_name [14:00:33]save OK [14:00:33]Clear old archive folders... [14:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=732 [14:00:33]tlvbuf is 011A45B0 [14:00:33]SAM_PROTO_ClearQueue [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 09 00 00 [14:00:33]Write to MH i2c: E2 08 00 FE B6 80 09 00 00 00 00 00 00 26 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 FE B6 00 90 00 28 [14:00:33]RAPDU: 90 00 [14:00:33]wFMCommunicate OK [14:00:33]SAM_PROTO_ClearQueue done [14:00:33]KKMCreateOFDPacket [14:00:33]OFDProtocolAddRootSTLVToBuf [14:00:33]FM_MakeSignedData [14:00:33]FM_MakeSignedData [14:00:33]SAM_PROTO_SignData [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 0D 01 02 [14:00:33]Write to MH i2c: E2 08 00 FF B6 80 0D 01 02 00 00 00 00 2E [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 FF B6 00 90 00 29 [14:00:33]RAPDU: 90 00 [14:00:33]wFMCommunicate OK [14:00:33]wFMCommunicate request_size=255 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 0D 02 02 FA 03 00 DC 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 [14:00:33]Write to MH i2c: E2 02 01 00 B7 80 0D 02 02 FA 00 03 00 DC 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 00 00 3B [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 00 B7 00 90 00 2B [14:00:33]RAPDU: 90 00 [14:00:33]wFMCommunicate OK [14:00:33]wFMCommunicate request_size=255 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 0D 02 02 FA 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 [14:00:33]Write to MH i2c: E2 02 01 01 B7 80 0D 02 02 FA 00 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 00 00 43 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 03 00 01 B7 00 90 00 2C [14:00:33]RAPDU: 90 00 [14:00:33]wFMCommunicate OK [14:00:33]wFMCommunicate request_size=241 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 0D 02 02 EC D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 58 98 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 12 95 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 11 01 00 35 04 06 00 10 AA 05 A9 B8 E4 [14:00:33]Write to MH i2c: E2 F4 00 02 B7 80 0D 02 02 EC 00 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 58 98 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 12 95 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 11 01 00 35 04 06 00 10 AA 05 A9 B8 E4 00 00 D6 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:34]Read from MH i2c: E2 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 03 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 03 00 02 B7 00 90 00 2D [14:00:34]RAPDU: 90 00 [14:00:34]wFMCommunicate OK [14:00:34]wFMCommunicate request_size=4 [14:00:34]MH_SAM_APDU [14:00:34]CAPDU: 80 0D 03 02 [14:00:34]Write to MH i2c: E2 08 00 03 B7 80 0D 03 02 00 00 00 00 35 [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:34]Read from MH i2c: E2 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 0B 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 0B 00 03 B7 00 5B 45 2B 09 16 1F 8A D2 90 00 9B [14:00:34]RAPDU: 5B 45 2B 09 16 1F 8A D2 90 00 [14:00:34]wFMCommunicate OK [14:00:34]SAM_PROTO_SignData done [14:00:34]FM_MakeSignedData done [14:00:34]CreateOFDProtocolMessage [14:00:34]wFMCommunicate request_size=4 [14:00:34]MH_SAM_APDU [14:00:34]CAPDU: 80 11 00 00 [14:00:34]Write to MH i2c: E2 08 00 04 B7 80 11 00 00 00 00 00 00 35 [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:34]Read from MH i2c: E2 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 17 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: E2 17 00 04 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 91 [14:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:00:34]wFMCommunicate OK [14:00:34]CreateOFDProtocolMessage done [14:00:34]OFDSenderStorePacket 69917 [14:00:34]StoreOFDPacket docnum=69917 [14:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 F0 02 00 00 F0 B8 E8 02 B0 65 5A 03 01 00 03 00 DC 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 58 98 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 12 95 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 11 01 00 35 04 06 00 10 AA 05 A9 B8 E4 5B 45 2B 09 16 1F 8A D2 [14:00:34]CheckFolder [14:00:34]dirname=/storage/ofd_packets [14:00:34]CheckFolder done [14:00:34]ProducePacketName [14:00:34]name=ofd_packets/00069917 [14:00:34]NVStorageSaveData ofd_packets/00069917 [14:00:34]File name is /storage/ofd_packets/00069917 [14:00:34]Write 782 bytes [14:00:34]NVStorageSaveData done [14:00:34]OFDSenderStorePacket done [14:00:34]KKMCreateOFDPacket done [14:00:34]NVStorageSaveData kkm_last_timestamp [14:00:34]File name is /storage/kkm_last_timestamp [14:00:34]Write 4 bytes [14:00:34]NVStorageSaveData done [14:00:34]ExternCall_PrintAddStr [14:00:34]wPrintStart [14:00:34]Write to MH i2c: 01 00 00 05 B7 BC [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 07 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: 01 07 00 05 B7 00 00 00 00 00 FF 0F D1 [14:00:34]RasterBufferAndPrint [14:00:34]line Счет N : (3)137138 [14:00:34]line ИНН: 02508201610067 [14:00:34]line Контрольно-Кассовый Чек [14:00:34]line ПРОДАЖА [14:00:34]line Товар: 4607084351378 [14:00:34]line Бисквит Чоко пай 6шт [14:00:34]line 1.000 * 175.00 [14:00:34]line = 175.00 [14:00:34]line НДС 12% НСП 1% [14:00:34]line > о реализуемом товаре [14:00:34]line Товар: 4870002329999 [14:00:34]line Напиток Lipton IceTea 1л лимон Regular [14:00:34]line 1.000 * 130.00 [14:00:34]line = 130.00 [14:00:34]line НДС 12% НСП 1% [14:00:34]line > о реализуемом товаре [14:00:34]line Товар: 4700000310043 [14:00:34]line Вода Жалалабат 27 1л [14:00:34]line 1.000 * 60.00 [14:00:34]line = 60.00 [14:00:34]line НДС 12% НСП 1% [14:00:34]line > о реализуемом товаре [14:00:34]line Товар: 2000031750019 [14:00:34]line Пакет Партнер Нефть [14:00:34]line 1.000 * 4.00 [14:00:34]line = 4.00 [14:00:34]line НДС 12% НСП 1% [14:00:34]line > о реализуемом товаре [14:00:34]line Товар: 2000053020015 [14:00:34]line Бумажные стаканы 250мл 1шт [14:00:34]line 3.000 * 7.00 [14:00:34]line = 21.00 [14:00:34]line НДС 12% НСП 1% [14:00:34]line > о реализуемом товаре [14:00:34]line ИТОГО: 390.00 [14:00:34]line НСП 1% : 3.45 [14:00:34]line НДС 12% : 41.40 [14:00:34]line Наличными: 390.00 [14:00:34]line Безнал.: 0.00 [14:00:34]line Место: АЗС № 125 "Партнер Нефть" [14:00:34]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:00:34]line СНО: Общий режим [14:00:34]line Чек 80 01.08.2024 14:00 [14:00:34]line Смена: 433 ФФД: 1.0 [14:00:34]line ЗНМ: 0300000049 [14:00:34]line РНМ: 0000000000092638 [14:00:34]line Версия ККМ: 001 [14:00:34]line ФМ: 0000000000874949 [14:00:34]line ФД: 69917 [14:00:34]line ФПД: 18322425493732 [14:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140050&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69917&fm=18322425493732&tin=02508201610067®Number=0000000000092638&sum=39000 [14:00:34]line 0 [14:00:34]written 0, free lines is 4095 [14:00:34]OFD Sender: Processing packet 69917 [packets to send 19, broken 18] [14:00:34]ProducePacketName [14:00:34]name=ofd_packets/00069917 [14:00:34]OFD Sender: To server: pG, [14:00:34]CommunicateWithHost lk.salyk.kg:30040 [14:00:34]ConnectInit lk.salyk.kg [14:00:34]Connected sock=11 [14: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 34 39 34 39 F0 02 00 00 F0 B8 E8 02 B0 65 5A 03 01 00 03 00 DC 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 10 00 00 00 00 07 04 06 00 58 98 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 12 95 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1D 11 01 00 35 04 06 00 10 AA 05 A9 B8 E4 5B 45 2B 09 16 1F 8A D2 [14:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 41 03 47 00 B7 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 34 39 34 39 10 04 04 00 1D 11 01 00 F4 03 04 00 74 3B AB 66 B6 04 01 00 00 5E 1D 78 59 5B 47 21 D6 [14:00:34]CommunicateWithHost err = 0 [14:00:34]CheckOFDResponse [14:00:34]1017 (14) - 77093643461234 [14:00:34]1041 (16) - 0000000000874949 [14:00:34]1040 (4) - 69917 [14:00:34]1012 (4) - 01.08.2024 07:38 [14:00:34]1206 (1) - 0 [14:00:34]OFD Sender: Remove packet 69917 [14:00:34]ProducePacketName [14:00:34]name=ofd_packets/00069917 [14:00:34]NVStorageDeleteData [14:00:35]Write to MH i2c: 01 00 00 47 B7 FE [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: 01 [14:00:35]MH_I2C_Read... [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 47 B7 00 00 00 00 00 EE 0B FE [14:00:35]RasterBufferAndPrint [14:00:35]line [14:00:35]line [14:00:35]line [14:00:35]line [14:00:35]line [14:00:35]written 0, free lines is 3067 [14:00:35]MH_Cut [14:00:35]Write to MH i2c: D1 01 00 4E B7 01 D7 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: D1 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: D1 01 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: D1 01 00 4E B7 00 D6 [14:00:35]Write to MH i2c: 01 00 00 4F B7 06 [14:00:35]Write i2c OK [14:00:35]MH_I2C_Read... [14:00:35]OFD Sender: No OFD packet to send [14:00:36]*** Cut start [14:00:36]*** Partial cut [14:00:36]*** CUTSNS_PIN = 1 [14:00:36]*** CUTSNS_PIN = 0 [14:00:36]*** Brake cut motor [14:00:36]Read from MH i2c: 01 [14:00:36]MH_I2C_Read... [14:00:36]*** Stop cut motor [14:00:36]*** Cut end [14:00:36]Read from MH i2c: 01 07 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 4F B7 00 00 00 00 00 FF 0F 1B [14:00:36]process_action close_receipt done [14:00:36]requested_data is exist [14:00:36]produce_requested_data [14:00:36]requested_item fm.sn is exist - process it [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 11 00 00 [14:00:36]Write to MH i2c: E2 08 00 50 B7 80 11 00 00 00 00 00 00 81 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 17 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 17 00 50 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DD [14:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:00:36]wFMCommunicate OK [14:00:36]requested_item fd.num is exist - process it [14:00:36]SAM_PROTO_GetFieldsCounters [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 13 00 00 [14:00:36]Write to MH i2c: E2 08 00 51 B7 80 13 00 00 00 00 00 00 84 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 62 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 62 00 51 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1D 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [14: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1D 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:36]wFMCommunicate OK [14:00:36]SAM_PROTO_GetFieldsCounters done [14:00:36]requested_item shift.num is exist - process it [14:00:36]requested_item shift.opened is exist - process it [14:00:36]req_shift_opened [14:00:36]FM_GetShiftState [14:00:36]SAM_PROTO_GetShiftState [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 13 01 00 [14:00:36]Write to MH i2c: E2 08 00 52 B7 80 13 01 00 00 00 00 00 86 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 0E 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 0E 00 52 B7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 BF [14:00:36]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:00:36]wFMCommunicate OK [14:00:36]SAM_PROTO_GetShiftState done [14:00:36]FM_GetShiftState done [14:00:36]req_shift_opened done [14:00:36]requested_item shift.open_date is exist - process it [14:00:36]req_shift_open_date [14:00:36]req_shift_open_date done [14:00:36]produce_requested_data done [14:00:36]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69917,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:00:36]process_action_free close_receipt [14:00:36]json_value_free [14:00:36]json_value_free done [14:00:36]process_json_proto returns [14:00:36]Send response to host [14:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69917,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:00:36]free response buf [14:00:36]execute_script done [14:00:36]execute_script returns [14:00:36]free content buf [14:00:36]Sock 7.Close socket [14:00:36]Sock 7.Thread stoped [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:17]accept exits with 9 [14:05:17]New connection [14:05:17]New thread 3067002212 created [14:05:17]Thread 3066858852 joined [14:05:17]Waiting for new connection... [14:05:17] Sock 9.Parse request [14:05:17]Sock 9.Check first char [14:05:17]Sock 9.First char is OK [14:05:17]request: POST /json_proto HTTP/1.0 [14:05:17]Method: POST [14:05:17]URL: /json_proto [14:05:17]Method is POST - this is cgi request [14:05:17]url: /json_proto [14:05:17]query_string will be loaded in cgi processing [14:05:17]execute_cgi json_proto POST (null) [14:05:17]execute_cgi path=json_proto method=POST [14:05:17]POST find Content-Length [14:05:17]Host: 172.17.49.132:8080 [14:05:17]Content-Length: 678 [14:05:17]Content-Type: application/json [14:05:17] [14:05:17]POST finish read [14:05:17]Found Content-Length = 678 [14:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:17]execute_script... [14:05: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)874872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 1", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 26.600, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:17]POST & json_proto [14:05:17]process_json_proto [14:05:17]json parsed OK: [14:05:17]protocol is kg_v1.0 [14:05:17]action value=close_receipt [14:05:17]process_action close_receipt [14:05:17]cmd_close_receipt [14:05:17]MH_GetDate [14:05:17]Write to MH i2c: F0 00 00 53 B7 F9 [14:05:17]Write i2c OK [14:05:17]MH_I2C_Read... [14:05:17]Read from MH i2c: F0 [14:05:17]MH_I2C_Read... [14:05:17]Read from MH i2c: F0 09 00 [14:05:17]MH_I2C_Read... [14:05:17]Read from MH i2c: F0 09 00 53 B7 00 30 96 AB 66 E7 4B C0 64 2F [14:05:17]GetLastDocTimeStamp 1722520850 [14:05:17]current date 1722521136 [14:05:17]FM_GetShiftState [14:05:17]SAM_PROTO_GetShiftState [14:05:17]wFMCommunicate request_size=4 [14:05:17]MH_SAM_APDU [14:05:17]CAPDU: 80 13 01 00 [14:05:17]Write to MH i2c: E2 08 00 54 B7 80 13 01 00 00 00 00 00 88 [14:05:17]Write i2c OK [14:05:17]MH_I2C_Read... [14:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:17]Read from MH i2c: E2 [14:05:17]MH_I2C_Read... [14:05:17]Read from MH i2c: E2 0E 00 [14:05:17]MH_I2C_Read... [14:05:17]Read from MH i2c: E2 0E 00 54 B7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 C1 [14:05:17]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:05:17]wFMCommunicate OK [14:05:17]SAM_PROTO_GetShiftState done [14:05:17]FM_GetShiftState done [14:05:17]opened in 1722472772 [14:05:17]opened+sec_in_day 1722559172 [14:05:17]quantity*price = 200032 [14:05:17]sum+1 = 200033 [14:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 81 01.08.2024 14:05 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69918 ФПД: 254896733537257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140536&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69918&fm=254896733537257&tin=02508201610067®Number=0000000000092638&sum=200000 [14:05:19]StoreToDocumentArchive [14:05:19]shift 433 fd 69918 [14:05:19]save to /storage/0433/doc_00069918 [14:05:19]save last doc name /storage/0433/doc_00069918 to /storage/kkm_last_doc_name [14:05:19]save OK [14:05:19]Clear old archive folders... [14:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:19]tlvbuf is 014D1A20 [14:05:19]SAM_PROTO_ClearQueue [14:05:19]wFMCommunicate request_size=4 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 09 00 00 [14:05:19]Write to MH i2c: E2 08 00 61 B7 80 09 00 00 00 00 00 00 8A [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 61 B7 00 90 00 8C [14:05:19]RAPDU: 90 00 [14:05:19]wFMCommunicate OK [14:05:19]SAM_PROTO_ClearQueue done [14:05:19]KKMCreateOFDPacket [14:05:19]OFDProtocolAddRootSTLVToBuf [14:05:19]FM_MakeSignedData [14:05:19]FM_MakeSignedData [14:05:19]SAM_PROTO_SignData [14:05:19]wFMCommunicate request_size=4 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 0D 01 02 [14:05:19]Write to MH i2c: E2 08 00 62 B7 80 0D 01 02 00 00 00 00 92 [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 62 B7 00 90 00 8D [14:05:19]RAPDU: 90 00 [14:05:19]wFMCommunicate OK [14:05:19]wFMCommunicate request_size=255 [14:05:19]MH_SAM_APDU [14:05: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 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 30 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 11 01 00 35 04 06 00 E7 D3 C5 41 [14:05:19]Write to MH i2c: E2 02 01 63 B7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 30 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 11 01 00 35 04 06 00 E7 D3 C5 41 00 00 DD [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 63 B7 00 90 00 8E [14:05:19]RAPDU: 90 00 [14:05:19]wFMCommunicate OK [14:05:19]wFMCommunicate request_size=7 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 0D 02 02 02 C3 E9 [14:05:19]Write to MH i2c: E2 0A 00 64 B7 80 0D 02 02 02 00 C3 E9 00 00 45 [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 03 00 64 B7 00 90 00 8F [14:05:19]RAPDU: 90 00 [14:05:19]wFMCommunicate OK [14:05:19]wFMCommunicate request_size=4 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 0D 03 02 [14:05:19]Write to MH i2c: E2 08 00 65 B7 80 0D 03 02 00 00 00 00 97 [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 0B 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 0B 00 65 B7 00 E1 F1 D7 79 3C 72 D3 6D 90 00 A8 [14:05:19]RAPDU: E1 F1 D7 79 3C 72 D3 6D 90 00 [14:05:19]wFMCommunicate OK [14:05:19]SAM_PROTO_SignData done [14:05:19]FM_MakeSignedData done [14:05:19]CreateOFDProtocolMessage [14:05:19]wFMCommunicate request_size=4 [14:05:19]MH_SAM_APDU [14:05:19]CAPDU: 80 11 00 00 [14:05:19]Write to MH i2c: E2 08 00 66 B7 80 11 00 00 00 00 00 00 97 [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:19]Read from MH i2c: E2 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 17 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: E2 17 00 66 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 F3 [14:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:05:19]wFMCommunicate OK [14:05:19]CreateOFDProtocolMessage done [14:05:19]OFDSenderStorePacket 69918 [14:05:19]StoreOFDPacket docnum=69918 [14:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 23 3D 04 01 40 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 30 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 11 01 00 35 04 06 00 E7 D3 C5 41 C3 E9 E1 F1 D7 79 3C 72 D3 6D [14:05:19]CheckFolder [14:05:19]dirname=/storage/ofd_packets [14:05:19]CheckFolder done [14:05:19]ProducePacketName [14:05:19]name=ofd_packets/00069918 [14:05:19]NVStorageSaveData ofd_packets/00069918 [14:05:19]File name is /storage/ofd_packets/00069918 [14:05:19]Write 298 bytes [14:05:19]NVStorageSaveData done [14:05:19]OFDSenderStorePacket done [14:05:19]KKMCreateOFDPacket done [14:05:19]NVStorageSaveData kkm_last_timestamp [14:05:19]File name is /storage/kkm_last_timestamp [14:05:19]Write 4 bytes [14:05:19]NVStorageSaveData done [14:05:19]ExternCall_PrintAddStr [14:05:19]wPrintStart [14:05:19]Write to MH i2c: 01 00 00 67 B7 1E [14:05:19]Write i2c OK [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: 01 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: 01 07 00 [14:05:19]MH_I2C_Read... [14:05:19]Read from MH i2c: 01 07 00 67 B7 00 00 00 00 00 FF 0F 33 [14:05:19]RasterBufferAndPrint [14:05:19]line Счет N : (1)874872 [14:05:19]line ИНН: 02508201610067 [14:05:19]line Контрольно-Кассовый Чек [14:05:19]line ПРОДАЖА [14:05:19]line ТРК (МРК, ГНК) : 1 [14:05:19]line Товар: 2710194210 [14:05:19]line ДТ-К-5 [14:05:19]line 26.600 * 75.20 [14:05:19]line = 2000.32 [14:05:19]line НДС 12% НСП 1% [14:05:19]line > о реализуемом товаре [14:05:19]line ОКРУГЛЕНИЕ: -0.32 [14:05:19]line ИТОГО: 2000.00 [14:05:19]line Внесено: 2000.00 [14:05:19]line СДАЧА: 0.00 [14:05:19]line НСП 1% : 17.70 [14:05:19]line НДС 12% : 212.42 [14:05:19]line Наличными: 2000.00 [14:05:19]line Безнал.: 0.00 [14:05:19]line Место: АЗС № 125 "Партнер Нефть" [14:05:19]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:05:19]line СНО: Общий режим [14:05:19]line Чек 81 01.08.2024 14:05 [14:05:19]line Смена: 433 ФФД: 1.0 [14:05:19]line ЗНМ: 0300000049 [14:05:19]line РНМ: 0000000000092638 [14:05:19]line Версия ККМ: 001 [14:05:19]line ФМ: 0000000000874949 [14:05:19]line ФД: 69918 [14:05:19]line ФПД: 254896733537257 [14:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140536&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69918&fm=254896733537257&tin=02508201610067®Number=0000000000092638&sum=200000 [14:05:19]OFD Sender: Processing packet 69918 [packets to send 19, broken 18] [14:05:19]ProducePacketName [14:05:19]name=ofd_packets/00069918 [14:05:19]OFD Sender: To server: pG, [14:05:19]CommunicateWithHost lk.salyk.kg:30040 [14:05:19]ConnectInit lk.salyk.kg [14:05:19]written 0, free lines is 4095 [14:05:20]Connected sock=11 [14:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0C 01 00 00 23 3D 04 01 40 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 67 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 30 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 11 01 00 35 04 06 00 E7 D3 C5 41 C3 E9 E1 F1 D7 79 3C 72 D3 6D [14:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 28 87 47 00 3B 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1E 11 01 00 F4 03 04 00 91 3C AB 66 B6 04 01 00 00 92 30 1C 0F FA A0 23 AF [14:05:20]CommunicateWithHost err = 0 [14:05:20]CheckOFDResponse [14:05:20]1017 (14) - 77093643461234 [14:05:20]1041 (16) - 0000000000874949 [14:05:20]1040 (4) - 69918 [14:05:20]1012 (4) - 01.08.2024 07:43 [14:05:20]1206 (1) - 0 [14:05:20]OFD Sender: Remove packet 69918 [14:05:20]ProducePacketName [14:05:20]name=ofd_packets/00069918 [14:05:20]NVStorageDeleteData [14:05:20]Write to MH i2c: 01 00 00 92 B7 49 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: 01 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: 01 07 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: 01 07 00 92 B7 00 00 00 00 00 FF 0C 5B [14:05:20]RasterBufferAndPrint [14:05:20]line [14:05:20]line [14:05:20]line [14:05:20]line [14:05:20]line [14:05:20]written 0, free lines is 3333 [14:05:20]MH_Cut [14:05:20]Write to MH i2c: D1 01 00 99 B7 01 22 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: D1 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: D1 01 00 [14:05:20]MH_I2C_Read... [14:05:20]Read from MH i2c: D1 01 00 99 B7 00 21 [14:05:20]Write to MH i2c: 01 00 00 9A B7 51 [14:05:20]Write i2c OK [14:05:20]MH_I2C_Read... [14:05:20]OFD Sender: No OFD packet to send [14:05:21]*** Cut start [14:05:21]*** Partial cut [14:05:21]*** CUTSNS_PIN = 1 [14:05:21]*** CUTSNS_PIN = 0 [14:05:21]*** Brake cut motor [14:05:21]Read from MH i2c: 01 [14:05:21]MH_I2C_Read... [14:05:21]*** Stop cut motor [14:05:21]*** Cut end [14:05:21]Read from MH i2c: 01 07 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: 01 07 00 9A B7 00 00 00 00 00 FF 0F 66 [14:05:21]process_action close_receipt done [14:05:21]requested_data is exist [14:05:21]produce_requested_data [14:05:21]requested_item fm.sn is exist - process it [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 11 00 00 [14:05:21]Write to MH i2c: E2 08 00 9B B7 80 11 00 00 00 00 00 00 CC [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 17 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 17 00 9B B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 28 [14:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:05:21]wFMCommunicate OK [14:05:21]requested_item fd.num is exist - process it [14:05:21]SAM_PROTO_GetFieldsCounters [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 13 00 00 [14:05:21]Write to MH i2c: E2 08 00 9C B7 80 13 00 00 00 00 00 00 CF [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 62 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 62 00 9C B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1E 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1E 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:21]wFMCommunicate OK [14:05:21]SAM_PROTO_GetFieldsCounters done [14:05:21]requested_item shift.num is exist - process it [14:05:21]requested_item shift.opened is exist - process it [14:05:21]req_shift_opened [14:05:21]FM_GetShiftState [14:05:21]SAM_PROTO_GetShiftState [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 13 01 00 [14:05:21]Write to MH i2c: E2 08 00 9D B7 80 13 01 00 00 00 00 00 D1 [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0E 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0E 00 9D B7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 0A [14:05:21]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:05:21]wFMCommunicate OK [14:05:21]SAM_PROTO_GetShiftState done [14:05:21]FM_GetShiftState done [14:05:21]req_shift_opened done [14:05:21]requested_item shift.open_date is exist - process it [14:05:21]req_shift_open_date [14:05:21]req_shift_open_date done [14:05:21]produce_requested_data done [14:05:21]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69918,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:05:21]process_action_free close_receipt [14:05:21]json_value_free [14:05:21]json_value_free done [14:05:21]process_json_proto returns [14:05:21]Send response to host [14:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69918,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:05:21]free response buf [14:05:21]execute_script done [14:05:21]execute_script returns [14:05:21]free content buf [14:05:21]Sock 9.Close socket [14:05:21]Sock 9.Thread stoped [14:05:22]accept exits with 7 [14:05:22]New connection [14:05:22]New thread 3066858852 created [14:05:22]Thread 3067002212 joined [14:05:22]Waiting for new connection... [14:05:22] Sock 7.Parse request [14:05:22]Sock 7.Check first char [14:05:22]Sock 7.First char is OK [14:05:22]request: POST /json_proto HTTP/1.0 [14:05:22]Method: POST [14:05:22]URL: /json_proto [14:05:22]Method is POST - this is cgi request [14:05:22]url: /json_proto [14:05:22]query_string will be loaded in cgi processing [14:05:22]execute_cgi json_proto POST (null) [14:05:22]execute_cgi path=json_proto method=POST [14:05:22]POST find Content-Length [14:05:22]Host: 172.17.49.132:8080 [14:05:22]Content-Length: 771 [14:05:22]Content-Type: application/json [14:05:22] [14:05:22]POST finish read [14:05:22]Found Content-Length = 771 [14:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137139", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:22]execute_script... [14:05: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 : (3)137139", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:22]POST & json_proto [14:05:22]process_json_proto [14:05:22]json parsed OK: [14:05:22]protocol is kg_v1.0 [14:05:22]action value=close_receipt [14:05:22]process_action close_receipt [14:05:22]cmd_close_receipt [14:05:22]MH_GetDate [14:05:22]Write to MH i2c: F0 00 00 9E B7 44 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: F0 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: F0 09 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: F0 09 00 9E B7 00 35 96 AB 66 E7 4B C0 64 7F [14:05:22]GetLastDocTimeStamp 1722521136 [14:05:22]current date 1722521141 [14:05:22]FM_GetShiftState [14:05:22]SAM_PROTO_GetShiftState [14:05:22]wFMCommunicate request_size=4 [14:05:22]MH_SAM_APDU [14:05:22]CAPDU: 80 13 01 00 [14:05:22]Write to MH i2c: E2 08 00 9F B7 80 13 01 00 00 00 00 00 D3 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 0E 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 0E 00 9F B7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 0C [14:05:22]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:05:22]wFMCommunicate OK [14:05:22]SAM_PROTO_GetShiftState done [14:05:22]FM_GetShiftState done [14:05:22]opened in 1722472772 [14:05:22]opened+sec_in_day 1722559172 [14:05:22]quantity*price = 13000 [14:05:22]sum+1 = 13001 [14:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 82 01.08.2024 14:05 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874949 ФД: 69919 ФПД: 231742350380590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140541&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69919&fm=231742350380590&tin=02508201610067®Number=0000000000092638&sum=13000 0 [14:05:24]StoreToDocumentArchive [14:05:24]shift 433 fd 69919 [14:05:24]save to /storage/0433/doc_00069919 [14:05:24]save last doc name /storage/0433/doc_00069919 to /storage/kkm_last_doc_name [14:05:24]save OK [14:05:24]Clear old archive folders... [14:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=254 [14:05:24]tlvbuf is 0149A390 [14:05:24]SAM_PROTO_ClearQueue [14:05:24]wFMCommunicate request_size=4 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 09 00 00 [14:05:24]Write to MH i2c: E2 08 00 AC B7 80 09 00 00 00 00 00 00 D5 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 AC B7 00 90 00 D7 [14:05:24]RAPDU: 90 00 [14:05:24]wFMCommunicate OK [14:05:24]SAM_PROTO_ClearQueue done [14:05:24]KKMCreateOFDPacket [14:05:24]OFDProtocolAddRootSTLVToBuf [14:05:24]FM_MakeSignedData [14:05:24]FM_MakeSignedData [14:05:24]SAM_PROTO_SignData [14:05:24]wFMCommunicate request_size=4 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 0D 01 02 [14:05:24]Write to MH i2c: E2 08 00 AD B7 80 0D 01 02 00 00 00 00 DD [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 AD B7 00 90 00 D8 [14:05:24]RAPDU: 90 00 [14:05:24]wFMCommunicate OK [14:05:24]wFMCommunicate request_size=255 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 35 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 11 01 00 35 04 [14:05:24]Write to MH i2c: E2 02 01 AE B7 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 35 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 11 01 00 35 04 00 00 FE [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 AE B7 00 90 00 D9 [14:05:24]RAPDU: 90 00 [14:05:24]wFMCommunicate OK [14:05:24]wFMCommunicate request_size=13 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 0D 02 02 08 06 00 D2 C4 B8 79 4E 2E [14:05:24]Write to MH i2c: E2 10 00 AF B7 80 0D 02 02 08 00 06 00 D2 C4 B8 79 4E 2E 00 00 39 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 03 00 AF B7 00 90 00 DA [14:05:24]RAPDU: 90 00 [14:05:24]wFMCommunicate OK [14:05:24]wFMCommunicate request_size=4 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 0D 03 02 [14:05:24]Write to MH i2c: E2 08 00 B0 B7 80 0D 03 02 00 00 00 00 E2 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 0B 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 0B 00 B0 B7 00 63 5A 6B DC EB 15 6C 45 90 00 98 [14:05:24]RAPDU: 63 5A 6B DC EB 15 6C 45 90 00 [14:05:24]wFMCommunicate OK [14:05:24]SAM_PROTO_SignData done [14:05:24]FM_MakeSignedData done [14:05:24]CreateOFDProtocolMessage [14:05:24]wFMCommunicate request_size=4 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 11 00 00 [14:05:24]Write to MH i2c: E2 08 00 B1 B7 80 11 00 00 00 00 00 00 E2 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 17 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 17 00 B1 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 3E [14:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:05:24]wFMCommunicate OK [14:05:24]CreateOFDProtocolMessage done [14:05:24]OFDSenderStorePacket 69919 [14:05:24]StoreOFDPacket docnum=69919 [14:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 12 01 00 00 AC 17 0A 01 F0 2E 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 35 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 11 01 00 35 04 06 00 D2 C4 B8 79 4E 2E 63 5A 6B DC EB 15 6C 45 [14:05:24]CheckFolder [14:05:24]dirname=/storage/ofd_packets [14:05:24]CheckFolder done [14:05:24]ProducePacketName [14:05:24]name=ofd_packets/00069919 [14:05:24]NVStorageSaveData ofd_packets/00069919 [14:05:24]File name is /storage/ofd_packets/00069919 [14:05:24]Write 304 bytes [14:05:24]NVStorageSaveData done [14:05:24]OFDSenderStorePacket done [14:05:24]KKMCreateOFDPacket done [14:05:24]NVStorageSaveData kkm_last_timestamp [14:05:24]File name is /storage/kkm_last_timestamp [14:05:24]Write 4 bytes [14:05:24]NVStorageSaveData done [14:05:24]ExternCall_PrintAddStr [14:05:24]wPrintStart [14:05:24]Write to MH i2c: 01 00 00 B2 B7 69 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: 01 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: 01 07 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: 01 07 00 B2 B7 00 00 00 00 00 FF 0F 7E [14:05:24]RasterBufferAndPrint [14:05:24]line Счет N : (3)137139 [14:05:24]line ИНН: 02508201610067 [14:05:24]line Контрольно-Кассовый Чек [14:05:24]line ПРОДАЖА [14:05:24]line Товар: 48744546 [14:05:24]line LD Compact Silver [14:05:24]line 1.000 * 130.00 [14:05:24]line = 130.00 [14:05:24]line НДС 12% НСП 1% [14:05:24]line > о реализуемом товаре [14:05:24]line ИТОГО: 130.00 [14:05:24]line НСП 1% : 1.15 [14:05:24]line НДС 12% : 13.80 [14:05:24]line Наличными: 0.00 [14:05:24]line Безнал.: 130.00 [14:05:24]line Место: АЗС № 125 "Партнер Нефть" [14:05:24]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:05:24]line СНО: Общий режим [14:05:24]line Чек 82 01.08.2024 14:05 [14:05:24]line Смена: 433 ФФД: 1.0 [14:05:24]line ЗНМ: 0300000049 [14:05:24]line РНМ: 0000000000092638 [14:05:24]line Версия ККМ: 001 [14:05:24]line Платежная система: АКБ Кыргызстан [14:05:24]line ФМ: 0000000000874949 [14:05:24]line ФД: 69919 [14:05:24]line ФПД: 231742350380590 [14:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140541&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69919&fm=231742350380590&tin=02508201610067®Number=0000000000092638&sum=13000 [14:05:24]line 0 [14:05:24]written 0, free lines is 4095 [14:05:25]OFD Sender: Processing packet 69919 [packets to send 19, broken 18] [14:05:25]ProducePacketName [14:05:25]name=ofd_packets/00069919 [14:05:25]OFD Sender: To server: pG, [14:05:25]CommunicateWithHost lk.salyk.kg:30040 [14:05:25]ConnectInit lk.salyk.kg [14:05:25]Connected sock=10 [14:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 12 01 00 00 AC 17 0A 01 F0 2E 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 35 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 11 01 00 35 04 06 00 D2 C4 B8 79 4E 2E 63 5A 6B DC EB 15 6C 45 [14:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 CE 6B 47 00 42 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 1F 11 01 00 F4 03 04 00 96 3C AB 66 B6 04 01 00 00 30 2D 9B 60 17 15 2F 57 [14:05:25]CommunicateWithHost err = 0 [14:05:25]CheckOFDResponse [14:05:25]1017 (14) - 77093643461234 [14:05:25]1041 (16) - 0000000000874949 [14:05:25]1040 (4) - 69919 [14:05:25]1012 (4) - 01.08.2024 07:43 [14:05:25]1206 (1) - 0 [14:05:25]OFD Sender: Remove packet 69919 [14:05:25]ProducePacketName [14:05:25]name=ofd_packets/00069919 [14:05:25]NVStorageDeleteData [14:05:25]Write to MH i2c: 01 00 00 DC B7 93 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: 01 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: 01 07 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: 01 07 00 DC B7 00 00 00 00 00 49 0D F0 [14:05:25]RasterBufferAndPrint [14:05:25]line [14:05:25]line [14:05:25]line [14:05:25]line [14:05:25]line [14:05:25]written 0, free lines is 3411 [14:05:25]MH_Cut [14:05:25]Write to MH i2c: D1 01 00 E3 B7 01 6C [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: D1 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: D1 01 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: D1 01 00 E3 B7 00 6B [14:05:25]Write to MH i2c: 01 00 00 E4 B7 9B [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]OFD Sender: No OFD packet to send [14:05:26]*** Cut start [14:05:26]*** Partial cut [14:05:26]*** CUTSNS_PIN = 1 [14:05:26]*** CUTSNS_PIN = 0 [14:05:26]*** Brake cut motor [14:05:26]Read from MH i2c: 01 [14:05:26]MH_I2C_Read... [14:05:26]*** Stop cut motor [14:05:26]*** Cut end [14:05:26]Read from MH i2c: 01 07 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: 01 07 00 E4 B7 00 00 00 00 00 FF 0F B0 [14:05:26]process_action close_receipt done [14:05:26]requested_data is exist [14:05:26]produce_requested_data [14:05:26]requested_item fm.sn is exist - process it [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 11 00 00 [14:05:26]Write to MH i2c: E2 08 00 E5 B7 80 11 00 00 00 00 00 00 16 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 17 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 17 00 E5 B7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 72 [14:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:05:26]wFMCommunicate OK [14:05:26]requested_item fd.num is exist - process it [14:05:26]SAM_PROTO_GetFieldsCounters [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 13 00 00 [14:05:26]Write to MH i2c: E2 08 00 E6 B7 80 13 00 00 00 00 00 00 19 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 62 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 62 00 E6 B7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:26]wFMCommunicate OK [14:05:26]SAM_PROTO_GetFieldsCounters done [14:05:26]requested_item shift.num is exist - process it [14:05:26]requested_item shift.opened is exist - process it [14:05:26]req_shift_opened [14:05:26]FM_GetShiftState [14:05:26]SAM_PROTO_GetShiftState [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 13 01 00 [14:05:26]Write to MH i2c: E2 08 00 E7 B7 80 13 01 00 00 00 00 00 1B [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0E 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0E 00 E7 B7 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 54 [14:05:26]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:05:26]wFMCommunicate OK [14:05:26]SAM_PROTO_GetShiftState done [14:05:26]FM_GetShiftState done [14:05:26]req_shift_opened done [14:05:26]requested_item shift.open_date is exist - process it [14:05:26]req_shift_open_date [14:05:26]req_shift_open_date done [14:05:26]produce_requested_data done [14:05:26]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69919,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:05:26]process_action_free close_receipt [14:05:26]json_value_free [14:05:26]json_value_free done [14:05:26]process_json_proto returns [14:05:26]Send response to host [14:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69919,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:05:26]free response buf [14:05:26]execute_script done [14:05:26]execute_script returns [14:05:26]free content buf [14:05:26]Sock 7.Close socket [14:05:26]Sock 7.Thread stoped [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:18]accept exits with 9 [14:07:18]New connection [14:07:18]New thread 3067002212 created [14:07:18]Thread 3066858852 joined [14:07:18]Waiting for new connection... [14:07:18] Sock 9.Parse request [14:07:18]Sock 9.Check first char [14:07:18]Sock 9.First char is OK [14:07:18]request: POST /json_proto HTTP/1.0 [14:07:18]Method: POST [14:07:18]URL: /json_proto [14:07:18]Method is POST - this is cgi request [14:07:18]url: /json_proto [14:07:18]query_string will be loaded in cgi processing [14:07:18]execute_cgi json_proto POST (null) [14:07:18]execute_cgi path=json_proto method=POST [14:07:18]POST find Content-Length [14:07:18]Host: 172.17.49.132:8080 [14:07:18]Content-Length: 1251 [14:07:18]Content-Type: application/json [14:07:18] [14:07:18]POST finish read [14:07:18]Found Content-Length = 1251 [14:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874870\u000A01.08.2024 13:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914516;515;514;513;512;511;920;921;922;923\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:18]execute_script... [14:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874870\u000A01.08.2024 13:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914516;515;514;513;512;511;920;921;922;923\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:18]POST & json_proto [14:07:18]process_json_proto [14:07:18]json parsed OK: [14:07:18]protocol is kg_v1.0 [14:07:18]action value=print_text [14:07:18]process_action print_text [14:07:18]cmd_print_text [14:07:18]ExternCall_PrintAddStr [14:07:18]wPrintStart [14:07:18]Write to MH i2c: 01 00 00 E8 B7 9F [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 E8 B7 00 00 00 00 00 FF 0F B4 [14:07:18]RasterBufferAndPrint [14:07:18]line *****ТОВАРНЫЙ ЧЕК***** [14:07:18]line АЗС 125 [14:07:18]line Партнер нефть [14:07:18]line 02508201610067 [14:07:18]line Кассир : Мадаминова Б. [14:07:18]line Счет N : (1)874870 [14:07:18]line 01.08.2024 13:28 [14:07:18]line ПРОДАЖА [14:07:18]line ТРК (МРК, ГНК): 52 [14:07:18]line Вид ГСМ : 2710124130 [14:07:18]line Аи-92-К-5 [14:07:18]line 100.000 x 67.80 [14:07:18]line ИТОГ: 6780.00 [14:07:18]line Тип оплаты: Талоны: Топливные Талоны [14:07:18]line 3914516;515;514;513;512;511;920;921;922;923 [14:07:18]line ______________________ [14:07:18]line (подпись) [14:07:18]written 0, free lines is 4095 [14:07:18]Write to MH i2c: 01 00 00 FD B7 B4 [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 FD B7 00 00 00 00 00 09 0E D2 [14:07:18]RasterBufferAndPrint [14:07:18]line [14:07:18]line [14:07:18]line [14:07:18]line [14:07:18]line [14:07:18]written 0, free lines is 3595 [14:07:18]MH_Cut [14:07:18]Write to MH i2c: D1 01 00 04 B8 01 8E [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: D1 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: D1 01 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: D1 01 00 04 B8 00 8D [14:07:18]Write to MH i2c: 01 00 00 05 B8 BD [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:19]*** Cut start [14:07:19]*** Partial cut [14:07:19]*** CUTSNS_PIN = 1 [14:07:19]*** CUTSNS_PIN = 0 [14:07:19]*** Brake cut motor [14:07:19]Read from MH i2c: 01 [14:07:19]MH_I2C_Read... [14:07:19]*** Stop cut motor [14:07:19]*** Cut end [14:07:19]Read from MH i2c: 01 07 00 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: 01 07 00 05 B8 00 00 00 00 00 FF 0F D2 [14:07:19]process_action print_text done [14:07:19]requested_data is exist [14:07:19]produce_requested_data [14:07:19]requested_item fm.sn is exist - process it [14:07:19]wFMCommunicate request_size=4 [14:07:19]MH_SAM_APDU [14:07:19]CAPDU: 80 11 00 00 [14:07:19]Write to MH i2c: E2 08 00 06 B8 80 11 00 00 00 00 00 00 38 [14:07:19]Write i2c OK [14:07:19]MH_I2C_Read... [14:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:19]Read from MH i2c: E2 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: E2 17 00 [14:07:19]MH_I2C_Read... [14:07:19]Read from MH i2c: E2 17 00 06 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 94 [14:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:07:19]wFMCommunicate OK [14:07:19]requested_item fd.num is exist - process it [14:07:19]SAM_PROTO_GetFieldsCounters [14:07:19]wFMCommunicate request_size=4 [14:07:19]MH_SAM_APDU [14:07:19]CAPDU: 80 13 00 00 [14:07:19]Write to MH i2c: E2 08 00 07 B8 80 13 00 00 00 00 00 00 3B [14:07:19]Write i2c OK [14:07:19]MH_I2C_Read... [14:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:20]Read from MH i2c: E2 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 62 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 62 00 07 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:07: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 1F 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:20]wFMCommunicate OK [14:07:20]SAM_PROTO_GetFieldsCounters done [14:07:20]requested_item shift.num is exist - process it [14:07:20]requested_item shift.opened is exist - process it [14:07:20]req_shift_opened [14:07:20]FM_GetShiftState [14:07:20]SAM_PROTO_GetShiftState [14:07:20]wFMCommunicate request_size=4 [14:07:20]MH_SAM_APDU [14:07:20]CAPDU: 80 13 01 00 [14:07:20]Write to MH i2c: E2 08 00 08 B8 80 13 01 00 00 00 00 00 3D [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:20]Read from MH i2c: E2 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 0E 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: E2 0E 00 08 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 76 [14:07:20]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:07:20]wFMCommunicate OK [14:07:20]SAM_PROTO_GetShiftState done [14:07:20]FM_GetShiftState done [14:07:20]req_shift_opened done [14:07:20]requested_item shift.open_date is exist - process it [14:07:20]req_shift_open_date [14:07:20]req_shift_open_date done [14:07:20]produce_requested_data done [14:07:20]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69919,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:07:20]process_action_free print_text [14:07:20]json_value_free [14:07:20]json_value_free done [14:07:20]process_json_proto returns [14:07:20]Send response to host [14:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69919,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:07:20]free response buf [14:07:20]execute_script done [14:07:20]execute_script returns [14:07:20]free content buf [14:07:20]Sock 9.Close socket [14:07:20]Sock 9.Thread stoped [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:34]accept exits with 7 [14:08:34]New connection [14:08:34]New thread 3066858852 created [14:08:34]Thread 3067002212 joined [14:08:34]Waiting for new connection... [14:08:34] Sock 7.Parse request [14:08:34]Sock 7.Check first char [14:08:34]Sock 7.First char is OK [14:08:34]request: POST /json_proto HTTP/1.0 [14:08:34]Method: POST [14:08:34]URL: /json_proto [14:08:34]Method is POST - this is cgi request [14:08:34]url: /json_proto [14:08:34]query_string will be loaded in cgi processing [14:08:34]execute_cgi json_proto POST (null) [14:08:34]execute_cgi path=json_proto method=POST [14:08:34]POST find Content-Length [14:08:34]Host: 172.17.49.132:8080 [14:08:34]Content-Length: 682 [14:08:34]Content-Type: application/json [14:08:34] [14:08:34]POST finish read [14:08:34]Found Content-Length = 682 [14:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)874876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:34]execute_script... [14:08: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)874876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:34]POST & json_proto [14:08:34]process_json_proto [14:08:34]json parsed OK: [14:08:34]protocol is kg_v1.0 [14:08:34]action value=close_receipt [14:08:34]process_action close_receipt [14:08:34]cmd_close_receipt [14:08:34]MH_GetDate [14:08:34]Write to MH i2c: F0 00 00 09 B8 B0 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: F0 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: F0 09 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: F0 09 00 09 B8 00 F5 96 AB 66 E7 4B C0 64 AB [14:08:34]GetLastDocTimeStamp 1722521141 [14:08:34]current date 1722521333 [14:08:34]FM_GetShiftState [14:08:34]SAM_PROTO_GetShiftState [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 13 01 00 [14:08:34]Write to MH i2c: E2 08 00 0A B8 80 13 01 00 00 00 00 00 3F [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:34]Read from MH i2c: E2 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 0E 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: E2 0E 00 0A B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 78 [14:08:34]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:08:34]wFMCommunicate OK [14:08:34]SAM_PROTO_GetShiftState done [14:08:34]FM_GetShiftState done [14:08:34]opened in 1722472772 [14:08:34]opened+sec_in_day 1722559172 [14:08:34]quantity*price = 100005 [14:08:34]sum+1 = 100006 [14:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 83 01.08.2024 14:08 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69920 ФПД: 130675274998965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140853&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69920&fm=130675274998965&tin=02508201610067®Number=0000000000092638&sum=100000 [14:08:35]StoreToDocumentArchive [14:08:35]shift 433 fd 69920 [14:08:35]save to /storage/0433/doc_00069920 [14:08:35]save last doc name /storage/0433/doc_00069920 to /storage/kkm_last_doc_name [14:08:35]save OK [14:08:35]Clear old archive folders... [14:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:35]tlvbuf is 011639E0 [14:08:35]SAM_PROTO_ClearQueue [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 09 00 00 [14:08:35]Write to MH i2c: E2 08 00 17 B8 80 09 00 00 00 00 00 00 41 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 17 B8 00 90 00 43 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_ClearQueue done [14:08:35]KKMCreateOFDPacket [14:08:35]OFDProtocolAddRootSTLVToBuf [14:08:35]FM_MakeSignedData [14:08:35]FM_MakeSignedData [14:08:35]SAM_PROTO_SignData [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 0D 01 02 [14:08:35]Write to MH i2c: E2 08 00 18 B8 80 0D 01 02 00 00 00 00 49 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 03 00 18 B8 00 90 00 44 [14:08:35]RAPDU: 90 00 [14:08:35]wFMCommunicate OK [14:08:35]wFMCommunicate request_size=255 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F5 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 11 01 00 35 04 06 00 76 [14:08:35]Write to MH i2c: E2 02 01 19 B8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F5 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 11 01 00 35 04 06 00 76 00 00 AC [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:36]OFD Sender: No OFD packet to send [14:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:36]Read from MH i2c: E2 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 03 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 03 00 19 B8 00 90 00 45 [14:08:36]RAPDU: 90 00 [14:08:36]wFMCommunicate OK [14:08:36]wFMCommunicate request_size=10 [14:08:36]MH_SAM_APDU [14:08:36]CAPDU: 80 0D 02 02 05 D9 35 58 E4 B5 [14:08:36]Write to MH i2c: E2 0D 00 1A B8 80 0D 02 02 05 00 D9 35 58 E4 B5 00 00 55 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:36]Read from MH i2c: E2 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 03 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 03 00 1A B8 00 90 00 46 [14:08:36]RAPDU: 90 00 [14:08:36]wFMCommunicate OK [14:08:36]wFMCommunicate request_size=4 [14:08:36]MH_SAM_APDU [14:08:36]CAPDU: 80 0D 03 02 [14:08:36]Write to MH i2c: E2 08 00 1B B8 80 0D 03 02 00 00 00 00 4E [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:36]Read from MH i2c: E2 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 0B 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 0B 00 1B B8 00 CC F6 99 97 67 B9 BF E1 90 00 01 [14:08:36]RAPDU: CC F6 99 97 67 B9 BF E1 90 00 [14:08:36]wFMCommunicate OK [14:08:36]SAM_PROTO_SignData done [14:08:36]FM_MakeSignedData done [14:08:36]CreateOFDProtocolMessage [14:08:36]wFMCommunicate request_size=4 [14:08:36]MH_SAM_APDU [14:08:36]CAPDU: 80 11 00 00 [14:08:36]Write to MH i2c: E2 08 00 1C B8 80 11 00 00 00 00 00 00 4E [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:36]Read from MH i2c: E2 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 17 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 17 00 1C B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 AA [14:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:08:36]wFMCommunicate OK [14:08:36]CreateOFDProtocolMessage done [14:08:36]OFDSenderStorePacket 69920 [14:08:36]StoreOFDPacket docnum=69920 [14:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1A 7F 07 01 A4 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F5 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 11 01 00 35 04 06 00 76 D9 35 58 E4 B5 CC F6 99 97 67 B9 BF E1 [14:08:36]CheckFolder [14:08:36]dirname=/storage/ofd_packets [14:08:36]CheckFolder done [14:08:36]ProducePacketName [14:08:36]name=ofd_packets/00069920 [14:08:36]NVStorageSaveData ofd_packets/00069920 [14:08:36]File name is /storage/ofd_packets/00069920 [14:08:36]Write 301 bytes [14:08:36]NVStorageSaveData done [14:08:36]OFDSenderStorePacket done [14:08:36]KKMCreateOFDPacket done [14:08:36]NVStorageSaveData kkm_last_timestamp [14:08:36]File name is /storage/kkm_last_timestamp [14:08:36]Write 4 bytes [14:08:36]NVStorageSaveData done [14:08:36]ExternCall_PrintAddStr [14:08:36]wPrintStart [14:08:36]Write to MH i2c: 01 00 00 1D B8 D5 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: 01 07 00 1D B8 00 00 00 00 00 FF 0F EA [14:08:36]RasterBufferAndPrint [14:08:36]line Счет N : (1)874876 [14:08:36]line ИНН: 02508201610067 [14:08:36]line Контрольно-Кассовый Чек [14:08:36]line ПРОДАЖА [14:08:36]line ТРК (МРК, ГНК) : 42 [14:08:36]line Товар: 2710124130 [14:08:36]line Аи-92-К-5 [14:08:36]line 14.750 * 67.80 [14:08:36]line = 1000.05 [14:08:36]line НДС 12% НСП 1% [14:08:36]line > о реализуемом товаре [14:08:36]line ОКРУГЛЕНИЕ: -0.05 [14:08:36]line ИТОГО: 1000.00 [14:08:36]line Внесено: 1000.00 [14:08:36]line СДАЧА: 0.00 [14:08:36]line НСП 1% : 8.85 [14:08:36]line НДС 12% : 106.20 [14:08:36]line Наличными: 1000.00 [14:08:36]line Безнал.: 0.00 [14:08:36]line Место: АЗС № 125 "Партнер Нефть" [14:08:36]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:08:36]line СНО: Общий режим [14:08:36]line Чек 83 01.08.2024 14:08 [14:08:36]line Смена: 433 ФФД: 1.0 [14:08:36]line ЗНМ: 0300000049 [14:08:36]line РНМ: 0000000000092638 [14:08:36]line Версия ККМ: 001 [14:08:36]line ФМ: 0000000000874949 [14:08:36]line ФД: 69920 [14:08:36]line ФПД: 130675274998965 [14:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T140853&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69920&fm=130675274998965&tin=02508201610067®Number=0000000000092638&sum=100000 [14:08:36]OFD Sender: Processing packet 69920 [packets to send 19, broken 18] [14:08:36]ProducePacketName [14:08:36]name=ofd_packets/00069920 [14:08:36]OFD Sender: To server: pG, [14:08:36]CommunicateWithHost lk.salyk.kg:30040 [14:08:36]ConnectInit lk.salyk.kg [14:08:36]written 0, free lines is 4095 [14:08:36]Connected sock=10 [14:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0F 01 00 00 1A 7F 07 01 A4 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F5 96 AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 20 11 01 00 35 04 06 00 76 D9 35 58 E4 B5 CC F6 99 97 67 B9 BF E1 [14:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 8F B9 47 00 40 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 34 39 34 39 10 04 04 00 20 11 01 00 F4 03 04 00 56 3D AB 66 B6 04 01 00 00 C9 79 23 FE BF FD FA FA [14:08:37]CommunicateWithHost err = 0 [14:08:37]CheckOFDResponse [14:08:37]1017 (14) - 77093643461234 [14:08:37]1041 (16) - 0000000000874949 [14:08:37]1040 (4) - 69920 [14:08:37]1012 (4) - 01.08.2024 07:46 [14:08:37]1206 (1) - 0 [14:08:37]OFD Sender: Remove packet 69920 [14:08:37]ProducePacketName [14:08:37]name=ofd_packets/00069920 [14:08:37]NVStorageDeleteData [14:08:37]Write to MH i2c: 01 00 00 48 B8 00 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 07 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 07 00 48 B8 00 00 00 00 00 00 0D 14 [14:08:37]RasterBufferAndPrint [14:08:37]line [14:08:37]line [14:08:37]line [14:08:37]line [14:08:37]line [14:08:37]written 0, free lines is 3334 [14:08:37]MH_Cut [14:08:37]Write to MH i2c: D1 01 00 4F B8 01 D9 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: D1 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: D1 01 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: D1 01 00 4F B8 00 D8 [14:08:37]Write to MH i2c: 01 00 00 50 B8 08 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]OFD Sender: No OFD packet to send [14:08:37]*** Cut start [14:08:37]*** Partial cut [14:08:37]*** CUTSNS_PIN = 1 [14:08:37]*** CUTSNS_PIN = 0 [14:08:38]*** Brake cut motor [14:08:38]Read from MH i2c: 01 [14:08:38]MH_I2C_Read... [14:08:38]*** Stop cut motor [14:08:38]*** Cut end [14:08:38]Read from MH i2c: 01 07 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: 01 07 00 50 B8 00 00 00 00 00 FF 0F 1D [14:08:38]process_action close_receipt done [14:08:38]requested_data is exist [14:08:38]produce_requested_data [14:08:38]requested_item fm.sn is exist - process it [14:08:38]wFMCommunicate request_size=4 [14:08:38]MH_SAM_APDU [14:08:38]CAPDU: 80 11 00 00 [14:08:38]Write to MH i2c: E2 08 00 51 B8 80 11 00 00 00 00 00 00 83 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:38]Read from MH i2c: E2 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 17 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 17 00 51 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 DF [14:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:08:38]wFMCommunicate OK [14:08:38]requested_item fd.num is exist - process it [14:08:38]SAM_PROTO_GetFieldsCounters [14:08:38]wFMCommunicate request_size=4 [14:08:38]MH_SAM_APDU [14:08:38]CAPDU: 80 13 00 00 [14:08:38]Write to MH i2c: E2 08 00 52 B8 80 13 00 00 00 00 00 00 86 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:38]Read from MH i2c: E2 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 62 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 62 00 52 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [14:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:38]wFMCommunicate OK [14:08:38]SAM_PROTO_GetFieldsCounters done [14:08:38]requested_item shift.num is exist - process it [14:08:38]requested_item shift.opened is exist - process it [14:08:38]req_shift_opened [14:08:38]FM_GetShiftState [14:08:38]SAM_PROTO_GetShiftState [14:08:38]wFMCommunicate request_size=4 [14:08:38]MH_SAM_APDU [14:08:38]CAPDU: 80 13 01 00 [14:08:38]Write to MH i2c: E2 08 00 53 B8 80 13 01 00 00 00 00 00 88 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:38]Read from MH i2c: E2 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 0E 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 0E 00 53 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 C1 [14:08:38]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:08:38]wFMCommunicate OK [14:08:38]SAM_PROTO_GetShiftState done [14:08:38]FM_GetShiftState done [14:08:38]req_shift_opened done [14:08:38]requested_item shift.open_date is exist - process it [14:08:38]req_shift_open_date [14:08:38]req_shift_open_date done [14:08:38]produce_requested_data done [14:08:38]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:08:38]process_action_free close_receipt [14:08:38]json_value_free [14:08:38]json_value_free done [14:08:38]process_json_proto returns [14:08:38]Send response to host [14:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:08:38]free response buf [14:08:38]execute_script done [14:08:38]execute_script returns [14:08:38]free content buf [14:08:38]Sock 7.Close socket [14:08:38]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:09]accept exits with 9 [14:13:09]New connection [14:13:09]New thread 3067002212 created [14:13:09]Thread 3066858852 joined [14:13:09]Waiting for new connection... [14:13:09] Sock 9.Parse request [14:13:09]Sock 9.Check first char [14:13:09]Sock 9.First char is OK [14:13:09]request: POST /json_proto HTTP/1.0 [14:13:09]Method: POST [14:13:09]URL: /json_proto [14:13:09]Method is POST - this is cgi request [14:13:09]url: /json_proto [14:13:09]query_string will be loaded in cgi processing [14:13:09]execute_cgi json_proto POST (null) [14:13:09]execute_cgi path=json_proto method=POST [14:13:09]POST find Content-Length [14:13:09]Host: 172.17.49.132:8080 [14:13:09]Content-Length: 1251 [14:13:09]Content-Type: application/json [14:13:09] [14:13:09]POST finish read [14:13:09]Found Content-Length = 1251 [14:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874880\u000A01.08.2024 13:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914429;428;534;533;532;531;530;529;528;527\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:09]execute_script... [14:13:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874880\u000A01.08.2024 13:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3914429;428;534;533;532;531;530;529;528;527\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:09]POST & json_proto [14:13:09]process_json_proto [14:13:09]json parsed OK: [14:13:09]protocol is kg_v1.0 [14:13:09]action value=print_text [14:13:09]process_action print_text [14:13:09]cmd_print_text [14:13:09]ExternCall_PrintAddStr [14:13:09]wPrintStart [14:13:09]Write to MH i2c: 01 00 00 54 B8 0C [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 07 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 07 00 54 B8 00 00 00 00 00 FF 0F 21 [14:13:09]RasterBufferAndPrint [14:13:09]line *****ТОВАРНЫЙ ЧЕК***** [14:13:09]line АЗС 125 [14:13:09]line Партнер нефть [14:13:09]line 02508201610067 [14:13:09]line Кассир : Мадаминова Б. [14:13:09]line Счет N : (1)874880 [14:13:09]line 01.08.2024 13:34 [14:13:09]line ПРОДАЖА [14:13:09]line ТРК (МРК, ГНК): 62 [14:13:09]line Вид ГСМ : 2710124130 [14:13:09]line Аи-92-К-5 [14:13:09]line 100.000 x 67.80 [14:13:09]line ИТОГ: 6780.00 [14:13:09]line Тип оплаты: Талоны: Топливные Талоны [14:13:09]line 3914429;428;534;533;532;531;530;529;528;527 [14:13:09]line ______________________ [14:13:09]line (подпись) [14:13:09]written 0, free lines is 4095 [14:13:10]Write to MH i2c: 01 00 00 69 B8 21 [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: 01 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: 01 07 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: 01 07 00 69 B8 00 00 00 00 00 0B 0E 41 [14:13:10]RasterBufferAndPrint [14:13:10]line [14:13:10]line [14:13:10]line [14:13:10]line [14:13:10]line [14:13:10]written 0, free lines is 3598 [14:13:10]MH_Cut [14:13:10]Write to MH i2c: D1 01 00 70 B8 01 FA [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: D1 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: D1 01 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: D1 01 00 70 B8 00 F9 [14:13:10]Write to MH i2c: 01 00 00 71 B8 29 [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]*** Cut start [14:13:10]*** Partial cut [14:13:10]*** CUTSNS_PIN = 1 [14:13:10]*** CUTSNS_PIN = 0 [14:13:10]*** Brake cut motor [14:13:11]Read from MH i2c: 01 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: 01 07 00 [14:13:11]MH_I2C_Read... [14:13:11]*** Stop cut motor [14:13:11]*** Cut end [14:13:11]Read from MH i2c: 01 07 00 71 B8 00 00 00 00 00 FF 0F 3E [14:13:11]process_action print_text done [14:13:11]requested_data is exist [14:13:11]produce_requested_data [14:13:11]requested_item fm.sn is exist - process it [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 11 00 00 [14:13:11]Write to MH i2c: E2 08 00 72 B8 80 11 00 00 00 00 00 00 A4 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 17 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 17 00 72 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 00 [14:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:13:11]wFMCommunicate OK [14:13:11]requested_item fd.num is exist - process it [14:13:11]SAM_PROTO_GetFieldsCounters [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 13 00 00 [14:13:11]Write to MH i2c: E2 08 00 73 B8 80 13 00 00 00 00 00 00 A7 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 62 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 62 00 73 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [14:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:11]wFMCommunicate OK [14:13:11]SAM_PROTO_GetFieldsCounters done [14:13:11]requested_item shift.num is exist - process it [14:13:11]requested_item shift.opened is exist - process it [14:13:11]req_shift_opened [14:13:11]FM_GetShiftState [14:13:11]SAM_PROTO_GetShiftState [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 13 01 00 [14:13:11]Write to MH i2c: E2 08 00 74 B8 80 13 01 00 00 00 00 00 A9 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 0E 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 0E 00 74 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 E2 [14:13:11]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:13:11]wFMCommunicate OK [14:13:11]SAM_PROTO_GetShiftState done [14:13:11]FM_GetShiftState done [14:13:11]req_shift_opened done [14:13:11]requested_item shift.open_date is exist - process it [14:13:11]req_shift_open_date [14:13:11]req_shift_open_date done [14:13:11]produce_requested_data done [14:13:11]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:13:11]process_action_free print_text [14:13:11]json_value_free [14:13:11]json_value_free done [14:13:11]process_json_proto returns [14:13:11]Send response to host [14:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:13:11]free response buf [14:13:11]execute_script done [14:13:11]execute_script returns [14:13:11]free content buf [14:13:11]Sock 9.Close socket [14:13:11]Sock 9.Thread stoped [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:06]accept exits with 7 [14:16:06]New connection [14:16:06]New thread 3066858852 created [14:16:06]Thread 3067002212 joined [14:16:06]Waiting for new connection... [14:16:06] Sock 7.Parse request [14:16:06]Sock 7.Check first char [14:16:06]Sock 7.First char is OK [14:16:06]request: POST /json_proto HTTP/1.0 [14:16:06]Method: POST [14:16:06]URL: /json_proto [14:16:06]Method is POST - this is cgi request [14:16:06]url: /json_proto [14:16:06]query_string will be loaded in cgi processing [14:16:06]execute_cgi json_proto POST (null) [14:16:06]execute_cgi path=json_proto method=POST [14:16:06]POST find Content-Length [14:16:06]Host: 172.17.49.132:8080 [14:16:06]Content-Length: 1251 [14:16:06]Content-Type: application/json [14:16:06] [14:16:06]POST finish read [14:16:06]Found Content-Length = 1251 [14:16:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874884\u000A01.08.2024 13:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918438;437;435;431;436;432;434;433;430;427\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:06]execute_script... [14:16:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874884\u000A01.08.2024 13:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918438;437;435;431;436;432;434;433;430;427\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:06]POST & json_proto [14:16:06]process_json_proto [14:16:06]json parsed OK: [14:16:06]protocol is kg_v1.0 [14:16:06]action value=print_text [14:16:06]process_action print_text [14:16:06]cmd_print_text [14:16:06]ExternCall_PrintAddStr [14:16:06]wPrintStart [14:16:06]Write to MH i2c: 01 00 00 75 B8 2D [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 [14:16:06]MH_I2C_Read... [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 75 B8 00 00 00 00 00 FF 0F 42 [14:16:06]RasterBufferAndPrint [14:16:06]line *****ТОВАРНЫЙ ЧЕК***** [14:16:06]line АЗС 125 [14:16:06]line Партнер нефть [14:16:06]line 02508201610067 [14:16:06]line Кассир : Мадаминова Б. [14:16:06]line Счет N : (1)874884 [14:16:06]line 01.08.2024 13:37 [14:16:06]line ПРОДАЖА [14:16:06]line ТРК (МРК, ГНК): 52 [14:16:06]line Вид ГСМ : 2710124130 [14:16:06]line Аи-92-К-5 [14:16:06]line 100.000 x 67.80 [14:16:06]line ИТОГ: 6780.00 [14:16:06]line Тип оплаты: Талоны: Топливные Талоны [14:16:06]line 3918438;437;435;431;436;432;434;433;430;427 [14:16:06]line ______________________ [14:16:07]line (подпись) [14:16:07]written 0, free lines is 4095 [14:16:07]Write to MH i2c: 01 00 00 8A B8 42 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 07 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 07 00 8A B8 00 00 00 00 00 0C 0E 63 [14:16:07]RasterBufferAndPrint [14:16:07]line [14:16:07]line [14:16:07]line [14:16:07]line [14:16:07]line [14:16:07]written 0, free lines is 3598 [14:16:07]MH_Cut [14:16:07]Write to MH i2c: D1 01 00 91 B8 01 1B [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: D1 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: D1 01 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: D1 01 00 91 B8 00 1A [14:16:07]Write to MH i2c: 01 00 00 92 B8 4A [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** Cut start [14:16:07]*** Partial cut [14:16:07]*** CUTSNS_PIN = 1 [14:16:07]*** CUTSNS_PIN = 0 [14:16:07]OFD Sender: No OFD packet to send [14:16:08]*** Brake cut motor [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]*** Stop cut motor [14:16:08]*** Cut end [14:16:08]Read from MH i2c: 01 07 00 92 B8 00 00 00 00 00 FF 0F 5F [14:16:08]process_action print_text done [14:16:08]requested_data is exist [14:16:08]produce_requested_data [14:16:08]requested_item fm.sn is exist - process it [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 11 00 00 [14:16:08]Write to MH i2c: E2 08 00 93 B8 80 11 00 00 00 00 00 00 C5 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 17 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 17 00 93 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 21 [14:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:16:08]wFMCommunicate OK [14:16:08]requested_item fd.num is exist - process it [14:16:08]SAM_PROTO_GetFieldsCounters [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 13 00 00 [14:16:08]Write to MH i2c: E2 08 00 94 B8 80 13 00 00 00 00 00 00 C8 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 62 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 62 00 94 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [14:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:08]wFMCommunicate OK [14:16:08]SAM_PROTO_GetFieldsCounters done [14:16:08]requested_item shift.num is exist - process it [14:16:08]requested_item shift.opened is exist - process it [14:16:08]req_shift_opened [14:16:08]FM_GetShiftState [14:16:08]SAM_PROTO_GetShiftState [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 13 01 00 [14:16:08]Write to MH i2c: E2 08 00 95 B8 80 13 01 00 00 00 00 00 CA [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 0E 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 0E 00 95 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 03 [14:16:08]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:16:08]wFMCommunicate OK [14:16:08]SAM_PROTO_GetShiftState done [14:16:08]FM_GetShiftState done [14:16:08]req_shift_opened done [14:16:08]requested_item shift.open_date is exist - process it [14:16:08]req_shift_open_date [14:16:08]req_shift_open_date done [14:16:08]produce_requested_data done [14:16:08]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:16:08]process_action_free print_text [14:16:08]json_value_free [14:16:08]json_value_free done [14:16:08]process_json_proto returns [14:16:08]Send response to host [14:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:16:08]free response buf [14:16:08]execute_script done [14:16:08]execute_script returns [14:16:08]free content buf [14:16:08]Sock 7.Close socket [14:16:08]Sock 7.Thread stoped [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:48]accept exits with 9 [14:18:48]New connection [14:18:48]New thread 3067002212 created [14:18:48]Thread 3066858852 joined [14:18:48]Waiting for new connection... [14:18:48] Sock 9.Parse request [14:18:48]Sock 9.Check first char [14:18:48]Sock 9.First char is OK [14:18:48]request: POST /json_proto HTTP/1.0 [14:18:48]Method: POST [14:18:48]URL: /json_proto [14:18:48]Method is POST - this is cgi request [14:18:48]url: /json_proto [14:18:48]query_string will be loaded in cgi processing [14:18:48]execute_cgi json_proto POST (null) [14:18:48]execute_cgi path=json_proto method=POST [14:18:48]POST find Content-Length [14:18:48]Host: 172.17.49.132:8080 [14:18:48]Content-Length: 1251 [14:18:48]Content-Type: application/json [14:18:48] [14:18:48]POST finish read [14:18:48]Found Content-Length = 1251 [14:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874887\u000A01.08.2024 13:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918450;448;449;447;446;443;442;445;441;439\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:48]execute_script... [14:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874887\u000A01.08.2024 13:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918450;448;449;447;446;443;442;445;441;439\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:48]POST & json_proto [14:18:48]process_json_proto [14:18:48]json parsed OK: [14:18:48]protocol is kg_v1.0 [14:18:48]action value=print_text [14:18:48]process_action print_text [14:18:48]cmd_print_text [14:18:48]ExternCall_PrintAddStr [14:18:48]wPrintStart [14:18:48]Write to MH i2c: 01 00 00 96 B8 4E [14:18:48]Write i2c OK [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: 01 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: 01 07 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: 01 07 00 96 B8 00 00 00 00 00 FF 0F 63 [14:18:48]RasterBufferAndPrint [14:18:48]line *****ТОВАРНЫЙ ЧЕК***** [14:18:48]line АЗС 125 [14:18:48]line Партнер нефть [14:18:48]line 02508201610067 [14:18:48]line Кассир : Мадаминова Б. [14:18:48]line Счет N : (1)874887 [14:18:48]line 01.08.2024 13:40 [14:18:48]line ПРОДАЖА [14:18:48]line ТРК (МРК, ГНК): 62 [14:18:48]line Вид ГСМ : 2710124130 [14:18:48]line Аи-92-К-5 [14:18:48]line 100.000 x 67.80 [14:18:48]line ИТОГ: 6780.00 [14:18:48]line Тип оплаты: Талоны: Топливные Талоны [14:18:48]line 3918450;448;449;447;446;443;442;445;441;439 [14:18:48]line ______________________ [14:18:49]line (подпись) [14:18:49]written 0, free lines is 4095 [14:18:49]Write to MH i2c: 01 00 00 AB B8 63 [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: 01 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: 01 07 00 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: 01 07 00 AB B8 00 00 00 00 00 0A 0E 82 [14:18:49]RasterBufferAndPrint [14:18:49]line [14:18:49]line [14:18:49]line [14:18:49]line [14:18:49]line [14:18:49]written 0, free lines is 3596 [14:18:49]MH_Cut [14:18:49]Write to MH i2c: D1 01 00 B2 B8 01 3C [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: D1 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: D1 01 00 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: D1 01 00 B2 B8 00 3B [14:18:49]Write to MH i2c: 01 00 00 B3 B8 6B [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]*** Cut start [14:18:49]*** Partial cut [14:18:49]*** CUTSNS_PIN = 1 [14:18:50]*** CUTSNS_PIN = 0 [14:18:50]*** Brake cut motor [14:18:50]Read from MH i2c: 01 [14:18:50]MH_I2C_Read... [14:18:50]*** Stop cut motor [14:18:50]*** Cut end [14:18:50]Read from MH i2c: 01 07 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: 01 07 00 B3 B8 00 00 00 00 00 FF 0F 80 [14:18:50]process_action print_text done [14:18:50]requested_data is exist [14:18:50]produce_requested_data [14:18:50]requested_item fm.sn is exist - process it [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 11 00 00 [14:18:50]Write to MH i2c: E2 08 00 B4 B8 80 11 00 00 00 00 00 00 E6 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 17 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 17 00 B4 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 42 [14:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:18:50]wFMCommunicate OK [14:18:50]requested_item fd.num is exist - process it [14:18:50]SAM_PROTO_GetFieldsCounters [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 13 00 00 [14:18:50]Write to MH i2c: E2 08 00 B5 B8 80 13 00 00 00 00 00 00 E9 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 62 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 62 00 B5 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:18:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_GetFieldsCounters done [14:18:50]requested_item shift.num is exist - process it [14:18:50]requested_item shift.opened is exist - process it [14:18:50]req_shift_opened [14:18:50]FM_GetShiftState [14:18:50]SAM_PROTO_GetShiftState [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 13 01 00 [14:18:50]Write to MH i2c: E2 08 00 B6 B8 80 13 01 00 00 00 00 00 EB [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 B6 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 24 [14:18:50]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_GetShiftState done [14:18:50]FM_GetShiftState done [14:18:50]req_shift_opened done [14:18:50]requested_item shift.open_date is exist - process it [14:18:50]req_shift_open_date [14:18:50]req_shift_open_date done [14:18:50]produce_requested_data done [14:18:50]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:18:50]process_action_free print_text [14:18:50]json_value_free [14:18:50]json_value_free done [14:18:50]process_json_proto returns [14:18:50]Send response to host [14:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:18:50]free response buf [14:18:50]execute_script done [14:18:50]execute_script returns [14:18:50]free content buf [14:18:50]Sock 9.Close socket [14:18:50]Sock 9.Thread stoped [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:05]accept exits with 10 [14:22:05]New connection [14:22:05]New thread 3066858852 created [14:22:05]Thread 3067002212 joined [14:22:05]Waiting for new connection... [14:22:05] Sock 10.Parse request [14:22:05]Sock 10.Check first char [14:22:05]Sock 10.First char is OK [14:22:05]request: POST /json_proto HTTP/1.0 [14:22:05]Method: POST [14:22:05]URL: /json_proto [14:22:05]Method is POST - this is cgi request [14:22:05]url: /json_proto [14:22:05]query_string will be loaded in cgi processing [14:22:05]execute_cgi json_proto POST (null) [14:22:05]execute_cgi path=json_proto method=POST [14:22:05]POST find Content-Length [14:22:05]Host: 172.17.49.132:8080 [14:22:05]Content-Length: 1251 [14:22:05]Content-Type: application/json [14:22:05] [14:22:05]POST finish read [14:22:05]Found Content-Length = 1251 [14:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874893\u000A01.08.2024 13:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918465;458;461;462;460;459;440;444;452;451\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:05]execute_script... [14:22:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874893\u000A01.08.2024 13:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918465;458;461;462;460;459;440;444;452;451\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:05]POST & json_proto [14:22:05]process_json_proto [14:22:05]json parsed OK: [14:22:05]protocol is kg_v1.0 [14:22:05]action value=print_text [14:22:05]process_action print_text [14:22:05]cmd_print_text [14:22:05]ExternCall_PrintAddStr [14:22:05]wPrintStart [14:22:05]Write to MH i2c: 01 00 00 B7 B8 6F [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 B7 B8 00 00 00 00 00 FF 0F 84 [14:22:05]RasterBufferAndPrint [14:22:05]line *****ТОВАРНЫЙ ЧЕК***** [14:22:05]line АЗС 125 [14:22:05]line Партнер нефть [14:22:05]line 02508201610067 [14:22:05]line Кассир : Мадаминова Б. [14:22:05]line Счет N : (1)874893 [14:22:05]line 01.08.2024 13:43 [14:22:05]line ПРОДАЖА [14:22:05]line ТРК (МРК, ГНК): 52 [14:22:05]line Вид ГСМ : 2710124130 [14:22:05]line Аи-92-К-5 [14:22:05]line 100.000 x 67.80 [14:22:05]line ИТОГ: 6780.00 [14:22:05]line Тип оплаты: Талоны: Топливные Талоны [14:22:05]line 3918465;458;461;462;460;459;440;444;452;451 [14:22:05]line ______________________ [14:22:05]line (подпись) [14:22:05]written 0, free lines is 4095 [14:22:05]Write to MH i2c: 01 00 00 CC B8 84 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 CC B8 00 00 00 00 00 0A 0E A3 [14:22:05]RasterBufferAndPrint [14:22:05]line [14:22:05]line [14:22:05]line [14:22:05]line [14:22:05]line [14:22:05]written 0, free lines is 3596 [14:22:05]MH_Cut [14:22:05]Write to MH i2c: D1 01 00 D3 B8 01 5D [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: D1 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: D1 01 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: D1 01 00 D3 B8 00 5C [14:22:05]Write to MH i2c: 01 00 00 D4 B8 8C [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:06]*** Cut start [14:22:06]*** Partial cut [14:22:06]*** CUTSNS_PIN = 1 [14:22:06]*** CUTSNS_PIN = 0 [14:22:06]*** Brake cut motor [14:22:06]Read from MH i2c: 01 [14:22:06]MH_I2C_Read... [14:22:06]*** Stop cut motor [14:22:06]*** Cut end [14:22:06]Read from MH i2c: 01 07 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: 01 07 00 D4 B8 00 00 00 00 00 FF 0F A1 [14:22:06]process_action print_text done [14:22:06]requested_data is exist [14:22:06]produce_requested_data [14:22:06]requested_item fm.sn is exist - process it [14:22:06]wFMCommunicate request_size=4 [14:22:06]MH_SAM_APDU [14:22:06]CAPDU: 80 11 00 00 [14:22:06]Write to MH i2c: E2 08 00 D5 B8 80 11 00 00 00 00 00 00 07 [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:06]Read from MH i2c: E2 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 17 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 17 00 D5 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 63 [14:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:22:06]wFMCommunicate OK [14:22:06]requested_item fd.num is exist - process it [14:22:06]SAM_PROTO_GetFieldsCounters [14:22:06]wFMCommunicate request_size=4 [14:22:06]MH_SAM_APDU [14:22:06]CAPDU: 80 13 00 00 [14:22:06]Write to MH i2c: E2 08 00 D6 B8 80 13 00 00 00 00 00 00 0A [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:06]Read from MH i2c: E2 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 62 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 62 00 D6 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [14:22:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:06]wFMCommunicate OK [14:22:06]SAM_PROTO_GetFieldsCounters done [14:22:06]requested_item shift.num is exist - process it [14:22:06]requested_item shift.opened is exist - process it [14:22:06]req_shift_opened [14:22:06]FM_GetShiftState [14:22:06]SAM_PROTO_GetShiftState [14:22:06]wFMCommunicate request_size=4 [14:22:06]MH_SAM_APDU [14:22:06]CAPDU: 80 13 01 00 [14:22:06]Write to MH i2c: E2 08 00 D7 B8 80 13 01 00 00 00 00 00 0C [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:06]Read from MH i2c: E2 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 0E 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 0E 00 D7 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 45 [14:22:06]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:22:06]wFMCommunicate OK [14:22:06]SAM_PROTO_GetShiftState done [14:22:06]FM_GetShiftState done [14:22:06]req_shift_opened done [14:22:06]requested_item shift.open_date is exist - process it [14:22:06]req_shift_open_date [14:22:06]req_shift_open_date done [14:22:06]produce_requested_data done [14:22:06]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:22:06]process_action_free print_text [14:22:06]json_value_free [14:22:06]json_value_free done [14:22:06]process_json_proto returns [14:22:06]Send response to host [14:22:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:22:06]free response buf [14:22:06]execute_script done [14:22:06]execute_script returns [14:22:06]free content buf [14:22:06]Sock 10.Close socket [14:22:06]Sock 10.Thread stoped [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:10]accept exits with 7 [14:25:10]New connection [14:25:10]New thread 3067002212 created [14:25:10]Thread 3066858852 joined [14:25:10]Waiting for new connection... [14:25:10] Sock 7.Parse request [14:25:10]Sock 7.Check first char [14:25:10]Sock 7.First char is OK [14:25:10]request: POST /json_proto HTTP/1.0 [14:25:10]Method: POST [14:25:10]URL: /json_proto [14:25:10]Method is POST - this is cgi request [14:25:10]url: /json_proto [14:25:10]query_string will be loaded in cgi processing [14:25:10]execute_cgi json_proto POST (null) [14:25:10]execute_cgi path=json_proto method=POST [14:25:10]POST find Content-Length [14:25:10]Host: 172.17.49.132:8080 [14:25:10]Content-Length: 1251 [14:25:10]Content-Type: application/json [14:25:10] [14:25:10]POST finish read [14:25:10]Found Content-Length = 1251 [14:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874899\u000A01.08.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918468;471;454;455;456;457;453;466;464;463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:10]execute_script... [14:25:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874899\u000A01.08.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918468;471;454;455;456;457;453;466;464;463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:10]POST & json_proto [14:25:10]process_json_proto [14:25:10]json parsed OK: [14:25:10]protocol is kg_v1.0 [14:25:10]action value=print_text [14:25:10]process_action print_text [14:25:10]cmd_print_text [14:25:10]ExternCall_PrintAddStr [14:25:10]wPrintStart [14:25:10]Write to MH i2c: 01 00 00 D8 B8 90 [14:25:10]Write i2c OK [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 07 00 [14:25:10]MH_I2C_Read... [14:25:10]Read from MH i2c: 01 07 00 D8 B8 00 00 00 00 00 FF 0F A5 [14:25:10]RasterBufferAndPrint [14:25:10]line *****ТОВАРНЫЙ ЧЕК***** [14:25:10]line АЗС 125 [14:25:10]line Партнер нефть [14:25:10]line 02508201610067 [14:25:10]line Кассир : Мадаминова Б. [14:25:10]line Счет N : (1)874899 [14:25:10]line 01.08.2024 13:46 [14:25:10]line ПРОДАЖА [14:25:10]line ТРК (МРК, ГНК): 62 [14:25:10]line Вид ГСМ : 2710124130 [14:25:10]line Аи-92-К-5 [14:25:10]line 100.000 x 67.80 [14:25:10]line ИТОГ: 6780.00 [14:25:10]line Тип оплаты: Талоны: Топливные Талоны [14:25:10]line 3918468;471;454;455;456;457;453;466;464;463 [14:25:10]line ______________________ [14:25:11]line (подпись) [14:25:11]written 0, free lines is 4095 [14:25:11]Write to MH i2c: 01 00 00 ED B8 A5 [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 07 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: 01 07 00 ED B8 00 00 00 00 00 0C 0E C6 [14:25:11]RasterBufferAndPrint [14:25:11]line [14:25:11]line [14:25:11]line [14:25:11]line [14:25:11]line [14:25:11]written 0, free lines is 3600 [14:25:11]MH_Cut [14:25:11]Write to MH i2c: D1 01 00 F4 B8 01 7E [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: D1 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: D1 01 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: D1 01 00 F4 B8 00 7D [14:25:11]Write to MH i2c: 01 00 00 F5 B8 AD [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]*** Cut start [14:25:11]*** Partial cut [14:25:11]*** CUTSNS_PIN = 1 [14:25:11]*** CUTSNS_PIN = 0 [14:25:12]*** Brake cut motor [14:25:12]Read from MH i2c: 01 [14:25:12]MH_I2C_Read... [14:25:12]*** Stop cut motor [14:25:12]*** Cut end [14:25:12]Read from MH i2c: 01 07 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: 01 07 00 F5 B8 00 00 00 00 00 FF 0F C2 [14:25:12]process_action print_text done [14:25:12]requested_data is exist [14:25:12]produce_requested_data [14:25:12]requested_item fm.sn is exist - process it [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 11 00 00 [14:25:12]Write to MH i2c: E2 08 00 F6 B8 80 11 00 00 00 00 00 00 28 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 F6 B8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 84 [14:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:25:12]wFMCommunicate OK [14:25:12]requested_item fd.num is exist - process it [14:25:12]SAM_PROTO_GetFieldsCounters [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 13 00 00 [14:25:12]Write to MH i2c: E2 08 00 F7 B8 80 13 00 00 00 00 00 00 2B [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 62 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 62 00 F7 B8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [14:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_GetFieldsCounters done [14:25:12]requested_item shift.num is exist - process it [14:25:12]requested_item shift.opened is exist - process it [14:25:12]req_shift_opened [14:25:12]FM_GetShiftState [14:25:12]SAM_PROTO_GetShiftState [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 13 01 00 [14:25:12]Write to MH i2c: E2 08 00 F8 B8 80 13 01 00 00 00 00 00 2D [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0E 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0E 00 F8 B8 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 66 [14:25:12]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_GetShiftState done [14:25:12]FM_GetShiftState done [14:25:12]req_shift_opened done [14:25:12]requested_item shift.open_date is exist - process it [14:25:12]req_shift_open_date [14:25:12]req_shift_open_date done [14:25:12]produce_requested_data done [14:25:12]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:25:12]process_action_free print_text [14:25:12]json_value_free [14:25:12]json_value_free done [14:25:12]process_json_proto returns [14:25:12]Send response to host [14:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:25:12]free response buf [14:25:12]execute_script done [14:25:12]execute_script returns [14:25:12]free content buf [14:25:12]Sock 7.Close socket [14:25:12]Sock 7.Thread stoped [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:35]accept exits with 9 [14:27:35]New connection [14:27:35]New thread 3066858852 created [14:27:35]Thread 3067002212 joined [14:27:35]Waiting for new connection... [14:27:35] Sock 9.Parse request [14:27:35]Sock 9.Check first char [14:27:35]Sock 9.First char is OK [14:27:35]request: POST /json_proto HTTP/1.0 [14:27:35]Method: POST [14:27:35]URL: /json_proto [14:27:35]Method is POST - this is cgi request [14:27:35]url: /json_proto [14:27:35]query_string will be loaded in cgi processing [14:27:35]execute_cgi json_proto POST (null) [14:27:35]execute_cgi path=json_proto method=POST [14:27:35]POST find Content-Length [14:27:35]Host: 172.17.49.132:8080 [14:27:35]Content-Length: 1251 [14:27:35]Content-Type: application/json [14:27:35] [14:27:35]POST finish read [14:27:35]Found Content-Length = 1251 [14:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874903\u000A01.08.2024 13:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918479;478;477;476;475;472;474;473;470;469\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:35]execute_script... [14:27:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874903\u000A01.08.2024 13:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918479;478;477;476;475;472;474;473;470;469\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:35]POST & json_proto [14:27:35]process_json_proto [14:27:35]json parsed OK: [14:27:35]protocol is kg_v1.0 [14:27:35]action value=print_text [14:27:35]process_action print_text [14:27:35]cmd_print_text [14:27:35]ExternCall_PrintAddStr [14:27:35]wPrintStart [14:27:35]Write to MH i2c: 01 00 00 F9 B8 B1 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 F9 B8 00 00 00 00 00 FF 0F C6 [14:27:35]RasterBufferAndPrint [14:27:35]line *****ТОВАРНЫЙ ЧЕК***** [14:27:35]line АЗС 125 [14:27:35]line Партнер нефть [14:27:35]line 02508201610067 [14:27:35]line Кассир : Мадаминова Б. [14:27:35]line Счет N : (1)874903 [14:27:35]line 01.08.2024 13:48 [14:27:35]line ПРОДАЖА [14:27:35]line ТРК (МРК, ГНК): 52 [14:27:35]line Вид ГСМ : 2710124130 [14:27:35]line Аи-92-К-5 [14:27:35]line 100.000 x 67.80 [14:27:35]line ИТОГ: 6780.00 [14:27:35]line Тип оплаты: Талоны: Топливные Талоны [14:27:35]line 3918479;478;477;476;475;472;474;473;470;469 [14:27:35]line ______________________ [14:27:35]line (подпись) [14:27:35]written 0, free lines is 4095 [14:27:35]Write to MH i2c: 01 00 00 0E B9 C7 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 0E B9 00 00 00 00 00 0B 0E E7 [14:27:35]RasterBufferAndPrint [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]written 0, free lines is 3596 [14:27:35]MH_Cut [14:27:35]Write to MH i2c: D1 01 00 15 B9 01 A0 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 01 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 01 00 15 B9 00 9F [14:27:35]Write to MH i2c: 01 00 00 16 B9 CF [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:36]*** Cut start [14:27:36]*** Partial cut [14:27:36]*** CUTSNS_PIN = 1 [14:27:36]*** CUTSNS_PIN = 0 [14:27:36]*** Brake cut motor [14:27:36]Read from MH i2c: 01 [14:27:36]MH_I2C_Read... [14:27:36]*** Stop cut motor [14:27:36]*** Cut end [14:27:36]Read from MH i2c: 01 07 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 07 00 16 B9 00 00 00 00 00 FF 0F E4 [14:27:36]process_action print_text done [14:27:36]requested_data is exist [14:27:36]produce_requested_data [14:27:36]requested_item fm.sn is exist - process it [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 11 00 00 [14:27:36]Write to MH i2c: E2 08 00 17 B9 80 11 00 00 00 00 00 00 4A [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 17 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 17 00 17 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 A6 [14:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:27:37]wFMCommunicate OK [14:27:37]requested_item fd.num is exist - process it [14:27:37]SAM_PROTO_GetFieldsCounters [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 13 00 00 [14:27:37]Write to MH i2c: E2 08 00 18 B9 80 13 00 00 00 00 00 00 4D [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 62 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 62 00 18 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [14:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetFieldsCounters done [14:27:37]requested_item shift.num is exist - process it [14:27:37]requested_item shift.opened is exist - process it [14:27:37]req_shift_opened [14:27:37]FM_GetShiftState [14:27:37]SAM_PROTO_GetShiftState [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 13 01 00 [14:27:37]Write to MH i2c: E2 08 00 19 B9 80 13 01 00 00 00 00 00 4F [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 19 B9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 88 [14:27:37]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetShiftState done [14:27:37]FM_GetShiftState done [14:27:37]req_shift_opened done [14:27:37]requested_item shift.open_date is exist - process it [14:27:37]req_shift_open_date [14:27:37]req_shift_open_date done [14:27:37]produce_requested_data done [14:27:37]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:27:37]process_action_free print_text [14:27:37]json_value_free [14:27:37]json_value_free done [14:27:37]process_json_proto returns [14:27:37]Send response to host [14:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:27:37]free response buf [14:27:37]execute_script done [14:27:37]execute_script returns [14:27:37]free content buf [14:27:37]Sock 9.Close socket [14:27:37]Sock 9.Thread stoped [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:55]accept exits with 7 [14:29:55]New connection [14:29:55]New thread 3067002212 created [14:29:55]Thread 3066858852 joined [14:29:55]Waiting for new connection... [14:29:55] Sock 7.Parse request [14:29:55]Sock 7.Check first char [14:29:55]Sock 7.First char is OK [14:29:55]request: POST /json_proto HTTP/1.0 [14:29:55]Method: POST [14:29:55]URL: /json_proto [14:29:55]Method is POST - this is cgi request [14:29:55]url: /json_proto [14:29:55]query_string will be loaded in cgi processing [14:29:55]execute_cgi json_proto POST (null) [14:29:55]execute_cgi path=json_proto method=POST [14:29:55]POST find Content-Length [14:29:55]Host: 172.17.49.132:8080 [14:29:55]Content-Length: 1251 [14:29:55]Content-Type: application/json [14:29:55] [14:29:55]POST finish read [14:29:55]Found Content-Length = 1251 [14:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874907\u000A01.08.2024 13:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918483;484;490;487;486;485;488;489;491;497\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:55]execute_script... [14:29:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874907\u000A01.08.2024 13:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918483;484;490;487;486;485;488;489;491;497\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:55]POST & json_proto [14:29:55]process_json_proto [14:29:55]json parsed OK: [14:29:55]protocol is kg_v1.0 [14:29:55]action value=print_text [14:29:55]process_action print_text [14:29:55]cmd_print_text [14:29:55]ExternCall_PrintAddStr [14:29:55]wPrintStart [14:29:55]Write to MH i2c: 01 00 00 1A B9 D3 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: 01 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: 01 07 00 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: 01 07 00 1A B9 00 00 00 00 00 FF 0F E8 [14:29:55]RasterBufferAndPrint [14:29:55]line *****ТОВАРНЫЙ ЧЕК***** [14:29:55]line АЗС 125 [14:29:55]line Партнер нефть [14:29:55]line 02508201610067 [14:29:55]line Кассир : Мадаминова Б. [14:29:55]line Счет N : (1)874907 [14:29:55]line 01.08.2024 13:51 [14:29:55]line ПРОДАЖА [14:29:55]line ТРК (МРК, ГНК): 62 [14:29:55]line Вид ГСМ : 2710124130 [14:29:55]line Аи-92-К-5 [14:29:55]line 100.000 x 67.80 [14:29:55]line ИТОГ: 6780.00 [14:29:55]line Тип оплаты: Талоны: Топливные Талоны [14:29:55]line 3918483;484;490;487;486;485;488;489;491;497 [14:29:55]line ______________________ [14:29:55]line (подпись) [14:29:55]written 0, free lines is 4095 [14:29:55]Write to MH i2c: 01 00 00 2F B9 E8 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: 01 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: 01 07 00 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: 01 07 00 2F B9 00 00 00 00 00 0C 0E 09 [14:29:55]RasterBufferAndPrint [14:29:55]line [14:29:55]line [14:29:55]line [14:29:55]line [14:29:55]line [14:29:55]written 0, free lines is 3600 [14:29:55]MH_Cut [14:29:55]Write to MH i2c: D1 01 00 36 B9 01 C1 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: D1 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: D1 01 00 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: D1 01 00 36 B9 00 C0 [14:29:55]Write to MH i2c: 01 00 00 37 B9 F0 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:56]*** Cut start [14:29:56]*** Partial cut [14:29:56]*** CUTSNS_PIN = 1 [14:29:56]*** CUTSNS_PIN = 0 [14:29:56]*** Brake cut motor [14:29:56]Read from MH i2c: 01 [14:29:56]MH_I2C_Read... [14:29:56]*** Stop cut motor [14:29:56]*** Cut end [14:29:56]Read from MH i2c: 01 07 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: 01 07 00 37 B9 00 00 00 00 00 FF 0F 05 [14:29:56]process_action print_text done [14:29:56]requested_data is exist [14:29:56]produce_requested_data [14:29:56]requested_item fm.sn is exist - process it [14:29:56]wFMCommunicate request_size=4 [14:29:56]MH_SAM_APDU [14:29:56]CAPDU: 80 11 00 00 [14:29:56]Write to MH i2c: E2 08 00 38 B9 80 11 00 00 00 00 00 00 6B [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 17 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 17 00 38 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 C7 [14:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:29:56]wFMCommunicate OK [14:29:56]requested_item fd.num is exist - process it [14:29:56]SAM_PROTO_GetFieldsCounters [14:29:56]wFMCommunicate request_size=4 [14:29:56]MH_SAM_APDU [14:29:56]CAPDU: 80 13 00 00 [14:29:56]Write to MH i2c: E2 08 00 39 B9 80 13 00 00 00 00 00 00 6E [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 62 00 [14:29:56]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 62 00 39 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [14:29:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:57]wFMCommunicate OK [14:29:57]SAM_PROTO_GetFieldsCounters done [14:29:57]requested_item shift.num is exist - process it [14:29:57]requested_item shift.opened is exist - process it [14:29:57]req_shift_opened [14:29:57]FM_GetShiftState [14:29:57]SAM_PROTO_GetShiftState [14:29:57]wFMCommunicate request_size=4 [14:29:57]MH_SAM_APDU [14:29:57]CAPDU: 80 13 01 00 [14:29:57]Write to MH i2c: E2 08 00 3A B9 80 13 01 00 00 00 00 00 70 [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:57]Read from MH i2c: E2 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 0E 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: E2 0E 00 3A B9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 A9 [14:29:57]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:29:57]wFMCommunicate OK [14:29:57]SAM_PROTO_GetShiftState done [14:29:57]FM_GetShiftState done [14:29:57]req_shift_opened done [14:29:57]requested_item shift.open_date is exist - process it [14:29:57]req_shift_open_date [14:29:57]req_shift_open_date done [14:29:57]produce_requested_data done [14:29:57]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:29:57]process_action_free print_text [14:29:57]json_value_free [14:29:57]json_value_free done [14:29:57]process_json_proto returns [14:29:57]Send response to host [14:29:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:29:57]free response buf [14:29:57]execute_script done [14:29:57]execute_script returns [14:29:57]free content buf [14:29:57]Sock 7.Close socket [14:29:57]Sock 7.Thread stoped [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:31]accept exits with 9 [14:33:31]New connection [14:33:31]New thread 3066858852 created [14:33:31]Thread 3067002212 joined [14:33:31]Waiting for new connection... [14:33:31] Sock 9.Parse request [14:33:31]Sock 9.Check first char [14:33:31]Sock 9.First char is OK [14:33:31]request: POST /json_proto HTTP/1.0 [14:33:31]Method: POST [14:33:31]URL: /json_proto [14:33:31]Method is POST - this is cgi request [14:33:31]url: /json_proto [14:33:31]query_string will be loaded in cgi processing [14:33:31]execute_cgi json_proto POST (null) [14:33:31]execute_cgi path=json_proto method=POST [14:33:31]POST find Content-Length [14:33:31]Host: 172.17.49.132:8080 [14:33:31]Content-Length: 1251 [14:33:31]Content-Type: application/json [14:33:31] [14:33:31]POST finish read [14:33:31]Found Content-Length = 1251 [14:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874910\u000A01.08.2024 13:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918501;499;500;498;496;497;495;480;481;482\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:31]execute_script... [14:33:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874910\u000A01.08.2024 13:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 52\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918501;499;500;498;496;497;495;480;481;482\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:31]POST & json_proto [14:33:31]process_json_proto [14:33:31]json parsed OK: [14:33:31]protocol is kg_v1.0 [14:33:31]action value=print_text [14:33:31]process_action print_text [14:33:31]cmd_print_text [14:33:31]ExternCall_PrintAddStr [14:33:31]wPrintStart [14:33:31]Write to MH i2c: 01 00 00 3B B9 F4 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 3B B9 00 00 00 00 00 FF 0F 09 [14:33:31]RasterBufferAndPrint [14:33:31]line *****ТОВАРНЫЙ ЧЕК***** [14:33:31]line АЗС 125 [14:33:31]line Партнер нефть [14:33:31]line 02508201610067 [14:33:31]line Кассир : Мадаминова Б. [14:33:31]line Счет N : (1)874910 [14:33:31]line 01.08.2024 13:54 [14:33:31]line ПРОДАЖА [14:33:31]line ТРК (МРК, ГНК): 52 [14:33:31]line Вид ГСМ : 2710124130 [14:33:31]line Аи-92-К-5 [14:33:31]line 100.000 x 67.80 [14:33:31]line ИТОГ: 6780.00 [14:33:31]line Тип оплаты: Талоны: Топливные Талоны [14:33:31]line 3918501;499;500;498;496;497;495;480;481;482 [14:33:31]line ______________________ [14:33:32]line (подпись) [14:33:32]written 0, free lines is 4095 [14:33:32]Write to MH i2c: 01 00 00 50 B9 09 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: 01 07 00 50 B9 00 00 00 00 00 0C 0E 2A [14:33:32]RasterBufferAndPrint [14:33:32]line [14:33:32]line [14:33:32]line [14:33:32]line [14:33:32]line [14:33:32]written 0, free lines is 3598 [14:33:32]MH_Cut [14:33:32]Write to MH i2c: D1 01 00 57 B9 01 E2 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: D1 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: D1 01 00 [14:33:32]MH_I2C_Read... [14:33:32]Read from MH i2c: D1 01 00 57 B9 00 E1 [14:33:32]Write to MH i2c: 01 00 00 58 B9 11 [14:33:32]Write i2c OK [14:33:32]MH_I2C_Read... [14:33:32]*** Cut start [14:33:32]*** Partial cut [14:33:32]*** CUTSNS_PIN = 1 [14:33:33]*** CUTSNS_PIN = 0 [14:33:33]*** Brake cut motor [14:33:33]Read from MH i2c: 01 [14:33:33]MH_I2C_Read... [14:33:33]*** Stop cut motor [14:33:33]*** Cut end [14:33:33]Read from MH i2c: 01 07 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: 01 07 00 58 B9 00 00 00 00 00 FF 0F 26 [14:33:33]process_action print_text done [14:33:33]requested_data is exist [14:33:33]produce_requested_data [14:33:33]requested_item fm.sn is exist - process it [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 11 00 00 [14:33:33]Write to MH i2c: E2 08 00 59 B9 80 11 00 00 00 00 00 00 8C [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 17 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 17 00 59 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 E8 [14:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:33:33]wFMCommunicate OK [14:33:33]requested_item fd.num is exist - process it [14:33:33]SAM_PROTO_GetFieldsCounters [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 13 00 00 [14:33:33]Write to MH i2c: E2 08 00 5A B9 80 13 00 00 00 00 00 00 8F [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 62 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 62 00 5A B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [14: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:33]wFMCommunicate OK [14:33:33]SAM_PROTO_GetFieldsCounters done [14:33:33]requested_item shift.num is exist - process it [14:33:33]requested_item shift.opened is exist - process it [14:33:33]req_shift_opened [14:33:33]FM_GetShiftState [14:33:33]SAM_PROTO_GetShiftState [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 13 01 00 [14:33:33]Write to MH i2c: E2 08 00 5B B9 80 13 01 00 00 00 00 00 91 [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 0E 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 0E 00 5B B9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 CA [14:33:33]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:33:33]wFMCommunicate OK [14:33:33]SAM_PROTO_GetShiftState done [14:33:33]FM_GetShiftState done [14:33:33]req_shift_opened done [14:33:33]requested_item shift.open_date is exist - process it [14:33:33]req_shift_open_date [14:33:33]req_shift_open_date done [14:33:33]produce_requested_data done [14:33:33]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:33:33]process_action_free print_text [14:33:33]json_value_free [14:33:33]json_value_free done [14:33:33]process_json_proto returns [14:33:33]Send response to host [14:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:33:33]free response buf [14:33:33]execute_script done [14:33:33]execute_script returns [14:33:33]free content buf [14:33:33]Sock 9.Close socket [14:33:33]Sock 9.Thread stoped [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:20]accept exits with 7 [14:36:20]New connection [14:36:20]New thread 3067002212 created [14:36:20]Thread 3066858852 joined [14:36:20]Waiting for new connection... [14:36:20] Sock 7.Parse request [14:36:20]Sock 7.Check first char [14:36:20]Sock 7.First char is OK [14:36:20]request: POST /json_proto HTTP/1.0 [14:36:20]Method: POST [14:36:20]URL: /json_proto [14:36:20]Method is POST - this is cgi request [14:36:20]url: /json_proto [14:36:20]query_string will be loaded in cgi processing [14:36:20]execute_cgi json_proto POST (null) [14:36:20]execute_cgi path=json_proto method=POST [14:36:20]POST find Content-Length [14:36:20]Host: 172.17.49.132:8080 [14:36:20]Content-Length: 1251 [14:36:20]Content-Type: application/json [14:36:20] [14:36:20]POST finish read [14:36:20]Found Content-Length = 1251 [14:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874912\u000A01.08.2024 13:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918412;413;410;408;492;504;493;494;503;502\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:20]execute_script... [14:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 125\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411.\u000A\u0421\u0447\u0435\u0442 N : (1)874912\u000A01.08.2024 13:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 62\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 100.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 6780.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3918412;413;410;408;492;504;493;494;503;502\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:20]POST & json_proto [14:36:20]process_json_proto [14:36:20]json parsed OK: [14:36:20]protocol is kg_v1.0 [14:36:20]action value=print_text [14:36:20]process_action print_text [14:36:20]cmd_print_text [14:36:20]ExternCall_PrintAddStr [14:36:20]wPrintStart [14:36:20]Write to MH i2c: 01 00 00 5C B9 15 [14:36:20]Write i2c OK [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: 01 [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: 01 07 00 [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: 01 07 00 5C B9 00 00 00 00 00 FF 0F 2A [14:36:20]RasterBufferAndPrint [14:36:20]line *****ТОВАРНЫЙ ЧЕК***** [14:36:20]line АЗС 125 [14:36:20]line Партнер нефть [14:36:20]line 02508201610067 [14:36:20]line Кассир : Мадаминова Б. [14:36:20]line Счет N : (1)874912 [14:36:20]line 01.08.2024 13:57 [14:36:20]line ПРОДАЖА [14:36:20]line ТРК (МРК, ГНК): 62 [14:36:20]line Вид ГСМ : 2710124130 [14:36:20]line Аи-92-К-5 [14:36:20]line 100.000 x 67.80 [14:36:20]line ИТОГ: 6780.00 [14:36:20]line Тип оплаты: Талоны: Топливные Талоны [14:36:20]line 3918412;413;410;408;492;504;493;494;503;502 [14:36:20]line ______________________ [14:36:20]line (подпись) [14:36:20]written 0, free lines is 4095 [14:36:20]Write to MH i2c: 01 00 00 71 B9 2A [14:36:20]Write i2c OK [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: 01 [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: 01 07 00 [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: 01 07 00 71 B9 00 00 00 00 00 0B 0E 4A [14:36:20]RasterBufferAndPrint [14:36:20]line [14:36:20]line [14:36:20]line [14:36:20]line [14:36:20]line [14:36:20]written 0, free lines is 3596 [14:36:20]MH_Cut [14:36:20]Write to MH i2c: D1 01 00 78 B9 01 03 [14:36:20]Write i2c OK [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: D1 [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: D1 01 00 [14:36:20]MH_I2C_Read... [14:36:20]Read from MH i2c: D1 01 00 78 B9 00 02 [14:36:20]Write to MH i2c: 01 00 00 79 B9 32 [14:36:20]Write i2c OK [14:36:20]MH_I2C_Read... [14:36:21]*** Cut start [14:36:21]*** Partial cut [14:36:21]*** CUTSNS_PIN = 1 [14:36:21]*** CUTSNS_PIN = 0 [14:36:21]*** Brake cut motor [14:36:21]Read from MH i2c: 01 [14:36:21]MH_I2C_Read... [14:36:21]*** Stop cut motor [14:36:21]*** Cut end [14:36:21]Read from MH i2c: 01 07 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: 01 07 00 79 B9 00 00 00 00 00 FF 0F 47 [14:36:21]process_action print_text done [14:36:21]requested_data is exist [14:36:21]produce_requested_data [14:36:21]requested_item fm.sn is exist - process it [14:36:21]wFMCommunicate request_size=4 [14:36:21]MH_SAM_APDU [14:36:21]CAPDU: 80 11 00 00 [14:36:21]Write to MH i2c: E2 08 00 7A B9 80 11 00 00 00 00 00 00 AD [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:21]Read from MH i2c: E2 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 17 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 17 00 7A B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 09 [14:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:36:21]wFMCommunicate OK [14:36:21]requested_item fd.num is exist - process it [14:36:21]SAM_PROTO_GetFieldsCounters [14:36:21]wFMCommunicate request_size=4 [14:36:21]MH_SAM_APDU [14:36:21]CAPDU: 80 13 00 00 [14:36:21]Write to MH i2c: E2 08 00 7B B9 80 13 00 00 00 00 00 00 B0 [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:21]Read from MH i2c: E2 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 62 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 62 00 7B B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:36:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 20 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:21]wFMCommunicate OK [14:36:21]SAM_PROTO_GetFieldsCounters done [14:36:21]requested_item shift.num is exist - process it [14:36:21]requested_item shift.opened is exist - process it [14:36:21]req_shift_opened [14:36:21]FM_GetShiftState [14:36:21]SAM_PROTO_GetShiftState [14:36:21]wFMCommunicate request_size=4 [14:36:21]MH_SAM_APDU [14:36:21]CAPDU: 80 13 01 00 [14:36:21]Write to MH i2c: E2 08 00 7C B9 80 13 01 00 00 00 00 00 B2 [14:36:21]Write i2c OK [14:36:21]MH_I2C_Read... [14:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:21]Read from MH i2c: E2 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 0E 00 [14:36:21]MH_I2C_Read... [14:36:21]Read from MH i2c: E2 0E 00 7C B9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 EB [14:36:21]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:36:21]wFMCommunicate OK [14:36:21]SAM_PROTO_GetShiftState done [14:36:21]FM_GetShiftState done [14:36:21]req_shift_opened done [14:36:21]requested_item shift.open_date is exist - process it [14:36:21]req_shift_open_date [14:36:21]req_shift_open_date done [14:36:21]produce_requested_data done [14:36:21]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:36:21]process_action_free print_text [14:36:21]json_value_free [14:36:21]json_value_free done [14:36:21]process_json_proto returns [14:36:21]Send response to host [14:36:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69920,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:36:21]free response buf [14:36:21]execute_script done [14:36:21]execute_script returns [14:36:21]free content buf [14:36:21]Sock 7.Close socket [14:36:21]Sock 7.Thread stoped [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:52]accept exits with 9 [14:38:52]New connection [14:38:52]New thread 3066858852 created [14:38:52]Thread 3067002212 joined [14:38:52]Waiting for new connection... [14:38:52] Sock 9.Parse request [14:38:52]Sock 9.Check first char [14:38:52]Sock 9.First char is OK [14:38:52]request: POST /json_proto HTTP/1.0 [14:38:52]Method: POST [14:38:52]URL: /json_proto [14:38:52]Method is POST - this is cgi request [14:38:52]url: /json_proto [14:38:52]query_string will be loaded in cgi processing [14:38:52]execute_cgi json_proto POST (null) [14:38:52]execute_cgi path=json_proto method=POST [14:38:52]POST find Content-Length [14:38:52]Host: 172.17.49.132:8080 [14:38:52]Content-Length: 644 [14:38:52]Content-Type: application/json [14:38:52] [14:38:52]POST finish read [14:38:52]Found Content-Length = 644 [14:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)137140", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]execute_script... [14:38: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 : (3)137140", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:52]POST & json_proto [14:38:52]process_json_proto [14:38:52]json parsed OK: [14:38:52]protocol is kg_v1.0 [14:38:52]action value=close_receipt [14:38:52]process_action close_receipt [14:38:52]cmd_close_receipt [14:38:52]MH_GetDate [14:38:52]Write to MH i2c: F0 00 00 7D B9 25 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 09 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: F0 09 00 7D B9 00 0F 9E AB 66 E7 4B C0 64 42 [14:38:52]GetLastDocTimeStamp 1722521333 [14:38:52]current date 1722523151 [14:38:52]FM_GetShiftState [14:38:52]SAM_PROTO_GetShiftState [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 01 00 [14:38:52]Write to MH i2c: E2 08 00 7E B9 80 13 01 00 00 00 00 00 B4 [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 0E 00 7E B9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 ED [14:38:52]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:38:52]wFMCommunicate OK [14:38:52]SAM_PROTO_GetShiftState done [14:38:52]FM_GetShiftState done [14:38:52]opened in 1722472772 [14:38:52]opened+sec_in_day 1722559172 [14:38:52]quantity*price = 3500 [14:38:52]sum+1 = 3501 [14:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 125 "Партнер Нефть" Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 СНО: Общий режим Чек 84 01.08.2024 14:39 Смена: 433 ФФД: 1.0 ЗНМ: 0300000049 РНМ: 0000000000092638 Версия ККМ: 001 ФМ: 0000000000874949 ФД: 69921 ФПД: 146779993085922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T143911&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69921&fm=146779993085922&tin=02508201610067®Number=0000000000092638&sum=3500 0 [14:38:53]StoreToDocumentArchive [14:38:53]shift 433 fd 69921 [14:38:53]save to /storage/0433/doc_00069921 [14:38:53]save last doc name /storage/0433/doc_00069921 to /storage/kkm_last_doc_name [14:38:53]save OK [14:38:53]Clear old archive folders... [14:38:53]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:38:53]tlvbuf is 01213540 [14:38:53]SAM_PROTO_ClearQueue [14:38:53]wFMCommunicate request_size=4 [14:38:53]MH_SAM_APDU [14:38:53]CAPDU: 80 09 00 00 [14:38:53]Write to MH i2c: E2 08 00 8B B9 80 09 00 00 00 00 00 00 B6 [14:38:53]Write i2c OK [14:38:53]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 8B B9 00 90 00 B8 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_ClearQueue done [14:38:54]KKMCreateOFDPacket [14:38:54]OFDProtocolAddRootSTLVToBuf [14:38:54]FM_MakeSignedData [14:38:54]FM_MakeSignedData [14:38:54]SAM_PROTO_SignData [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 01 02 [14:38:54]Write to MH i2c: E2 08 00 8C B9 80 0D 01 02 00 00 00 00 BE [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 8C B9 00 90 00 B9 [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=255 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0F 9E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 [14:38:54]Write to MH i2c: E2 02 01 8D B9 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0F 9E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 00 00 6D [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]OFD Sender: No OFD packet to send [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 8D B9 00 90 00 BA [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=34 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 11 01 00 35 04 06 00 85 7E E1 59 17 E2 [14:38:54]Write to MH i2c: E2 25 00 8E B9 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 11 01 00 35 04 06 00 85 7E E1 59 17 E2 00 00 F4 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 03 00 8E B9 00 90 00 BB [14:38:54]RAPDU: 90 00 [14:38:54]wFMCommunicate OK [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 0D 03 02 [14:38:54]Write to MH i2c: E2 08 00 8F B9 80 0D 03 02 00 00 00 00 C3 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 0B 00 8F B9 00 61 DE B8 43 F1 E8 9E 44 90 00 B9 [14:38:54]RAPDU: 61 DE B8 43 F1 E8 9E 44 90 00 [14:38:54]wFMCommunicate OK [14:38:54]SAM_PROTO_SignData done [14:38:54]FM_MakeSignedData done [14:38:54]CreateOFDProtocolMessage [14:38:54]wFMCommunicate request_size=4 [14:38:54]MH_SAM_APDU [14:38:54]CAPDU: 80 11 00 00 [14:38:54]Write to MH i2c: E2 08 00 90 B9 80 11 00 00 00 00 00 00 C3 [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:54]Read from MH i2c: E2 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: E2 17 00 90 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 1F [14:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:38:54]wFMCommunicate OK [14:38:54]CreateOFDProtocolMessage done [14:38:54]OFDSenderStorePacket 69921 [14:38:54]StoreOFDPacket docnum=69921 [14:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 3A 2B 1F 01 E1 02 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0F 9E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 11 01 00 35 04 06 00 85 7E E1 59 17 E2 61 DE B8 43 F1 E8 9E 44 [14:38:54]CheckFolder [14:38:54]dirname=/storage/ofd_packets [14:38:54]CheckFolder done [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00069921 [14:38:54]NVStorageSaveData ofd_packets/00069921 [14:38:54]File name is /storage/ofd_packets/00069921 [14:38:54]Write 325 bytes [14:38:54]NVStorageSaveData done [14:38:54]OFDSenderStorePacket done [14:38:54]KKMCreateOFDPacket done [14:38:54]NVStorageSaveData kkm_last_timestamp [14:38:54]File name is /storage/kkm_last_timestamp [14:38:54]Write 4 bytes [14:38:54]NVStorageSaveData done [14:38:54]ExternCall_PrintAddStr [14:38:54]wPrintStart [14:38:54]Write to MH i2c: 01 00 00 91 B9 4A [14:38:54]Write i2c OK [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 [14:38:54]MH_I2C_Read... [14:38:54]Read from MH i2c: 01 07 00 91 B9 00 00 00 00 00 FF 0F 5F [14:38:54]RasterBufferAndPrint [14:38:54]line Счет N : (3)137140 [14:38:54]line ИНН: 02508201610067 [14:38:54]line Контрольно-Кассовый Чек [14:38:54]line ПРОДАЖА [14:38:54]line Товар: 4700000310326 [14:38:54]line Вода Адыгене 1л б/г [14:38:54]line 1.000 * 35.00 [14:38:54]line = 35.00 [14:38:54]line НДС 12% НСП 1% [14:38:54]line > о реализуемом товаре [14:38:54]line ИТОГО: 35.00 [14:38:54]line НСП 1% : 0.31 [14:38:54]line НДС 12% : 3.72 [14:38:54]line Наличными: 35.00 [14:38:54]line Безнал.: 0.00 [14:38:54]line Место: АЗС № 125 "Партнер Нефть" [14:38:54]line Адрес: 720001, г. Раззаков, ул. Восточная 163, 39.836150, 69.553086 [14:38:54]line СНО: Общий режим [14:38:54]line Чек 84 01.08.2024 14:39 [14:38:54]line Смена: 433 ФФД: 1.0 [14:38:54]line ЗНМ: 0300000049 [14:38:54]line РНМ: 0000000000092638 [14:38:54]line Версия ККМ: 001 [14:38:54]line ФМ: 0000000000874949 [14:38:54]line ФД: 69921 [14:38:54]line ФПД: 146779993085922 [14:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240801T143911&type=1&operation_type=1&fn_number=0000000000874949&fd_number=69921&fm=146779993085922&tin=02508201610067®Number=0000000000092638&sum=3500 [14:38:54]line 0 [14:38:54]OFD Sender: Processing packet 69921 [packets to send 19, broken 18] [14:38:54]ProducePacketName [14:38:54]name=ofd_packets/00069921 [14:38:54]OFD Sender: To server: pG, [14:38:54]CommunicateWithHost lk.salyk.kg:30040 [14:38:54]ConnectInit lk.salyk.kg [14:38:54]written 0, free lines is 4095 [14:38:54]Connected sock=10 [14:38:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 27 01 00 00 3A 2B 1F 01 E1 02 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0F 9E AB 66 0E 04 04 00 B1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 11 01 00 35 04 06 00 85 7E E1 59 17 E2 61 DE B8 43 F1 E8 9E 44 [14:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 B2 E8 47 00 4D 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 21 11 01 00 F4 03 04 00 70 44 AB 66 B6 04 01 00 00 EE B6 E7 30 25 70 FD 99 [14:38:55]CommunicateWithHost err = 0 [14:38:55]CheckOFDResponse [14:38:55]1017 (14) - 77093643461234 [14:38:55]1041 (16) - 0000000000874949 [14:38:55]1040 (4) - 69921 [14:38:55]1012 (4) - 01.08.2024 08:16 [14:38:55]1206 (1) - 0 [14:38:55]OFD Sender: Remove packet 69921 [14:38:55]ProducePacketName [14:38:55]name=ofd_packets/00069921 [14:38:55]NVStorageDeleteData [14:38:55]Write to MH i2c: 01 00 00 B9 B9 72 [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: 01 07 00 B9 B9 00 00 00 00 00 25 0D AB [14:38:55]RasterBufferAndPrint [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]line [14:38:55]written 0, free lines is 3372 [14:38:55]MH_Cut [14:38:55]Write to MH i2c: D1 01 00 C0 B9 01 4B [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 01 00 [14:38:55]MH_I2C_Read... [14:38:55]Read from MH i2c: D1 01 00 C0 B9 00 4A [14:38:55]Write to MH i2c: 01 00 00 C1 B9 7A [14:38:55]Write i2c OK [14:38:55]MH_I2C_Read... [14:38:55]OFD Sender: No OFD packet to send [14:38:55]*** Cut start [14:38:55]*** Partial cut [14:38:55]*** CUTSNS_PIN = 1 [14:38:55]*** CUTSNS_PIN = 0 [14:38:56]*** Brake cut motor [14:38:56]Read from MH i2c: 01 [14:38:56]MH_I2C_Read... [14:38:56]*** Stop cut motor [14:38:56]*** Cut end [14:38:56]Read from MH i2c: 01 07 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: 01 07 00 C1 B9 00 00 00 00 00 FF 0F 8F [14:38:56]process_action close_receipt done [14:38:56]requested_data is exist [14:38:56]produce_requested_data [14:38:56]requested_item fm.sn is exist - process it [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 11 00 00 [14:38:56]Write to MH i2c: E2 08 00 C2 B9 80 11 00 00 00 00 00 00 F5 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 17 00 C2 B9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 51 [14:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:38:56]wFMCommunicate OK [14:38:56]requested_item fd.num is exist - process it [14:38:56]SAM_PROTO_GetFieldsCounters [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 13 00 00 [14:38:56]Write to MH i2c: E2 08 00 C3 B9 80 13 00 00 00 00 00 00 F8 [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 62 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 62 00 C3 B9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:38:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_GetFieldsCounters done [14:38:56]requested_item shift.num is exist - process it [14:38:56]requested_item shift.opened is exist - process it [14:38:56]req_shift_opened [14:38:56]FM_GetShiftState [14:38:56]SAM_PROTO_GetShiftState [14:38:56]wFMCommunicate request_size=4 [14:38:56]MH_SAM_APDU [14:38:56]CAPDU: 80 13 01 00 [14:38:56]Write to MH i2c: E2 08 00 C4 B9 80 13 01 00 00 00 00 00 FA [14:38:56]Write i2c OK [14:38:56]MH_I2C_Read... [14:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:56]Read from MH i2c: E2 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0E 00 [14:38:56]MH_I2C_Read... [14:38:56]Read from MH i2c: E2 0E 00 C4 B9 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 33 [14:38:56]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:38:56]wFMCommunicate OK [14:38:56]SAM_PROTO_GetShiftState done [14:38:56]FM_GetShiftState done [14:38:56]req_shift_opened done [14:38:56]requested_item shift.open_date is exist - process it [14:38:56]req_shift_open_date [14:38:56]req_shift_open_date done [14:38:56]produce_requested_data done [14:38:56]produce_requested_data return {"fm.sn":"0000000000874949","fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:38:56]process_action_free close_receipt [14:38:56]json_value_free [14:38:56]json_value_free done [14:38:56]process_json_proto returns [14:38:56]Send response to host [14:38:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874949","fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:38:56]free response buf [14:38:56]execute_script done [14:38:56]execute_script returns [14:38:56]free content buf [14:38:56]Sock 9.Close socket [14:38:56]Sock 9.Thread stoped [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:45:23]ConnectInit Can't connect to host [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51: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]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:51]accept exits with 10 [14:54:51]New connection [14:54:51]New thread 3067002212 created [14:54:51]Thread 3066858852 joined [14:54:51]Waiting for new connection... [14:54:51] Sock 10.Parse request [14:54:51]Sock 10.Check first char [14:54:51]Sock 10.First char is OK [14:54:51]request: POST /json_proto HTTP/1.0 [14:54:51]Method: POST [14:54:51]URL: /json_proto [14:54:51]Method is POST - this is cgi request [14:54:51]url: /json_proto [14:54:51]query_string will be loaded in cgi processing [14:54:51]execute_cgi json_proto POST (null) [14:54:51]execute_cgi path=json_proto method=POST [14:54:51]POST find Content-Length [14:54:51]Host: 172.17.49.132:8080 [14:54:51]Content-Length: 215 [14:54:51]Content-Type: application/json [14:54:51] [14:54:51]POST finish read [14:54:51]Found Content-Length = 215 [14:54: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" ] } } [14:54:51]execute_script... [14:54: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" ] } } [14:54:51]POST & json_proto [14:54:51]process_json_proto [14:54:51]json parsed OK: [14:54:51]protocol is kg_v1.0 [14:54:51]action value=get_value [14:54:51]process_action get_value [14:54:51]cmd_get_value [14:54:51]process_action get_value done [14:54:51]requested_data is exist [14:54:51]produce_requested_data [14:54:51]requested_item kkm.sn is exist - process it [14:54:51]requested_item kkm.ver is exist - process it [14:54:51]requested_item fm.sn is exist - process it [14:54:51]wFMCommunicate request_size=4 [14:54:51]MH_SAM_APDU [14:54:51]CAPDU: 80 11 00 00 [14:54:51]Write to MH i2c: E2 08 00 07 BA 80 11 00 00 00 00 00 00 3B [14:54:51]Write i2c OK [14:54:51]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 17 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 17 00 07 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 97 [14:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:54:52]wFMCommunicate OK [14:54:52]requested_item fd.num is exist - process it [14:54:52]SAM_PROTO_GetFieldsCounters [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 13 00 00 [14:54:52]Write to MH i2c: E2 08 00 08 BA 80 13 00 00 00 00 00 00 3E [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 62 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 62 00 08 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [14: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:52]wFMCommunicate OK [14:54:52]SAM_PROTO_GetFieldsCounters done [14:54:52]requested_item shift.num is exist - process it [14:54:52]requested_item shift.opened is exist - process it [14:54:52]req_shift_opened [14:54:52]FM_GetShiftState [14:54:52]SAM_PROTO_GetShiftState [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 13 01 00 [14:54:52]Write to MH i2c: E2 08 00 09 BA 80 13 01 00 00 00 00 00 40 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 0E 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 0E 00 09 BA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 79 [14:54:52]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:54:52]wFMCommunicate OK [14:54:52]SAM_PROTO_GetShiftState done [14:54:52]FM_GetShiftState done [14:54:52]req_shift_opened done [14:54:52]requested_item shift.open_date is exist - process it [14:54:52]req_shift_open_date [14:54:52]req_shift_open_date done [14:54:52]produce_requested_data done [14:54:52]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:54:52]process_action_free get_value [14:54:52]json_value_free [14:54:52]json_value_free done [14:54:52]process_json_proto returns [14:54:52]Send response to host [14:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:54:52]free response buf [14:54:52]execute_script done [14:54:52]execute_script returns [14:54:52]free content buf [14:54:52]Sock 10.Close socket [14:54:52]Sock 10.Thread stoped [14:54:52]accept exits with 7 [14:54:52]New connection [14:54:52]New thread 3066858852 created [14:54:52]Thread 3067002212 joined [14:54:52]Waiting for new connection... [14:54:52] Sock 7.Parse request [14:54:52]Sock 7.Check first char [14:54:52]Sock 7.First char is OK [14:54:52]request: POST /json_proto HTTP/1.0 [14:54:52]Method: POST [14:54:52]URL: /json_proto [14:54:52]Method is POST - this is cgi request [14:54:52]url: /json_proto [14:54:52]query_string will be loaded in cgi processing [14:54:52]execute_cgi json_proto POST (null) [14:54:52]execute_cgi path=json_proto method=POST [14:54:52]POST find Content-Length [14:54:52]Host: 172.17.49.132:8080 [14:54:52]Content-Length: 331 [14:54:52]Content-Type: application/json [14:54:52] [14:54:52]POST finish read [14:54:52]Found Content-Length = 331 [14:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:54:52]execute_script... [14:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:54:52]POST & json_proto [14:54:52]process_json_proto [14:54:52]json parsed OK: [14:54:52]protocol is kg_v1.0 [14:54:52]action value=get_value [14:54:52]process_action get_value [14:54:52]cmd_get_value [14:54:52]process_action get_value done [14:54:52]requested_data is exist [14:54:52]produce_requested_data [14:54:52]requested_item fm.sale.total is exist - process it [14:54:52]SAM_PROTO_GetFMData [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 13 03 00 [14:54:52]Write to MH i2c: E2 08 00 0A BA 80 13 03 00 00 00 00 00 43 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:54:52]Read from MH i2c: E2 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 FD 00 [14:54:52]MH_I2C_Read... [14:54:52]Read from MH i2c: E2 FD 00 0A BA 00 C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 C1 [14:54:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [14:54:52]wFMCommunicate OK [14:54:52]wFMCommunicate request_size=4 [14:54:52]MH_SAM_APDU [14:54:52]CAPDU: 80 17 00 00 [14:54:52]Write to MH i2c: E2 08 00 0B BA 80 17 00 00 00 00 00 00 45 [14:54:52]Write i2c OK [14:54:52]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 FD 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 FD 00 0B BA 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 35 [14:54:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:54:53]wFMCommunicate OK [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 17 00 00 [14:54:53]Write to MH i2c: E2 08 00 0C BA 80 17 00 00 00 00 00 00 46 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 FD 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 FD 00 0C BA 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 58 [14:54:53]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 [14:54:53]wFMCommunicate OK [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 17 00 00 [14:54:53]Write to MH i2c: E2 08 00 0D BA 80 17 00 00 00 00 00 00 47 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:53]Read from MH i2c: E2 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 FD 00 [14:54:53]MH_I2C_Read... [14:54:53]Read from MH i2c: E2 FD 00 0D BA 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 D3 [14:54:53]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 [14:54:53]wFMCommunicate OK [14:54:53]wFMCommunicate request_size=4 [14:54:53]MH_SAM_APDU [14:54:53]CAPDU: 80 17 00 00 [14:54:53]Write to MH i2c: E2 08 00 0E BA 80 17 00 00 00 00 00 00 48 [14:54:53]Write i2c OK [14:54:53]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 E2 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 E2 00 0E BA 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 26 [14:54:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:54:54]wFMCommunicate OK [14:54:54]SAM_PROTO_GetFMData done [14:54:54]requested_item fm.sale_refund.total is exist - process it [14:54:54]requested_item fm.buy.total is exist - process it [14:54:54]requested_item shift.sale.total is exist - process it [14:54:54]SAM_PROTO_GetShiftData [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 13 02 00 [14:54:54]Write to MH i2c: E2 08 00 0F BA 80 13 02 00 00 00 00 00 47 [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 FD 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 FD 00 0F BA 00 AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BD [14:54:54]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:54:54]wFMCommunicate OK [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 17 00 00 [14:54:54]Write to MH i2c: E2 08 00 10 BA 80 17 00 00 00 00 00 00 4A [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:54]Read from MH i2c: E2 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 FD 00 [14:54:54]MH_I2C_Read... [14:54:54]Read from MH i2c: E2 FD 00 10 BA 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 6C [14:54:54]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 [14:54:54]wFMCommunicate OK [14:54:54]wFMCommunicate request_size=4 [14:54:54]MH_SAM_APDU [14:54:54]CAPDU: 80 17 00 00 [14:54:54]Write to MH i2c: E2 08 00 11 BA 80 17 00 00 00 00 00 00 4B [14:54:54]Write i2c OK [14:54:54]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 FD 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 FD 00 11 BA 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [14:54:55]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 [14:54:55]wFMCommunicate OK [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 17 00 00 [14:54:55]Write to MH i2c: E2 08 00 12 BA 80 17 00 00 00 00 00 00 4C [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 FD 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 FD 00 12 BA 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 BE [14:54:55]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 [14:54:55]wFMCommunicate OK [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 17 00 00 [14:54:55]Write to MH i2c: E2 08 00 13 BA 80 17 00 00 00 00 00 00 4D [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:54:55]Read from MH i2c: E2 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 CB 00 [14:54:55]MH_I2C_Read... [14:54:55]Read from MH i2c: E2 CB 00 13 BA 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 36 [14:54:55]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 [14:54:55]wFMCommunicate OK [14:54:55]SAM_PROTO_GetShiftData done [14:54:55]requested_item shift.sale.total_cash is exist - process it [14:54:55]requested_item shift.sale_refund.total is exist - process it [14:54:55]requested_item shift.sale_refund.total_cash is exist - process it [14:54:55]requested_item shift.buy.total is exist - process it [14:54:55]requested_item shift.buy.total_cash is exist - process it [14:54:55]produce_requested_data done [14:54:55]produce_requested_data return {"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:54:55]process_action_free get_value [14:54:55]json_value_free [14:54:55]json_value_free done [14:54:55]process_json_proto returns [14:54:55]Send response to host [14:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:54:55]free response buf [14:54:55]execute_script done [14:54:55]execute_script returns [14:54:55]free content buf [14:54:55]Sock 7.Close socket [14:54:55]Sock 7.Thread stoped [14:54:55]accept exits with 9 [14:54:55]New connection [14:54:55]New thread 3067002212 created [14:54:55]Thread 3066858852 joined [14:54:55]Waiting for new connection... [14:54:55] Sock 9.Parse request [14:54:55]Sock 9.Check first char [14:54:55]Sock 9.First char is OK [14:54:55]request: POST /json_proto HTTP/1.0 [14:54:55]Method: POST [14:54:55]URL: /json_proto [14:54:55]Method is POST - this is cgi request [14:54:55]url: /json_proto [14:54:55]query_string will be loaded in cgi processing [14:54:55]execute_cgi json_proto POST (null) [14:54:55]execute_cgi path=json_proto method=POST [14:54:55]POST find Content-Length [14:54:55]Host: 172.17.49.132:8080 [14:54:55]Content-Length: 331 [14:54:55]Content-Type: application/json [14:54:55] [14:54:55]POST finish read [14:54:55]Found Content-Length = 331 [14:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:54:55]execute_script... [14:54:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:54:55]POST & json_proto [14:54:55]process_json_proto [14:54:55]json parsed OK: [14:54:55]protocol is kg_v1.0 [14:54:55]action value=get_value [14:54:55]process_action get_value [14:54:55]cmd_get_value [14:54:55]process_action get_value done [14:54:55]requested_data is exist [14:54:55]produce_requested_data [14:54:55]requested_item fm.sale.total is exist - process it [14:54:55]SAM_PROTO_GetFMData [14:54:55]wFMCommunicate request_size=4 [14:54:55]MH_SAM_APDU [14:54:55]CAPDU: 80 13 03 00 [14:54:55]Write to MH i2c: E2 08 00 14 BA 80 13 03 00 00 00 00 00 4D [14:54:55]Write i2c OK [14:54:55]MH_I2C_Read... [14:54:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:54:56]Read from MH i2c: E2 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 FD 00 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 FD 00 14 BA 00 C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 CB [14:54:56]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [14:54:56]wFMCommunicate OK [14:54:56]wFMCommunicate request_size=4 [14:54:56]MH_SAM_APDU [14:54:56]CAPDU: 80 17 00 00 [14:54:56]Write to MH i2c: E2 08 00 15 BA 80 17 00 00 00 00 00 00 4F [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:56]OFD Sender: No OFD packet to send [14:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:56]Read from MH i2c: E2 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 FD 00 [14:54:56]MH_I2C_Read... [14:54:56]Read from MH i2c: E2 FD 00 15 BA 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 3F [14:54:56]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:54:56]wFMCommunicate OK [14:54:56]wFMCommunicate request_size=4 [14:54:56]MH_SAM_APDU [14:54:56]CAPDU: 80 17 00 00 [14:54:56]Write to MH i2c: E2 08 00 16 BA 80 17 00 00 00 00 00 00 50 [14:54:56]Write i2c OK [14:54:56]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 FD 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 FD 00 16 BA 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 62 [14:54:57]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 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 17 00 00 [14:54:57]Write to MH i2c: E2 08 00 17 BA 80 17 00 00 00 00 00 00 51 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 FD 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 FD 00 17 BA 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 DD [14:54:57]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 [14:54:57]wFMCommunicate OK [14:54:57]wFMCommunicate request_size=4 [14:54:57]MH_SAM_APDU [14:54:57]CAPDU: 80 17 00 00 [14:54:57]Write to MH i2c: E2 08 00 18 BA 80 17 00 00 00 00 00 00 52 [14:54:57]Write i2c OK [14:54:57]MH_I2C_Read... [14:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:54:57]Read from MH i2c: E2 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 E2 00 [14:54:57]MH_I2C_Read... [14:54:57]Read from MH i2c: E2 E2 00 18 BA 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 30 [14:54:57]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 [14:54:58]wFMCommunicate OK [14:54:58]SAM_PROTO_GetFMData done [14:54:58]requested_item fm.sale_refund.total is exist - process it [14:54:58]requested_item fm.buy.total is exist - process it [14:54:58]requested_item shift.sale.total is exist - process it [14:54:58]SAM_PROTO_GetShiftData [14:54:58]wFMCommunicate request_size=4 [14:54:58]MH_SAM_APDU [14:54:58]CAPDU: 80 13 02 00 [14:54:58]Write to MH i2c: E2 08 00 19 BA 80 13 02 00 00 00 00 00 51 [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:54:58]Read from MH i2c: E2 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: E2 FD 00 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: E2 FD 00 19 BA 00 AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C7 [14:54:58]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:54:58]wFMCommunicate OK [14:54:58]wFMCommunicate request_size=4 [14:54:58]MH_SAM_APDU [14:54:58]CAPDU: 80 17 00 00 [14:54:58]Write to MH i2c: E2 08 00 1A BA 80 17 00 00 00 00 00 00 54 [14:54:58]Write i2c OK [14:54:58]MH_I2C_Read... [14:54:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:58]Read from MH i2c: E2 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: E2 FD 00 [14:54:58]MH_I2C_Read... [14:54:58]Read from MH i2c: E2 FD 00 1A BA 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 76 [14:54:59]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 [14:54:59]wFMCommunicate OK [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 17 00 00 [14:54:59]Write to MH i2c: E2 08 00 1B BA 80 17 00 00 00 00 00 00 55 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 FD 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 FD 00 1B BA 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [14:54:59]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 [14:54:59]wFMCommunicate OK [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 17 00 00 [14:54:59]Write to MH i2c: E2 08 00 1C BA 80 17 00 00 00 00 00 00 56 [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 FD 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 FD 00 1C BA 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 C8 [14:54:59]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 [14:55:00]wFMCommunicate OK [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 17 00 00 [14:55:00]Write to MH i2c: E2 08 00 1D BA 80 17 00 00 00 00 00 00 57 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 CB 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 CB 00 1D BA 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 40 [14:55:00]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 [14:55:00]wFMCommunicate OK [14:55:00]SAM_PROTO_GetShiftData done [14:55:00]requested_item shift.sale.total_cash is exist - process it [14:55:00]requested_item shift.sale_refund.total is exist - process it [14:55:00]requested_item shift.sale_refund.total_cash is exist - process it [14:55:00]requested_item shift.buy.total is exist - process it [14:55:00]requested_item shift.buy.total_cash is exist - process it [14:55:00]produce_requested_data done [14:55:00]produce_requested_data return {"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:55:00]process_action_free get_value [14:55:00]json_value_free [14:55:00]json_value_free done [14:55:00]process_json_proto returns [14:55:00]Send response to host [14:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:55:00]free response buf [14:55:00]execute_script done [14:55:00]execute_script returns [14:55:00]free content buf [14:55:00]Sock 9.Close socket [14:55:00]Sock 9.Thread stoped [14:55:00]accept exits with 10 [14:55:00]New connection [14:55:00]New thread 3066858852 created [14:55:00]Thread 3067002212 joined [14:55:00]Waiting for new connection... [14:55:00] Sock 10.Parse request [14:55:00]Sock 10.Check first char [14:55:00]Sock 10.First char is OK [14:55:00]request: POST /json_proto HTTP/1.0 [14:55:00]Method: POST [14:55:00]URL: /json_proto [14:55:00]Method is POST - this is cgi request [14:55:00]url: /json_proto [14:55:00]query_string will be loaded in cgi processing [14:55:00]execute_cgi json_proto POST (null) [14:55:00]execute_cgi path=json_proto method=POST [14:55:00]POST find Content-Length [14:55:00]Host: 172.17.49.132:8080 [14:55:00]Content-Length: 268 [14:55:00]Content-Type: application/json [14:55:00] [14:55:00]POST finish read [14:55:00]Found Content-Length = 268 [14:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:00]execute_script... [14:55:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:00]POST & json_proto [14:55:00]process_json_proto [14:55:00]json parsed OK: [14:55:00]protocol is kg_v1.0 [14:55:00]action value=x_report [14:55:00]process_action x_report [14:55:00]cmd_x_report [14:55:00]MH_GetDate [14:55:00]Write to MH i2c: F0 00 00 1E BA C7 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: F0 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: F0 09 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: F0 09 00 1E BA 00 D7 A1 AB 66 E7 4B C0 64 AF [14:55:00]GetLastDocTimeStamp 1722523151 [14:55:00]current date 1722524119 [14:55:00]FM_GetShiftState [14:55:00]SAM_PROTO_GetShiftState [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 13 01 00 [14:55:00]Write to MH i2c: E2 08 00 1F BA 80 13 01 00 00 00 00 00 56 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 0E 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 0E 00 1F BA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 8F [14:55:00]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:55:00]wFMCommunicate OK [14:55:00]SAM_PROTO_GetShiftState done [14:55:00]FM_GetShiftState done [14:55:00]KKMCreateXReportDocument [14:55:00]Load OK [14:55:00]Malloc new data [14:55:00]MH_GetDate [14:55:00]Write to MH i2c: F0 00 00 20 BA C9 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: F0 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: F0 09 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: F0 09 00 20 BA 00 D7 A1 AB 66 E7 4B C0 64 B1 [14:55:00]Malloc new data [14:55:00]Malloc new data [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 11 00 00 [14:55:00]Write to MH i2c: E2 08 00 21 BA 80 11 00 00 00 00 00 00 55 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 17 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 17 00 21 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 B1 [14:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:55:00]wFMCommunicate OK [14:55:00]SAM_PROTO_GetFieldsCounters [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 13 00 00 [14:55:00]Write to MH i2c: E2 08 00 22 BA 80 13 00 00 00 00 00 00 58 [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:00]Read from MH i2c: E2 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 62 00 [14:55:00]MH_I2C_Read... [14:55:00]Read from MH i2c: E2 62 00 22 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [14:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:00]wFMCommunicate OK [14:55:00]SAM_PROTO_GetFieldsCounters done [14:55:00]Malloc new data [14:55:00]Malloc new data [14:55:00]Malloc new data [14:55:00]KKMCreateXReportDocument OK [14:55:00]KKMSetXReportData OK [14:55:00]KKMPrepareXReportFMData [14:55:00]SAM_PROTO_GetShiftData [14:55:00]wFMCommunicate request_size=4 [14:55:00]MH_SAM_APDU [14:55:00]CAPDU: 80 13 02 00 [14:55:00]Write to MH i2c: E2 08 00 23 BA 80 13 02 00 00 00 00 00 5B [14:55:00]Write i2c OK [14:55:00]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 FD 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 FD 00 23 BA 00 AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 [14:55:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:55:01]wFMCommunicate OK [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 17 00 00 [14:55:01]Write to MH i2c: E2 08 00 24 BA 80 17 00 00 00 00 00 00 5E [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]OFD Sender: No OFD packet to send [14:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 FD 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 FD 00 24 BA 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 80 [14:55:01]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 [14:55:02]wFMCommunicate OK [14:55:02]wFMCommunicate request_size=4 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 17 00 00 [14:55:02]Write to MH i2c: E2 08 00 25 BA 80 17 00 00 00 00 00 00 5F [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:02]Read from MH i2c: E2 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 FD 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 FD 00 25 BA 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 16 [14:55:02]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 [14:55:02]wFMCommunicate OK [14:55:02]wFMCommunicate request_size=4 [14:55:02]MH_SAM_APDU [14:55:02]CAPDU: 80 17 00 00 [14:55:02]Write to MH i2c: E2 08 00 26 BA 80 17 00 00 00 00 00 00 60 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:02]Read from MH i2c: E2 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 FD 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: E2 FD 00 26 BA 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 D2 [14:55:02]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 [14:55:03]wFMCommunicate OK [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 17 00 00 [14:55:03]Write to MH i2c: E2 08 00 27 BA 80 17 00 00 00 00 00 00 61 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 CB 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 CB 00 27 BA 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 4A [14:55:03]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 [14:55:03]wFMCommunicate OK [14:55:03]SAM_PROTO_GetShiftData done [14:55:03]1194 (1194) - счетчики итогов смены [14:55:03] 1134 (4) - 84 - количество чеков со всеми признаками расчетов [14:55:03] 1129 (155) - счетчики операций «приход» [14:55:03] 1135 (4) - 84 - количество чеков по признаку расчетов [14:55:03] 1201 (3) - 48583.89 - общая итоговая сумма в чеках [14:55:03] 1136 (3) - 41998.00 - итоговая сумма в чеках наличными [14:55:03] 1138 (3) - 6585.89 - итоговая сумма в чеках безналичными [14:55:03] 1024 (122) - суммы налогов [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 0% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1006 (12) - суммы НДС [14:55:03] 1010 (1) - 12% - код ставки НДС [14:55:03] 1011 (3) - 5159.82 - сумма НДС по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (11) - суммы НСП [14:55:03] 1014 (1) - 1% - код ставки НСП [14:55:03] 1015 (2) - 429.93 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 2% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 3% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 5% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1130 (141) - счетчики операций «возврат прихода» [14:55:03] 1135 (4) - 0 - количество чеков по признаку расчетов [14:55:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:55:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:55:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:55:03] 1024 (117) - суммы налогов [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 0% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 12% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 2% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 3% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 5% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1131 (141) - счетчики операций «расход» [14:55:03] 1135 (4) - 0 - количество чеков по признаку расчетов [14:55:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:55:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:55:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:55:03] 1024 (117) - суммы налогов [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 0% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 12% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 2% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 3% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 5% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1132 (141) - счетчики операций «возврат расхода» [14:55:03] 1135 (4) - 0 - количество чеков по признаку расчетов [14:55:03] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:55:03] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:55:03] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:55:03] 1024 (117) - суммы налогов [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 0% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1006 (9) - суммы НДС [14:55:03] 1010 (1) - 12% - код ставки НДС [14:55:03] 1011 (0) - 0.00 - сумма НДС по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 2% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 3% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 5% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 0,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1007 (9) - суммы НСП [14:55:03] 1014 (1) - 1,50% - код ставки НСП [14:55:03] 1015 (0) - 0.00 - сумма НСП по ставке [14:55:03] 1133 (588) - - счетчики коррекции - не используются [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1194 (04AA) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1134 (046E) [14:55:03]Malloc new data [14:55:03]Processing tag 1129 (0469) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1135 (046F) [14:55:03]Malloc new data [14:55:03]Processing tag 1201 (04B1) [14:55:03]Malloc new data [14:55:03]Processing tag 1136 (0470) [14:55:03]Malloc new data [14:55:03]Processing tag 1138 (0472) [14:55:03]Malloc new data [14:55:03]Processing tag 1024 (0400) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1006 (03EE) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1010 (03F2) [14:55:03]Malloc new data [14:55:03]Processing tag 1011 (03F3) [14:55:03]Malloc new data [14:55:03]SetTLVBufToDocument err=0 [14:55:03]Processing tag 1006 (03EE) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1010 (03F2) [14:55:03]Malloc new data [14:55:03]Processing tag 1011 (03F3) [14:55:03]Malloc new data [14:55:03]SetTLVBufToDocument err=0 [14:55:03]Processing tag 1007 (03EF) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1014 (03F6) [14:55:03]Malloc new data [14:55:03]Processing tag 1015 (03F7) [14:55:03]Malloc new data [14:55:03]SetTLVBufToDocument err=0 [14:55:03]Processing tag 1007 (03EF) [14:55:03]Load OK [14:55:03]SetTLVBufToDocument [14:55:03]Processing tag 1014 (03F6) [14:55:03]Malloc new data [14:55:03]Processing tag 1015 (03F7) [14:55:03]Malloc new data [14:55:03]SetTLVBufToDocument err=0 [14:55:03]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1130 (046A) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1135 (046F) [14:55:04]Malloc new data [14:55:04]Processing tag 1201 (04B1) [14:55:04]Malloc new data [14:55:04]Processing tag 1136 (0470) [14:55:04]Malloc new data [14:55:04]Processing tag 1138 (0472) [14:55:04]Malloc new data [14:55:04]Processing tag 1024 (0400) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1006 (03EE) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1010 (03F2) [14:55:04]Malloc new data [14:55:04]Processing tag 1011 (03F3) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1006 (03EE) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1010 (03F2) [14:55:04]Malloc new data [14:55:04]Processing tag 1011 (03F3) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1131 (046B) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1135 (046F) [14:55:04]Malloc new data [14:55:04]Processing tag 1201 (04B1) [14:55:04]Malloc new data [14:55:04]Processing tag 1136 (0470) [14:55:04]Malloc new data [14:55:04]Processing tag 1138 (0472) [14:55:04]Malloc new data [14:55:04]Processing tag 1024 (0400) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1006 (03EE) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1010 (03F2) [14:55:04]Malloc new data [14:55:04]Processing tag 1011 (03F3) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1006 (03EE) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1010 (03F2) [14:55:04]Malloc new data [14:55:04]Processing tag 1011 (03F3) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1132 (046C) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1135 (046F) [14:55:04]Malloc new data [14:55:04]Processing tag 1201 (04B1) [14:55:04]Malloc new data [14:55:04]Processing tag 1136 (0470) [14:55:04]Malloc new data [14:55:04]Processing tag 1138 (0472) [14:55:04]Malloc new data [14:55:04]Processing tag 1024 (0400) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1006 (03EE) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1010 (03F2) [14:55:04]Malloc new data [14:55:04]Processing tag 1011 (03F3) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1006 (03EE) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1010 (03F2) [14:55:04]Malloc new data [14:55:04]Processing tag 1011 (03F3) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1007 (03EF) [14:55:04]Load OK [14:55:04]SetTLVBufToDocument [14:55:04]Processing tag 1014 (03F6) [14:55:04]Malloc new data [14:55:04]Processing tag 1015 (03F7) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Processing tag 1133 (046D) [14:55:04]Malloc new data [14:55:04]SetTLVBufToDocument err=0 [14:55:04]SetTLVBufToDocument err=0 [14:55:04]Malloc new data [14:55:04]SAM_PROTO_GetFMData [14:55:04]wFMCommunicate request_size=4 [14:55:04]MH_SAM_APDU [14:55:04]CAPDU: 80 13 03 00 [14:55:04]Write to MH i2c: E2 08 00 28 BA 80 13 03 00 00 00 00 00 61 [14:55:04]Write i2c OK [14:55:04]MH_I2C_Read... [14:55:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:55:05]Read from MH i2c: E2 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: E2 FD 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: E2 FD 00 28 BA 00 C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 DF [14:55:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [14:55:05]wFMCommunicate OK [14:55:05]wFMCommunicate request_size=4 [14:55:05]MH_SAM_APDU [14:55:05]CAPDU: 80 17 00 00 [14:55:05]Write to MH i2c: E2 08 00 29 BA 80 17 00 00 00 00 00 00 63 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:05]Read from MH i2c: E2 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: E2 FD 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: E2 FD 00 29 BA 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 53 [14:55:05]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:55:05]wFMCommunicate OK [14:55:05]wFMCommunicate request_size=4 [14:55:05]MH_SAM_APDU [14:55:05]CAPDU: 80 17 00 00 [14:55:05]Write to MH i2c: E2 08 00 2A BA 80 17 00 00 00 00 00 00 64 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 FD 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 FD 00 2A BA 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 76 [14:55:06]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 [14:55:06]wFMCommunicate OK [14:55:06]wFMCommunicate request_size=4 [14:55:06]MH_SAM_APDU [14:55:06]CAPDU: 80 17 00 00 [14:55:06]Write to MH i2c: E2 08 00 2B BA 80 17 00 00 00 00 00 00 65 [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]OFD Sender: No OFD packet to send [14:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:06]Read from MH i2c: E2 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 FD 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: E2 FD 00 2B BA 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 F1 [14:55:06]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 [14:55:07]wFMCommunicate OK [14:55:07]wFMCommunicate request_size=4 [14:55:07]MH_SAM_APDU [14:55:07]CAPDU: 80 17 00 00 [14:55:07]Write to MH i2c: E2 08 00 2C BA 80 17 00 00 00 00 00 00 66 [14:55:07]Write i2c OK [14:55:07]MH_I2C_Read... [14:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:55:07]Read from MH i2c: E2 [14:55:07]MH_I2C_Read... [14:55:07]Read from MH i2c: E2 E2 00 [14:55:07]MH_I2C_Read... [14:55:07]Read from MH i2c: E2 E2 00 2C BA 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 44 [14:55:07]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 [14:55:07]wFMCommunicate OK [14:55:07]SAM_PROTO_GetFMData done [14:55:07]FM_GetFMData:85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:55:08]oper:6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:55:08]total:A6 B0 DC BC [14:55:08]Malloc new data [14:55:08]oper:6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:55:08]total:B4 AE 62 03 [14:55:08]Malloc new data [14:55:08]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:55:08]total: [14:55:08]Malloc new data [14:55:08]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:55:08]total: [14:55:08]Malloc new data [14:55:08]KKMPrepareXReportFMData err=0 [14:55:08]Х отчет ИНН: 02508201610067 Кассир: Мадаминова Б. 01.08.2024 14:55 Смена: 266 РНМ: 0000000000092638 ЗНМ: 0300000049 СНО: Общий режим Всего чеков: 84 ИТОГИ ПРИХОД Чеков: 84 Общий итог: 48583.89 Итого наличными: 41998.00 Итого безнал.: 6585.89 НДС 0% : 0.00 НДС 12% : 5159.82 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 429.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 41998.00 НС Приход: 31685797.50 НС Возвр.Прихода: 567989.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874949 [14:55:08]StoreToDocumentArchive [14:55:08]MH_GetDate [14:55:08]Write to MH i2c: F0 00 00 2D BA D6 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: F0 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: F0 09 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: F0 09 00 2D BA 00 DF A1 AB 66 E7 4B C0 64 C6 [14:55:08]shift 266 fd 1722524127 [14:55:08]Create dir for shift 0266 [14:55:08]save to /storage/0266/doc_1722524127 [14:55:08]save last doc name /storage/0266/doc_1722524127 to /storage/kkm_last_doc_name [14:55:08]save OK [14:55:08]Clear old archive folders... [14:55:08]NVStorageSaveData kkm_last_timestamp [14:55:08]File name is /storage/kkm_last_timestamp [14:55:08]Write 4 bytes [14:55:08]NVStorageSaveData done [14:55:08]ExternCall_PrintAddStr [14:55:08]wPrintStart [14:55:08]Write to MH i2c: 01 00 00 2E BA E8 [14:55:08]Write i2c OK [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 [14:55:08]MH_I2C_Read... [14:55:08]Read from MH i2c: 01 07 00 2E BA 00 00 00 00 00 FF 0F FD [14:55:08]RasterBufferAndPrint [14:55:08]line Х отчет [14:55:08]line ИНН: 02508201610067 [14:55:08]line Кассир: Мадаминова Б. [14:55:08]line 01.08.2024 14:55 [14:55:08]line Смена: 266 [14:55:08]line РНМ: 0000000000092638 [14:55:08]line ЗНМ: 0300000049 [14:55:08]line СНО: Общий режим [14:55:08]line Всего чеков: 84 [14:55:08]line ИТОГИ ПРИХОД [14:55:08]line Чеков: 84 [14:55:08]line Общий итог: 48583.89 [14:55:08]line Итого наличными: 41998.00 [14:55:08]line Итого безнал.: 6585.89 [14:55:08]line НДС 0% : 0.00 [14:55:08]line НДС 12% : 5159.82 [14:55:08]line НСП 0% : 0.00 [14:55:08]line НСП 1,50% : 0.00 [14:55:08]line НСП 0,50% : 0.00 [14:55:08]line НСП 5% : 0.00 [14:55:08]line НСП 3% : 0.00 [14:55:08]line НСП 2% : 0.00 [14:55:08]line НСП 1% : 429.93 [14:55:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [14:55:08]line Чеков: 0 [14:55:08]line Общий итог: 0.00 [14:55:08]line Итого наличными: 0.00 [14:55:08]line Итого безнал.: 0.00 [14:55:08]line НДС 0% : 0.00 [14:55:08]line НДС 12% : 0.00 [14:55:08]line НСП 0% : 0.00 [14:55:08]line НСП 1,50% : 0.00 [14:55:08]line НСП 0,50% : 0.00 [14:55:08]line НСП 5% : 0.00 [14:55:08]line НСП 3% : 0.00 [14:55:08]line НСП 2% : 0.00 [14:55:08]line НСП 1% : 0.00 [14:55:08]line ИТОГИ РАСХОД [14:55:08]line Чеков: 0 [14:55:08]line Общий итог: 0.00 [14:55:08]line Итого наличными: 0.00 [14:55:08]line Итого безнал.: 0.00 [14:55:08]line НДС 0% : 0.00 [14:55:08]line НДС 12% : 0.00 [14:55:08]line НСП 0% : 0.00 [14:55:08]line НСП 1,50% : 0.00 [14:55:08]line НСП 0,50% : 0.00 [14:55:08]line НСП 5% : 0.00 [14:55:08]line НСП 3% : 0.00 [14:55:08]line НСП 2% : 0.00 [14:55:08]line НСП 1% : 0.00 [14:55:08]line ИТОГИ ВОЗВРАТ РАСХОДА [14:55:08]line Чеков: 0 [14:55:08]line Общий итог: 0.00 [14:55:08]line Итого наличными: 0.00 [14:55:08]line Итого безнал.: 0.00 [14:55:08]line НДС 0% : 0.00 [14:55:08]line НДС 12% : 0.00 [14:55:08]line НСП 0% : 0.00 [14:55:08]line НСП 1,50% : 0.00 [14:55:08]line НСП 0,50% : 0.00 [14:55:08]line НСП 5% : 0.00 [14:55:08]line НСП 3% : 0.00 [14:55:08]line НСП 2% : 0.00 [14:55:08]line НСП 1% : 0.00 [14:55:08]line Сумма внесений: 0.00 [14:55:08]line Сумма выплат: 0.00 [14:55:08]line Нал. в кассе: 41998.00 [14:55:08]line НС Приход: 31685797.50 [14:55:08]line НС Возвр.Прихода: 567989.00 [14:55:08]line НС Расход: 0.00 [14:55:08]line НС Возвр.Расхода: 0.00 [14:55:08]line ФМ: 0000000000874949 [14:55:08]written 0, free lines is 4095 [14:55:09]Write to MH i2c: 01 00 00 79 BA 33 [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: 01 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: 01 07 00 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: 01 07 00 79 BA 00 00 00 00 00 2E 0B 73 [14:55:09]RasterBufferAndPrint [14:55:09]line [14:55:09]line [14:55:09]line [14:55:09]line [14:55:09]line [14:55:09]written 0, free lines is 2904 [14:55:09]MH_Cut [14:55:09]Write to MH i2c: D1 01 00 80 BA 01 0C [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: D1 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: D1 01 00 [14:55:09]MH_I2C_Read... [14:55:09]Read from MH i2c: D1 01 00 80 BA 00 0B [14:55:09]Write to MH i2c: 01 00 00 81 BA 3B [14:55:09]Write i2c OK [14:55:09]MH_I2C_Read... [14:55:10]*** Cut start [14:55:10]*** Partial cut [14:55:10]*** CUTSNS_PIN = 1 [14:55:10]*** CUTSNS_PIN = 0 [14:55:10]*** Brake cut motor [14:55:11]Read from MH i2c: 01 [14:55:11]MH_I2C_Read... [14:55:11]*** Stop cut motor [14:55:11]*** Cut end [14:55:11]Read from MH i2c: 01 07 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: 01 07 00 81 BA 00 00 00 00 00 FF 0F 50 [14:55:11]process_action x_report done [14:55:11]requested_data is exist [14:55:11]produce_requested_data [14:55:11]requested_item fd.num is exist - process it [14:55:11]SAM_PROTO_GetFieldsCounters [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 13 00 00 [14:55:11]Write to MH i2c: E2 08 00 82 BA 80 13 00 00 00 00 00 00 B8 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 62 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 62 00 82 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14: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 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:11]wFMCommunicate OK [14:55:11]SAM_PROTO_GetFieldsCounters done [14:55:11]requested_item shift.num is exist - process it [14:55:11]requested_item shift.opened is exist - process it [14:55:11]req_shift_opened [14:55:11]FM_GetShiftState [14:55:11]SAM_PROTO_GetShiftState [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 13 01 00 [14:55:11]Write to MH i2c: E2 08 00 83 BA 80 13 01 00 00 00 00 00 BA [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0E 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0E 00 83 BA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F3 [14:55:11]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:55:11]wFMCommunicate OK [14:55:11]SAM_PROTO_GetShiftState done [14:55:11]FM_GetShiftState done [14:55:11]req_shift_opened done [14:55:11]requested_item shift.open_date is exist - process it [14:55:11]req_shift_open_date [14:55:11]req_shift_open_date done [14:55:11]produce_requested_data done [14:55:11]produce_requested_data return {"fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:55:11]process_action_free x_report [14:55:11]json_value_free [14:55:11]json_value_free done [14:55:11]process_json_proto returns [14:55:11]Send response to host [14:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:55:11]free response buf [14:55:11]execute_script done [14:55:11]execute_script returns [14:55:11]free content buf [14:55:11]Sock 10.Close socket [14:55:11]Sock 10.Thread stoped [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:48]accept exits with 7 [14:55:48]New connection [14:55:48]New thread 3067002212 created [14:55:48]Thread 3066858852 joined [14:55:48]Waiting for new connection... [14:55:48] Sock 7.Parse request [14:55:48]Sock 7.Check first char [14:55:48]Sock 7.First char is OK [14:55:48]request: POST /json_proto HTTP/1.0 [14:55:48]Method: POST [14:55:48]URL: /json_proto [14:55:48]Method is POST - this is cgi request [14:55:48]url: /json_proto [14:55:48]query_string will be loaded in cgi processing [14:55:48]execute_cgi json_proto POST (null) [14:55:48]execute_cgi path=json_proto method=POST [14:55:48]POST find Content-Length [14:55:48]Host: 172.17.49.132:8080 [14:55:48]Content-Length: 215 [14:55:48]Content-Type: application/json [14:55:48] [14:55:48]POST finish read [14:55:48]Found Content-Length = 215 [14:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:48]execute_script... [14:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:48]POST & json_proto [14:55:48]process_json_proto [14:55:48]json parsed OK: [14:55:48]protocol is kg_v1.0 [14:55:48]action value=get_value [14:55:48]process_action get_value [14:55:48]cmd_get_value [14:55:48]process_action get_value done [14:55:48]requested_data is exist [14:55:48]produce_requested_data [14:55:48]requested_item kkm.sn is exist - process it [14:55:48]requested_item kkm.ver is exist - process it [14:55:48]requested_item fm.sn is exist - process it [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 11 00 00 [14:55:48]Write to MH i2c: E2 08 00 84 BA 80 11 00 00 00 00 00 00 B8 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 84 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 14 [14:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:55:48]wFMCommunicate OK [14:55:48]requested_item fd.num is exist - process it [14:55:48]SAM_PROTO_GetFieldsCounters [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 13 00 00 [14:55:48]Write to MH i2c: E2 08 00 85 BA 80 13 00 00 00 00 00 00 BB [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 62 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 62 00 85 BA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [14:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 21 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_GetFieldsCounters done [14:55:48]requested_item shift.num is exist - process it [14:55:48]requested_item shift.opened is exist - process it [14:55:48]req_shift_opened [14:55:48]FM_GetShiftState [14:55:48]SAM_PROTO_GetShiftState [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 13 01 00 [14:55:48]Write to MH i2c: E2 08 00 86 BA 80 13 01 00 00 00 00 00 BD [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0E 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0E 00 86 BA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 F6 [14:55:48]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_GetShiftState done [14:55:48]FM_GetShiftState done [14:55:48]req_shift_opened done [14:55:48]requested_item shift.open_date is exist - process it [14:55:48]req_shift_open_date [14:55:48]req_shift_open_date done [14:55:48]produce_requested_data done [14:55:48]produce_requested_data return {"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772} [14:55:48]process_action_free get_value [14:55:48]json_value_free [14:55:48]json_value_free done [14:55:48]process_json_proto returns [14:55:48]Send response to host [14:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000049","kkm.ver":"001","fm.sn":"0000000000874949","fd.num":69921,"shift.num":433,"shift.opened":1,"shift.open_date":1722472772}}} [14:55:48]free response buf [14:55:48]execute_script done [14:55:48]execute_script returns [14:55:48]free content buf [14:55:48]Sock 7.Close socket [14:55:48]Sock 7.Thread stoped [14:55:48]accept exits with 9 [14:55:48]New connection [14:55:48]New thread 3066858852 created [14:55:48]Thread 3067002212 joined [14:55:48]Waiting for new connection... [14:55:48] Sock 9.Parse request [14:55:48]Sock 9.Check first char [14:55:48]Sock 9.First char is OK [14:55:48]request: POST /json_proto HTTP/1.0 [14:55:48]Method: POST [14:55:48]URL: /json_proto [14:55:48]Method is POST - this is cgi request [14:55:48]url: /json_proto [14:55:48]query_string will be loaded in cgi processing [14:55:48]execute_cgi json_proto POST (null) [14:55:48]execute_cgi path=json_proto method=POST [14:55:48]POST find Content-Length [14:55:48]Host: 172.17.49.132:8080 [14:55:48]Content-Length: 331 [14:55:48]Content-Type: application/json [14:55:48] [14:55:48]POST finish read [14:55:48]Found Content-Length = 331 [14:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:55:48]execute_script... [14:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:55:48]POST & json_proto [14:55:48]process_json_proto [14:55:48]json parsed OK: [14:55:48]protocol is kg_v1.0 [14:55:48]action value=get_value [14:55:48]process_action get_value [14:55:48]cmd_get_value [14:55:48]process_action get_value done [14:55:48]requested_data is exist [14:55:48]produce_requested_data [14:55:48]requested_item fm.sale.total is exist - process it [14:55:48]SAM_PROTO_GetFMData [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 13 03 00 [14:55:48]Write to MH i2c: E2 08 00 87 BA 80 13 03 00 00 00 00 00 C0 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 87 BA 00 C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 3E [14:55:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [14:55:49]wFMCommunicate OK [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 17 00 00 [14:55:49]Write to MH i2c: E2 08 00 88 BA 80 17 00 00 00 00 00 00 C2 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 88 BA 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B2 [14:55:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:55:49]wFMCommunicate OK [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 17 00 00 [14:55:49]Write to MH i2c: E2 08 00 89 BA 80 17 00 00 00 00 00 00 C3 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 89 BA 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 D5 [14:55:49]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 [14:55:49]wFMCommunicate OK [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 17 00 00 [14:55:49]Write to MH i2c: E2 08 00 8A BA 80 17 00 00 00 00 00 00 C4 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 FD 00 8A BA 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 50 [14:55:49]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 [14:55:49]wFMCommunicate OK [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 17 00 00 [14:55:49]Write to MH i2c: E2 08 00 8B BA 80 17 00 00 00 00 00 00 C5 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 E2 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 E2 00 8B BA 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 [14:55:50]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 [14:55:50]wFMCommunicate OK [14:55:50]SAM_PROTO_GetFMData done [14:55:50]requested_item fm.sale_refund.total is exist - process it [14:55:50]requested_item fm.buy.total is exist - process it [14:55:50]requested_item shift.sale.total is exist - process it [14:55:50]SAM_PROTO_GetShiftData [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 13 02 00 [14:55:50]Write to MH i2c: E2 08 00 8C BA 80 13 02 00 00 00 00 00 C4 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 FD 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 FD 00 8C BA 00 AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A [14:55:50]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:55:50]wFMCommunicate OK [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 17 00 00 [14:55:50]Write to MH i2c: E2 08 00 8D BA 80 17 00 00 00 00 00 00 C7 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 FD 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 FD 00 8D BA 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 E9 [14:55:50]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 [14:55:50]wFMCommunicate OK [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 17 00 00 [14:55:51]Write to MH i2c: E2 08 00 8E BA 80 17 00 00 00 00 00 00 C8 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 FD 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 FD 00 8E BA 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [14:55:51]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 [14:55:51]wFMCommunicate OK [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 17 00 00 [14:55:51]Write to MH i2c: E2 08 00 8F BA 80 17 00 00 00 00 00 00 C9 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 FD 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 FD 00 8F BA 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 3B [14:55:51]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 [14:55:51]wFMCommunicate OK [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 17 00 00 [14:55:51]Write to MH i2c: E2 08 00 90 BA 80 17 00 00 00 00 00 00 CA [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]OFD Sender: No OFD packet to send [14:55:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 CB 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 CB 00 90 BA 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 B3 [14:55:51]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 [14:55:52]wFMCommunicate OK [14:55:52]SAM_PROTO_GetShiftData done [14:55:52]requested_item shift.sale.total_cash is exist - process it [14:55:52]requested_item shift.sale_refund.total is exist - process it [14:55:52]requested_item shift.sale_refund.total_cash is exist - process it [14:55:52]requested_item shift.buy.total is exist - process it [14:55:52]requested_item shift.buy.total_cash is exist - process it [14:55:52]produce_requested_data done [14:55:52]produce_requested_data return {"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:55:52]process_action_free get_value [14:55:52]json_value_free [14:55:52]json_value_free done [14:55:52]process_json_proto returns [14:55:52]Send response to host [14:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:55:52]free response buf [14:55:52]execute_script done [14:55:52]execute_script returns [14:55:52]free content buf [14:55:52]Sock 9.Close socket [14:55:52]Sock 9.Thread stoped [14:55:52]accept exits with 7 [14:55:52]New connection [14:55:52]New thread 3067002212 created [14:55:52]Thread 3066858852 joined [14:55:52]Waiting for new connection... [14:55:52] Sock 7.Parse request [14:55:52]Sock 7.Check first char [14:55:52]Sock 7.First char is OK [14:55:52]request: POST /json_proto HTTP/1.0 [14:55:52]Method: POST [14:55:52]URL: /json_proto [14:55:52]Method is POST - this is cgi request [14:55:52]url: /json_proto [14:55:52]query_string will be loaded in cgi processing [14:55:52]execute_cgi json_proto POST (null) [14:55:52]execute_cgi path=json_proto method=POST [14:55:52]POST find Content-Length [14:55:52]Host: 172.17.49.132:8080 [14:55:52]Content-Length: 331 [14:55:52]Content-Type: application/json [14:55:52] [14:55:52]POST finish read [14:55:52]Found Content-Length = 331 [14:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:55:52]execute_script... [14:55:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:55:52]POST & json_proto [14:55:52]process_json_proto [14:55:52]json parsed OK: [14:55:52]protocol is kg_v1.0 [14:55:52]action value=get_value [14:55:52]process_action get_value [14:55:52]cmd_get_value [14:55:52]process_action get_value done [14:55:52]requested_data is exist [14:55:52]produce_requested_data [14:55:52]requested_item fm.sale.total is exist - process it [14:55:52]SAM_PROTO_GetFMData [14:55:52]wFMCommunicate request_size=4 [14:55:52]MH_SAM_APDU [14:55:52]CAPDU: 80 13 03 00 [14:55:52]Write to MH i2c: E2 08 00 91 BA 80 13 03 00 00 00 00 00 CA [14:55:52]Write i2c OK [14:55:52]MH_I2C_Read... [14:55:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:55:52]Read from MH i2c: E2 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: E2 FD 00 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: E2 FD 00 91 BA 00 C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 48 [14:55:52]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [14:55:52]wFMCommunicate OK [14:55:52]wFMCommunicate request_size=4 [14:55:52]MH_SAM_APDU [14:55:52]CAPDU: 80 17 00 00 [14:55:52]Write to MH i2c: E2 08 00 92 BA 80 17 00 00 00 00 00 00 CC [14:55:52]Write i2c OK [14:55:52]MH_I2C_Read... [14:55:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:52]Read from MH i2c: E2 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: E2 FD 00 [14:55:52]MH_I2C_Read... [14:55:52]Read from MH i2c: E2 FD 00 92 BA 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 BC [14:55: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 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:55:53]wFMCommunicate OK [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 17 00 00 [14:55:53]Write to MH i2c: E2 08 00 93 BA 80 17 00 00 00 00 00 00 CD [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 FD 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 FD 00 93 BA 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 DF [14:55:53]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 [14:55:53]wFMCommunicate OK [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 17 00 00 [14:55:53]Write to MH i2c: E2 08 00 94 BA 80 17 00 00 00 00 00 00 CE [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 FD 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 FD 00 94 BA 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 5A [14:55:53]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 [14:55:53]wFMCommunicate OK [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 17 00 00 [14:55:53]Write to MH i2c: E2 08 00 95 BA 80 17 00 00 00 00 00 00 CF [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:55:54]Read from MH i2c: E2 E2 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 E2 00 95 BA 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [14:55:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:55:54]wFMCommunicate OK [14:55:54]SAM_PROTO_GetFMData done [14:55:54]requested_item fm.sale_refund.total is exist - process it [14:55:54]requested_item fm.buy.total is exist - process it [14:55:54]requested_item shift.sale.total is exist - process it [14:55:54]SAM_PROTO_GetShiftData [14:55:54]wFMCommunicate request_size=4 [14:55:54]MH_SAM_APDU [14:55:54]CAPDU: 80 13 02 00 [14:55:54]Write to MH i2c: E2 08 00 96 BA 80 13 02 00 00 00 00 00 CE [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 FD 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 FD 00 96 BA 00 AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 44 [14:55:54]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:55:55]wFMCommunicate OK [14:55:55]wFMCommunicate request_size=4 [14:55:55]MH_SAM_APDU [14:55:55]CAPDU: 80 17 00 00 [14:55:55]Write to MH i2c: E2 08 00 97 BA 80 17 00 00 00 00 00 00 D1 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:55]Read from MH i2c: E2 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 FD 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 FD 00 97 BA 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 F3 [14:55:55]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 [14:55:55]wFMCommunicate OK [14:55:55]wFMCommunicate request_size=4 [14:55:55]MH_SAM_APDU [14:55:55]CAPDU: 80 17 00 00 [14:55:55]Write to MH i2c: E2 08 00 98 BA 80 17 00 00 00 00 00 00 D2 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:55]Read from MH i2c: E2 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 FD 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 FD 00 98 BA 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [14:55:55]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 [14:55:55]wFMCommunicate OK [14:55:55]wFMCommunicate request_size=4 [14:55:55]MH_SAM_APDU [14:55:55]CAPDU: 80 17 00 00 [14:55:55]Write to MH i2c: E2 08 00 99 BA 80 17 00 00 00 00 00 00 D3 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 FD 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 FD 00 99 BA 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 45 [14:55:56]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 [14:55:56]wFMCommunicate OK [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 17 00 00 [14:55:56]Write to MH i2c: E2 08 00 9A BA 80 17 00 00 00 00 00 00 D4 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 CB 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 CB 00 9A BA 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 BD [14:55:56]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 [14:55:56]wFMCommunicate OK [14:55:56]SAM_PROTO_GetShiftData done [14:55:56]requested_item shift.sale.total_cash is exist - process it [14:55:56]requested_item shift.sale_refund.total is exist - process it [14:55:56]requested_item shift.sale_refund.total_cash is exist - process it [14:55:56]requested_item shift.buy.total is exist - process it [14:55:56]requested_item shift.buy.total_cash is exist - process it [14:55:56]produce_requested_data done [14:55:56]produce_requested_data return {"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:55:56]process_action_free get_value [14:55:56]json_value_free [14:55:56]json_value_free done [14:55:56]process_json_proto returns [14:55:56]Send response to host [14:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31685797.50,"fm.sale_refund.total":567989.00,"fm.buy.total":0.00,"shift.sale.total":48583.89,"shift.sale.total_cash":41998.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:55:56]free response buf [14:55:56]execute_script done [14:55:56]execute_script returns [14:55:56]free content buf [14:55:56]Sock 7.Close socket [14:55:56]Sock 7.Thread stoped [14:55:56]OFD Sender: No OFD packet to send [14:55:56]accept exits with 9 [14:55:56]New connection [14:55:56]New thread 3066858852 created [14:55:56]Thread 3067002212 joined [14:55:56]Waiting for new connection... [14:55:56] Sock 9.Parse request [14:55:56]Sock 9.Check first char [14:55:56]Sock 9.First char is OK [14:55:56]request: POST /json_proto HTTP/1.0 [14:55:56]Method: POST [14:55:56]URL: /json_proto [14:55:56]Method is POST - this is cgi request [14:55:56]url: /json_proto [14:55:56]query_string will be loaded in cgi processing [14:55:56]execute_cgi json_proto POST (null) [14:55:56]execute_cgi path=json_proto method=POST [14:55:56]POST find Content-Length [14:55:56]Host: 172.17.49.132:8080 [14:55:56]Content-Length: 271 [14:55:56]Content-Type: application/json [14:55:56] [14:55:56]POST finish read [14:55:56]Found Content-Length = 271 [14:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]execute_script... [14:55:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0430\u0434\u0430\u043C\u0438\u043D\u043E\u0432\u0430 \u0411." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]POST & json_proto [14:55:56]process_json_proto [14:55:56]json parsed OK: [14:55:56]protocol is kg_v1.0 [14:55:56]action value=close_shift [14:55:56]process_action close_shift [14:55:56]cmd_close_shift [14:55:56]MH_GetDate [14:55:56]Write to MH i2c: F0 00 00 9B BA 44 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 9B BA 00 0F A2 AB 66 E7 4B C0 64 65 [14:55:57]GetLastDocTimeStamp 1722524119 [14:55:57]current date 1722524175 [14:55:57]FM_GetShiftState [14:55:57]SAM_PROTO_GetShiftState [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 13 01 00 [14:55:57]Write to MH i2c: E2 08 00 9C BA 80 13 01 00 00 00 00 00 D3 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0E 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0E 00 9C BA 00 09 00 01 44 D9 AA 66 00 00 00 00 90 00 0C [14:55:57]RAPDU: 09 00 01 44 D9 AA 66 00 00 00 00 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_GetShiftState done [14:55:57]FM_GetShiftState done [14:55:57]KKMCreateCloseShiftDocument [14:55:57]Load OK [14:55:57]Malloc new data [14:55:57]MH_GetDate [14:55:57]Write to MH i2c: F0 00 00 9D BA 46 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: F0 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: F0 09 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: F0 09 00 9D BA 00 0F A2 AB 66 E7 4B C0 64 67 [14:55:57]Malloc new data [14:55:57]Malloc new data [14:55:57]Malloc new data [14:55:57]Malloc new data [14:55:57]KKMCreateCloseShiftDocument OK [14:55:57]KKMSetCloseShiftData OK [14:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=74 [14:55:57]tlvbuf is 012D4660 [14:55:57]KKMLoadAndSignCloseShiftData [14:55:57]SAM_PROTO_ProcessDocument [14:55:57]wFMCommunicate request_size=9 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 15 01 00 04 05 00 4A 00 [14:55:57]Write to MH i2c: E2 0C 00 9E BA 80 15 01 00 04 00 05 00 4A 00 00 00 2E [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 9E BA 00 90 00 CC [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=23 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [14:55:57]Write to MH i2c: E2 1A 00 9F BA 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 CE [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 9F BA 00 90 00 CD [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=33 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E [14:55:57]Write to MH i2c: E2 24 00 A0 BA 80 15 02 00 1C 00 FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E 00 00 FA [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 A0 BA 00 90 00 CE [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=13 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 15 02 00 08 F4 03 04 00 0F A2 AB 66 [14:55:57]Write to MH i2c: E2 10 00 A1 BA 80 15 02 00 08 00 F4 03 04 00 0F A2 AB 66 00 00 A8 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 A1 BA 00 90 00 CF [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=25 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 [14:55:57]Write to MH i2c: E2 1C 00 A2 BA 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 00 00 41 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 A2 BA 00 90 00 D0 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 15 03 00 [14:55:57]Write to MH i2c: E2 08 00 A3 BA 80 15 03 00 00 00 00 00 DE [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 FD 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 FD 00 A3 BA 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 11 01 00 0E 04 04 00 B1 01 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [14:55:58]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 11 01 00 0E 04 04 00 B1 01 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 AA 04 AA 04 6E 04 04 00 54 00 00 00 69 04 9B 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 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 8E DF 07 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 F1 A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_ProcessDocument answer len = 1265 [14:55:58]SAM_PROTO_ProcessDocument remain to read = 1017 [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 17 00 00 [14:55:58]Write to MH i2c: E2 08 00 A4 BA 80 17 00 00 00 00 00 00 DE [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 FD 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 FD 00 A4 BA 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [14:55:58]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:55:58]SAM_PROTO_ProcessDocument remain to read = 767 [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 17 00 00 [14:55:58]Write to MH i2c: E2 08 00 A5 BA 80 17 00 00 00 00 00 00 DF [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 FD 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 FD 00 A5 BA 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 41 [14:55:59]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:55:59]SAM_PROTO_ProcessDocument remain to read = 517 [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 17 00 00 [14:55:59]Write to MH i2c: E2 08 00 A6 BA 80 17 00 00 00 00 00 00 E0 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 FD 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 FD 00 A6 BA 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [14:56:00]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:56:00]SAM_PROTO_ProcessDocument remain to read = 267 [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 17 00 00 [14:56:00]Write to MH i2c: E2 08 00 A7 BA 80 17 00 00 00 00 00 00 E1 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 FD 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 FD 00 A7 BA 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [14:56:00]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:56:00]SAM_PROTO_ProcessDocument remain to read = 17 [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 17 00 00 [14:56:00]Write to MH i2c: E2 08 00 A8 BA 80 17 00 00 00 00 00 00 E2 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 14 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 14 00 A8 BA 00 01 00 06 F7 03 00 00 35 04 06 00 B6 FC 09 A6 9E 92 90 00 B8 [14:56:00]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 B6 FC 09 A6 9E 92 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [14:56:00]SAM_PROTO_ProcessDocument done [14:56:00]1209 (1) - 1.0 - номер версии ФФД [14:56:00]1041 (16) - 0000000000874949 - номер ФМ [14:56:00]1040 (4) - 69922 - номер ФД [14:56:00]1038 (4) - 433 - номер смены [14:56:00]1118 (4) - 84 - количество кассовых чеков за смену [14:56:00]1111 (4) - 86 - общее количество ФД за смену [14:56:00]1194 (1194) - счетчики итогов смены [14:56:00] 1134 (4) - 84 - количество чеков со всеми признаками расчетов [14:56:00] 1129 (155) - счетчики операций «приход» [14:56:00] 1135 (4) - 84 - количество чеков по признаку расчетов [14:56:00] 1201 (3) - 48583.89 - общая итоговая сумма в чеках [14:56:00] 1136 (3) - 41998.00 - итоговая сумма в чеках наличными [14:56:00] 1138 (3) - 6585.89 - итоговая сумма в чеках безналичными [14:56:00] 1024 (122) - суммы налогов [14:56:00] 1006 (9) - суммы НДС [14:56:00] 1010 (1) - 0% - код ставки НДС [14:56:00] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:00] 1006 (12) - суммы НДС [14:56:00] 1010 (1) - 12% - код ставки НДС [14:56:00] 1011 (3) - 5159.82 - сумма НДС по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 0% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (11) - суммы НСП [14:56:00] 1014 (1) - 1% - код ставки НСП [14:56:00] 1015 (2) - 429.93 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 2% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 3% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 5% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 0,50% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 1,50% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1130 (141) - счетчики операций «возврат прихода» [14:56:00] 1135 (4) - 0 - количество чеков по признаку расчетов [14:56:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:56:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:56:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:56:00] 1024 (117) - суммы налогов [14:56:00] 1006 (9) - суммы НДС [14:56:00] 1010 (1) - 0% - код ставки НДС [14:56:00] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:00] 1006 (9) - суммы НДС [14:56:00] 1010 (1) - 12% - код ставки НДС [14:56:00] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 0% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 1% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 2% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 3% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 5% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 0,50% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 1,50% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1131 (141) - счетчики операций «расход» [14:56:00] 1135 (4) - 0 - количество чеков по признаку расчетов [14:56:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:56:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:56:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:56:00] 1024 (117) - суммы налогов [14:56:00] 1006 (9) - суммы НДС [14:56:00] 1010 (1) - 0% - код ставки НДС [14:56:00] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:00] 1006 (9) - суммы НДС [14:56:00] 1010 (1) - 12% - код ставки НДС [14:56:00] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 0% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:00] 1007 (9) - суммы НСП [14:56:00] 1014 (1) - 1% - код ставки НСП [14:56:00] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 2% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 3% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 5% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 0,50% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 1,50% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1132 (141) - счетчики операций «возврат расхода» [14:56:01] 1135 (4) - 0 - количество чеков по признаку расчетов [14:56:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:56:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:56:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:56:01] 1024 (117) - суммы налогов [14:56:01] 1006 (9) - суммы НДС [14:56:01] 1010 (1) - 0% - код ставки НДС [14:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:01] 1006 (9) - суммы НДС [14:56:01] 1010 (1) - 12% - код ставки НДС [14:56:01] 1011 (0) - 0.00 - сумма НДС по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 0% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 1% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 2% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 3% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 5% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 0,50% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1007 (9) - суммы НСП [14:56:01] 1014 (1) - 1,50% - код ставки НСП [14:56:01] 1015 (0) - 0.00 - сумма НСП по ставке [14:56:01] 1133 (588) - - счетчики коррекции - не используются [14:56:01]1077 (6) - 201193609928338 - ФПД [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1209 (04B9) [14:56:01]Malloc new data [14:56:01]Processing tag 1041 (0411) [14:56:01]Processing tag 1040 (0410) [14:56:01]Malloc new data [14:56:01]Processing tag 1038 (040E) [14:56:01]Malloc new data [14:56:01]Processing tag 1118 (045E) [14:56:01]Malloc new data [14:56:01]Processing tag 1111 (0457) [14:56:01]Malloc new data [14:56:01]Processing tag 1194 (04AA) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1134 (046E) [14:56:01]Malloc new data [14:56:01]Processing tag 1129 (0469) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1135 (046F) [14:56:01]Malloc new data [14:56:01]Processing tag 1201 (04B1) [14:56:01]Malloc new data [14:56:01]Processing tag 1136 (0470) [14:56:01]Malloc new data [14:56:01]Processing tag 1138 (0472) [14:56:01]Malloc new data [14:56:01]Processing tag 1024 (0400) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]SetTLVBufToDocument err=0 [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1130 (046A) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1135 (046F) [14:56:01]Malloc new data [14:56:01]Processing tag 1201 (04B1) [14:56:01]Malloc new data [14:56:01]Processing tag 1136 (0470) [14:56:01]Malloc new data [14:56:01]Processing tag 1138 (0472) [14:56:01]Malloc new data [14:56:01]Processing tag 1024 (0400) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]SetTLVBufToDocument err=0 [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1131 (046B) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1135 (046F) [14:56:01]Malloc new data [14:56:01]Processing tag 1201 (04B1) [14:56:01]Malloc new data [14:56:01]Processing tag 1136 (0470) [14:56:01]Malloc new data [14:56:01]Processing tag 1138 (0472) [14:56:01]Malloc new data [14:56:01]Processing tag 1024 (0400) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]SetTLVBufToDocument err=0 [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1132 (046C) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1135 (046F) [14:56:01]Malloc new data [14:56:01]Processing tag 1201 (04B1) [14:56:01]Malloc new data [14:56:01]Processing tag 1136 (0470) [14:56:01]Malloc new data [14:56:01]Processing tag 1138 (0472) [14:56:01]Malloc new data [14:56:01]Processing tag 1024 (0400) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1006 (03EE) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1010 (03F2) [14:56:01]Malloc new data [14:56:01]Processing tag 1011 (03F3) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:01]SetTLVBufToDocument [14:56:01]Processing tag 1014 (03F6) [14:56:01]Malloc new data [14:56:01]Processing tag 1015 (03F7) [14:56:01]Malloc new data [14:56:01]SetTLVBufToDocument err=0 [14:56:01]Processing tag 1007 (03EF) [14:56:01]Load OK [14:56:02]SetTLVBufToDocument [14:56:02]Processing tag 1014 (03F6) [14:56:02]Malloc new data [14:56:02]Processing tag 1015 (03F7) [14:56:02]Malloc new data [14:56:02]SetTLVBufToDocument err=0 [14:56:02]Processing tag 1007 (03EF) [14:56:02]Load OK [14:56:02]SetTLVBufToDocument [14:56:02]Processing tag 1014 (03F6) [14:56:02]Malloc new data [14:56:02]Processing tag 1015 (03F7) [14:56:02]Malloc new data [14:56:02]SetTLVBufToDocument err=0 [14:56:02]Processing tag 1007 (03EF) [14:56:02]Load OK [14:56:02]SetTLVBufToDocument [14:56:02]Processing tag 1014 (03F6) [14:56:02]Malloc new data [14:56:02]Processing tag 1015 (03F7) [14:56:02]Malloc new data [14:56:02]SetTLVBufToDocument err=0 [14:56:02]SetTLVBufToDocument err=0 [14:56:02]SetTLVBufToDocument err=0 [14:56:02]Processing tag 1133 (046D) [14:56:02]Malloc new data [14:56:02]SetTLVBufToDocument err=0 [14:56:02]Processing tag 1077 (0435) [14:56:02]Malloc new data [14:56:02]SetTLVBufToDocument err=0 [14:56:02]Malloc new data [14:56:02]SAM_PROTO_GetFMData [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 13 03 00 [14:56:02]Write to MH i2c: E2 08 00 A9 BA 80 13 03 00 00 00 00 00 E2 [14:56:02]OFD Sender: No OFD packet to send [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 FD 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 FD 00 A9 BA 00 C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 60 [14:56:02]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 BF 0D 01 00 69 04 A1 00 6F 04 04 00 7C 0C 01 00 B1 04 04 00 A6 B0 DC BC 70 04 04 00 DC 67 E6 98 72 04 04 00 CA 48 F6 23 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 2B DA 0E 14 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 A4 C3 AB 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 43 01 00 00 B1 04 04 00 B4 AE 62 03 70 04 04 00 68 41 4E 03 72 04 03 00 4C 6D 14 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 B9 0B 5C EF 03 09 90 00 [14:56:02]wFMCommunicate OK [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 17 00 00 [14:56:02]Write to MH i2c: E2 08 00 AA BA 80 17 00 00 00 00 00 00 E4 [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 FD 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 FD 00 AA BA 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D4 [14:56:03]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 AB 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [14:56:03]wFMCommunicate OK [14:56:03]wFMCommunicate request_size=4 [14:56:03]MH_SAM_APDU [14:56:03]CAPDU: 80 17 00 00 [14:56:03]Write to MH i2c: E2 08 00 AB BA 80 17 00 00 00 00 00 00 E5 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 FD 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 FD 00 AB BA 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 [14:56:03]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 [14:56:04]wFMCommunicate OK [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 17 00 00 [14:56:04]Write to MH i2c: E2 08 00 AC BA 80 17 00 00 00 00 00 00 E6 [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 FD 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 FD 00 AC BA 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 [14:56:04]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 [14:56:04]wFMCommunicate OK [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 17 00 00 [14:56:04]Write to MH i2c: E2 08 00 AD BA 80 17 00 00 00 00 00 00 E7 [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 E2 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 E2 00 AD BA 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:56:05]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 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_GetFMData done [14:56:05]Malloc new data [14:56:05]Malloc new data [14:56:05]Malloc new data [14:56:05]Malloc new data [14:56:05]KKMLoadAndSignCloseShiftData err=0 [14:56:05]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Мадаминова Б. 01.08.2024 14:56 Смена: 433 РНМ: 0000000000092638 ЗНМ: 0300000049 СНО: Общий режим Чеков за смену: 84 ФД за смену: 86 Всего чеков: 84 ИТОГИ ПРИХОД Чеков: 84 Общий итог: 48583.89 Итого наличными: 41998.00 Итого безнал.: 6585.89 НДС 0% : 0.00 НДС 12% : 5159.82 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 429.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 41998.00 НС Приход: 31685797.50 НС Возвр.Прихода: 567989.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 69922 ФМ: 0000000000874949 ФПД: 201193609928338 [14:56:05]StoreToDocumentArchive [14:56:05]shift 433 fd 69922 [14:56:05]save to /storage/0433/doc_00069922 [14:56:05]save last doc name /storage/0433/doc_00069922 to /storage/kkm_last_doc_name [14:56:05]save OK [14:56:05]Clear old archive folders... [14:56:05]Remove dir /storage/0266 [14:56:05]opendir ok [14:56:05]file . [14:56:05]file .. [14:56:05]file doc_1722524127 [14:56:05]remove file /storage/0266/doc_1722524127 [14:56:05]remove dir /storage/0266 [14:56:05]NVStorageSaveData kkm_registers [14:56:05]File name is /storage/kkm_registers [14:56:05]Write 24 bytes [14:56:05]NVStorageSaveData done [14:56:05]NVStorageSaveData kkm_registers [14:56:05]File name is /storage/kkm_registers [14:56:05]Write 24 bytes [14:56:05]NVStorageSaveData done [14:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [14:56:05]tlvbuf is 012C7BD0 [14:56:05]SAM_PROTO_ClearQueue [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 09 00 00 [14:56:05]Write to MH i2c: E2 08 00 AE BA 80 09 00 00 00 00 00 00 DA [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 AE BA 00 90 00 DC [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_ClearQueue done [14:56:05]KKMCreateOFDPacket [14:56:05]OFDProtocolAddRootSTLVToBuf [14:56:05]FM_MakeSignedData [14:56:05]FM_MakeSignedData [14:56:05]SAM_PROTO_SignData [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 0D 01 02 [14:56:05]Write to MH i2c: E2 08 00 AF BA 80 0D 01 02 00 00 00 00 E2 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 AF BA 00 90 00 DD [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]wFMCommunicate request_size=255 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 0D 02 02 FA 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F4 03 04 00 0F A2 AB 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 AA 04 D5 04 6E 04 04 00 54 00 00 00 69 04 A2 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E DF 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 [14:56:05]Write to MH i2c: E2 02 01 B0 BA 80 0D 02 02 FA 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F4 03 04 00 0F A2 AB 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 AA 04 D5 04 6E 04 04 00 54 00 00 00 69 04 A2 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E DF 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 00 5D [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 B0 BA 00 90 00 DE [14:56:06]RAPDU: 90 00 [14:56:06]wFMCommunicate OK [14:56:06]wFMCommunicate request_size=255 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 0D 02 02 FA 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F1 A7 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [14:56:06]Write to MH i2c: E2 02 01 B1 BA 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F1 A7 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 EA [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 B1 BA 00 90 00 DF [14:56:06]RAPDU: 90 00 [14:56:06]wFMCommunicate OK [14:56:06]wFMCommunicate request_size=255 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 [14:56:06]Write to MH i2c: E2 02 01 B2 BA 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 00 AC [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]OFD Sender: No OFD packet to send [14:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 03 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 03 00 B2 BA 00 90 00 E0 [14:56:07]RAPDU: 90 00 [14:56:07]wFMCommunicate OK [14:56:07]wFMCommunicate request_size=255 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 0D 02 02 FA 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 [14:56:07]Write to MH i2c: E2 02 01 B3 BA 80 0D 02 02 FA 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 AC [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 03 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 03 00 B3 BA 00 90 00 E1 [14:56:07]RAPDU: 90 00 [14:56:07]wFMCommunicate OK [14:56:07]wFMCommunicate request_size=255 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 [14:56:08]Write to MH i2c: E2 02 01 B4 BA 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 00 00 72 [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:08]Read from MH i2c: E2 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 B4 BA 00 90 00 E2 [14:56:08]RAPDU: 90 00 [14:56:08]wFMCommunicate OK [14:56:08]wFMCommunicate request_size=141 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 22 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 B6 FC 09 A6 9E 92 [14:56:08]Write to MH i2c: E2 90 00 B5 BA 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 22 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 B6 FC 09 A6 9E 92 00 00 F9 [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:08]Read from MH i2c: E2 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 B5 BA 00 90 00 E3 [14:56:08]RAPDU: 90 00 [14:56:08]wFMCommunicate OK [14:56:08]wFMCommunicate request_size=4 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 0D 03 02 [14:56:08]Write to MH i2c: E2 08 00 B6 BA 80 0D 03 02 00 00 00 00 EB [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0B 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0B 00 B6 BA 00 B4 5B B5 C2 C1 D4 94 C6 90 00 61 [14:56:09]RAPDU: B4 5B B5 C2 C1 D4 94 C6 90 00 [14:56:09]wFMCommunicate OK [14:56:09]SAM_PROTO_SignData done [14:56:09]FM_MakeSignedData done [14:56:09]CreateOFDProtocolMessage [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 11 00 00 [14:56:09]Write to MH i2c: E2 08 00 B7 BA 80 11 00 00 00 00 00 00 EB [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 17 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 17 00 B7 BA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 47 [14:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 90 00 [14:56:09]wFMCommunicate OK [14:56:09]CreateOFDProtocolMessage done [14:56:09]OFDSenderStorePacket 69922 [14:56:09]StoreOFDPacket docnum=69922 [14:56:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 7A 05 00 00 3A 14 72 05 82 9C 5A 05 01 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F4 03 04 00 0F A2 AB 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 AA 04 D5 04 6E 04 04 00 54 00 00 00 69 04 A2 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E DF 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F1 A7 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 22 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 B6 FC 09 A6 9E 92 B4 5B B5 C2 C1 D4 94 C6 [14:56:09]CheckFolder [14:56:09]dirname=/storage/ofd_packets [14:56:09]CheckFolder done [14:56:09]ProducePacketName [14:56:09]name=ofd_packets/00069922 [14:56:09]NVStorageSaveData ofd_packets/00069922 [14:56:09]File name is /storage/ofd_packets/00069922 [14:56:09]Write 1432 bytes [14:56:09]NVStorageSaveData done [14:56:09]OFDSenderStorePacket done [14:56:09]KKMCreateOFDPacket done [14:56:09]NVStorageSaveData kkm_last_timestamp [14:56:09]File name is /storage/kkm_last_timestamp [14:56:09]Write 4 bytes [14:56:09]NVStorageSaveData done [14:56:09]ExternCall_PrintAddStr [14:56:09]wPrintStart [14:56:09]Write to MH i2c: 01 00 00 B8 BA 72 [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 07 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 07 00 B8 BA 00 00 00 00 00 FF 0F 87 [14:56:09]RasterBufferAndPrint [14:56:09]line Отчет о закрытии смены [14:56:09]line ФФД: 1.0 [14:56:09]line ИНН: 02508201610067 [14:56:09]line Кассир: Мадаминова Б. [14:56:09]line 01.08.2024 14:56 [14:56:09]line Смена: 433 [14:56:09]line РНМ: 0000000000092638 [14:56:09]line ЗНМ: 0300000049 [14:56:09]line СНО: Общий режим [14:56:09]line Чеков за смену: 84 [14:56:09]line ФД за смену: 86 [14:56:09]line Всего чеков: 84 [14:56:09]line ИТОГИ ПРИХОД [14:56:09]line Чеков: 84 [14:56:09]line Общий итог: 48583.89 [14:56:09]line Итого наличными: 41998.00 [14:56:09]line Итого безнал.: 6585.89 [14:56:09]line НДС 0% : 0.00 [14:56:09]line НДС 12% : 5159.82 [14:56:09]line НСП 0% : 0.00 [14:56:09]line НСП 1,50% : 0.00 [14:56:09]line НСП 0,50% : 0.00 [14:56:09]line НСП 5% : 0.00 [14:56:09]line НСП 3% : 0.00 [14:56:09]line НСП 2% : 0.00 [14:56:09]line НСП 1% : 429.93 [14:56:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [14:56:09]line Чеков: 0 [14:56:09]line Общий итог: 0.00 [14:56:09]line Итого наличными: 0.00 [14:56:09]line Итого безнал.: 0.00 [14:56:09]line НДС 0% : 0.00 [14:56:09]line НДС 12% : 0.00 [14:56:09]line НСП 0% : 0.00 [14:56:09]line НСП 1,50% : 0.00 [14:56:09]line НСП 0,50% : 0.00 [14:56:09]line НСП 5% : 0.00 [14:56:09]line НСП 3% : 0.00 [14:56:09]line НСП 2% : 0.00 [14:56:09]line НСП 1% : 0.00 [14:56:09]line ИТОГИ РАСХОД [14:56:09]line Чеков: 0 [14:56:09]line Общий итог: 0.00 [14:56:09]line Итого наличными: 0.00 [14:56:09]line Итого безнал.: 0.00 [14:56:09]line НДС 0% : 0.00 [14:56:09]line НДС 12% : 0.00 [14:56:09]line НСП 0% : 0.00 [14:56:09]line НСП 1,50% : 0.00 [14:56:09]line НСП 0,50% : 0.00 [14:56:09]line НСП 5% : 0.00 [14:56:09]OFD Sender: Processing packet 69922 [packets to send 19, broken 18] [14:56:09]line НСП 3% : 0.00 [14:56:09]line НСП 2% : 0.00 [14:56:09]line НСП 1% : 0.00 [14:56:09]ProducePacketName [14:56:09]name=ofd_packets/00069922 [14:56:09]OFD Sender: To server: pG, [14:56:09]CommunicateWithHost lk.salyk.kg:30040 [14:56:09]ConnectInit lk.salyk.kg [14:56:09]line ИТОГИ ВОЗВРАТ РАСХОДА [14:56:09]line Чеков: 0 [14:56:09]line Общий итог: 0.00 [14:56:09]line Итого наличными: 0.00 [14:56:09]line Итого безнал.: 0.00 [14:56:09]line НДС 0% : 0.00 [14:56:09]line НДС 12% : 0.00 [14:56:09]line НСП 0% : 0.00 [14:56:09]line НСП 1,50% : 0.00 [14:56:09]line НСП 0,50% : 0.00 [14:56:09]line НСП 5% : 0.00 [14:56:09]line НСП 3% : 0.00 [14:56:09]line НСП 2% : 0.00 [14:56:09]line НСП 1% : 0.00 [14:56:09]line Сумма внесений: 0.00 [14:56:09]line Сумма выплат: 0.00 [14:56:09]line Нал. в кассе: 41998.00 [14:56:09]line НС Приход: 31685797.50 [14:56:09]line НС Возвр.Прихода: 567989.00 [14:56:09]line НС Расход: 0.00 [14:56:09]line НС Возвр.Расхода: 0.00 [14:56:09]line ФД: 69922 [14:56:09]line ФМ: 0000000000874949 [14:56:09]line ФПД: 201193609928338 [14:56:09]written 0, free lines is 4095 [14:56:09]Connected sock=10 [14:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 7A 05 00 00 3A 14 72 05 82 9C 5A 05 01 00 05 00 66 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 9C D0 B0 D0 B4 D0 B0 D0 BC D0 B8 D0 BD D0 BE D0 B2 D0 B0 20 D0 91 2E F4 03 04 00 0F A2 AB 66 0E 04 04 00 B1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 AA 04 D5 04 6E 04 04 00 54 00 00 00 69 04 A2 00 6F 04 04 00 54 00 00 00 B1 04 03 00 15 22 4A 70 04 03 00 78 15 40 72 04 03 00 9D 0C 0A 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 8E DF 07 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F1 A7 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A Write to MH i2c: 00 01 F6 00 03 00 01 08 00 BB 06 C3 F7 [14:56:10]03 Write i2c OK [14:56:10]01 MH_I2C_Read... [14:56:10]00 Read from MH i2c: 00 01 EF [14:56:10]03 MH_I2C_Read... [14:56:10]0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 03 07 00 01 [14:56:10]00 MH_I2C_Read... [14:56:10]04 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 08 0A BB 00 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 00 03 00 01 00 00 00 02 55 F7 0B 03 2A 01 [14:56:10]00 RasterBufferAndPrint [14:56:10]00 line [14:56:10]EF line [14:56:10]03 line [14:56:10]0A line [14:56:10]00 line [14:56:10]F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 written 0, free lines is 3034 [14:56:10]00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 MH_Cut [14:56:10]00 Write to MH i2c: 00 D1 B1 01 04 00 00 0F 00 BB 70 01 04 9C 00 [14:56:10]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 Write i2c OK [14:56:10]00 MH_I2C_Read... [14:56:10]00 F3 03 00 00 EE 03 09 00 F2 Read from MH i2c: 03 D1 01 [14:56:10]00 MH_I2C_Read... [14:56:10]01 Read from MH i2c: F3 D1 03 01 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 00 EF [14:56:10]03 MH_I2C_Read... [14:56:10]09 Read from MH i2c: 00 D1 01 F6 00 03 0F 01 BB 00 00 01 9B F7 [14:56:10]03 Write to MH i2c: 00 01 00 00 EF 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 10 00 BB F6 CB 03 [14:56:10]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF Write i2c OK [14:56:10]03 MH_I2C_Read... [14:56:10]09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 22 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 35 04 06 00 B6 FC 09 A6 9E 92 B4 5B B5 C2 C1 D4 94 C6 [14:56:11]*** Cut start [14:56:11]*** Partial cut [14:56:11]*** CUTSNS_PIN = 1 [14:56:11]*** CUTSNS_PIN = 0 [14:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 4F 00 00 00 92 9B 47 00 EC FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 10 04 04 00 22 11 01 00 F4 03 04 00 7C 48 AB 66 B6 04 01 00 00 28 3F C2 88 B7 7E 53 11 [14:56:11]CommunicateWithHost err = 0 [14:56:11]CheckOFDResponse [14:56:11]*** Brake cut motor [14:56:11]1017 (14) - 77093643461234 [14:56:11]1041 (16) - 0000000000874949 [14:56:11]1040 (4) - 69922 [14:56:11]1012 (4) - 01.08.2024 08:34 [14:56:11]1206 (1) - 0 [14:56:11]OFD Sender: Remove packet 69922 [14:56:11]ProducePacketName [14:56:11]name=ofd_packets/00069922 [14:56:11]NVStorageDeleteData [14:56:12]Read from MH i2c: 01 [14:56:12]MH_I2C_Read... [14:56:12]*** Stop cut motor [14:56:12]*** Cut end [14:56:12]Read from MH i2c: 01 07 00 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: 01 07 00 10 BB 00 00 00 00 00 FF 0F E0 [14:56:12]process_action close_shift done [14:56:12]requested_data is exist [14:56:12]produce_requested_data [14:56:12]requested_item fd.num is exist - process it [14:56:12]SAM_PROTO_GetFieldsCounters [14:56:12]wFMCommunicate request_size=4 [14:56:12]MH_SAM_APDU [14:56:12]CAPDU: 80 13 00 00 [14:56:12]Write to MH i2c: E2 08 00 11 BB 80 13 00 00 00 00 00 00 48 [14:56:12]Write i2c OK [14:56:12]MH_I2C_Read... [14:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:12]Read from MH i2c: E2 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: E2 62 00 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: E2 62 00 11 BB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 22 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [14:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 34 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 33 38 10 04 04 00 22 11 01 00 0E 04 04 00 B1 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 OFD Sender: No OFD packet to send [14:56:12]90 00 [14:56:12]wFMCommunicate OK [14:56:12]SAM_PROTO_GetFieldsCounters done [14:56:12]requested_item shift.num is exist - process it [14:56:12]requested_item shift.opened is exist - process it [14:56:12]req_shift_opened [14:56:12]FM_GetShiftState [14:56:12]SAM_PROTO_GetShiftState [14:56:12]wFMCommunicate request_size=4 [14:56:12]MH_SAM_APDU [14:56:12]CAPDU: 80 13 01 00 [14:56:12]Write to MH i2c: E2 08 00 12 BB 80 13 01 00 00 00 00 00 4A [14:56:12]Write i2c OK [14:56:12]MH_I2C_Read... [14:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:12]Read from MH i2c: E2 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: E2 0E 00 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: E2 0E 00 12 BB 00 09 00 00 00 00 00 00 00 00 00 00 90 00 55 [14:56:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [14:56:12]wFMCommunicate OK [14:56:12]SAM_PROTO_GetShiftState done [14:56:12]FM_GetShiftState done [14:56:12]req_shift_opened done [14:56:12]requested_item shift.open_date is exist - process it [14:56:12]req_shift_open_date [14:56:12]FM_GetShiftState [14:56:12]SAM_PROTO_GetShiftState [14:56:12]wFMCommunicate request_size=4 [14:56:12]MH_SAM_APDU [14:56:12]CAPDU: 80 13 01 00 [14:56:12]Write to MH i2c: E2 08 00 13 BB 80 13 01 00 00 00 00 00 4B [14:56:12]Write i2c OK [14:56:12]MH_I2C_Read... [14:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:12]Read from MH i2c: E2 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: E2 0E 00 [14:56:12]MH_I2C_Read... [14:56:12]Read from MH i2c: E2 0E 00 13 BB 00 09 00 00 00 00 00 00 00 00 00 00 90 00 56 [14:56:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [14:56:12]wFMCommunicate OK [14:56:12]SAM_PROTO_GetShiftState done [14:56:12]FM_GetShiftState done [14:56:12]req_shift_open_date done [14:56:12]produce_requested_data done [14:56:12]produce_requested_data return {"fd.num":69922,"shift.num":433,"shift.opened":0,"shift.open_date":0} [14:56:12]process_action_free close_shift [14:56:12]json_value_free [14:56:12]json_value_free done [14:56:12]process_json_proto returns [14:56:12]Send response to host [14:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":69922,"shift.num":433,"shift.opened":0,"shift.open_date":0}}} [14:56:12]free response buf [14:56:12]execute_script done [14:56:12]execute_script returns [14:56:12]free content buf [14:56:12]Sock 9.Close socket [14:56:12]Sock 9.Thread stoped [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send